Amazon Echo support: voice control: Using DDNS

Free domotica! Forums How can I …? Synology NAS Amazon Echo support: voice control: Using DDNS

This topic contains 2 replies, has 2 voices, and was last updated by  djandib 5 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4071

    djandib
    Participant

    According 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=2

    DDNS=e.g. “xy.selfhost.eu”

    Thats`s all.
    A lot of thanx to Koen for his patience to create this workaround.

    Andi

    #4124

    bambuz
    Participant

    I 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.

    #4126

    djandib
    Participant

    Hi 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 dont 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
    Andi

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.