Gratis domotica › Forums › How can I …? › Synology NAS › Amazon Echo support: voice control: Using DDNS
- Dit onderwerp bevat 5 reacties, 3 deelnemers, en is laatst bijgewerkt op 3 jaren, 1 maand geleden door
djandib.
-
AuteurBerichten
-
januari 14, 2017 om 10:27 am #4071
djandib
BijdragerAccording to Lisas article:
Actually Pulse-Station doesn`t accept Web requests via DDNS.
So if you don`t have a steady internet IP you need a little Workaround!Here we go:
1) create a new alexa.php in the mainfolder of Pulsestation:<?php
if($_GET[‘secret’]==”123456″ && $_GET[‘action’]==1){
$temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|true”);
elseif($_GET[‘secret’]==”123456″ && $_GET[‘action’]==2){
$temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|false”);
}secret=phrase; LocalIP=your IP, where PulseStation is installed
2) at IFTTT.com you make a webrequest with this parameter:
http://DDNS/PulseStation/alexa.php?secret=best&action=1
OR
http://DDNS/PulseStation/alexa.php?secret=best&action=2DDNS=e.g. “xy.selfhost.eu”
Thats`s all.
A lot of thanx to Koen for his patience to create this workaround.Andi
januari 29, 2017 om 10:52 pm #4124bambuz
BijdragerI have no clue about php so could you please explain this a little bit more?
Which ports do i need to open in the firewall? 4020 for all tasks?
Are there only 2 actions possible?
Can I use the script without a secret phrase?
What means best&action?Thanks a lot.
februari 1, 2017 om 2:36 pm #4126djandib
BijdragerHi bambuz,
4020 must be open (But this should already be opened to control PulseStation from outside home)
As afar as I know there are no limits of numbers of actions.
I took only 2 in this example to explain the howto.
Im not sure abaout the secret phrase. Maybe you don
t need it, but think of security.best&action:
Thank you for hint. Was an error in copy and paste. Before I took “123456” I had “bestsecretoftheworld” 😉Maybe this should work, too:
****
<?php
if($_GET[‘action’]==1){
$temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|true”);
elseif($_GET[‘action’]==2){
$temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|false”);
}
?>
****
http://DDNS/PulseStation/alexa.php?action=1
OR
http://DDNS/PulseStation/alexa.php?action=2
****
Unless IFTTT doesn`t understand another languages, you have to make the call in englisch.
Or mix e.g. Englisch/German: “Alexa, trigger daheim”.
In this point you have to look for the right “combination” 😉Greetings from Munich
Andiaugustus 3, 2017 om 7:40 pm #11775Raven
Bijdragertried to start with what Lisa wrote and i have a weird behaviour on my side..
if i setup the URL as Lisa writes in the article it won’t work.
But if i leave out the “/user/password/” part it runs.
So at the moment my url in IFTT is
http://my.ext.ernal.ip:4020/message=1|HUB|zwave|UPDATEPROPERTY|zwave-3|37-user-bool-1-0|true
i’m not sure if i exactly like that, because on the other hand that means anyone with knowledge of PulseStation who happens to find out my ip and that port 4020 is open can completly control my devices…Anyone able to tell me why this is working without username and password??
-
Deze reactie is gewijzigd 3 jaren, 7 maanden geleden door
Raven.
september 11, 2017 om 1:53 pm #11783djandib
BijdragerHi Raven,
actually I make some experiments with a Pulsestation Skill and I can confirm: It works even without user/password if you use a external IP.With DynDNS I don`t get any result.
In the Core log is only written a “Core : Security True…1”Andi
januari 8, 2018 om 3:20 pm #11817djandib
BijdragerI don`t know if someone is interested in this topic anymore…
The same way work with Google assistant, too 😉
-
Deze reactie is gewijzigd 3 jaren, 7 maanden geleden door
-
AuteurBerichten
- Je moet ingelogd zijn om een reactie op dit onderwerp te kunnen geven.