Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

HCL webhooks/IFTTT


Strydom

Question

Hi,

 

With many wifi enabled devices about. 

Anyone  able to help out? Trying to use the HCL to POST or GET in a virtual device. Obviously a scene we cant do.

Please login or register to see this link.

/xxxxxxxxxxxxxxxxxxxxxx

 

 

 

I am too lazy to read the manual. 

 

Thanks

 

 

Edited by Strydom
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • SOLVED (Not secure and slow but works). Using wireshark to Debug, as the HCL has no debug . Its a start.

     

    Name : Test to IFTTT

    Room: Unassigned

    IP:maker.ifttt.com

    Port:80

     

    Button Trigger:

     

     

    GET /trigger/YOUR TRIGGER HERE/with/key/YOUR KEY HEREXXXXXXXXXXXXXXXXXX HTTP/1.1
    Host: maker.ifttt.com



    The trick, is after the Line  "Host: maker.ifttt.com", hit enter twice!  /n/n

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    String

     

    GET /YamahaExtendedControl/v1/main/setPower?power=on HTTP/1.10x0D0x0A0x0D0x0A

     

    LUA

     

    local thisdevice = fibaro:getSelfId()
    local ip = fibaro:getValue(thisdevice, 'IPAddress')
    local port = fibaro:getValue(thisdevice, 'TCPPort')
    local httpSession = Net.FHttp(ip, port)

    response, status, errorCode = httpSession:GET("

    Please login or register to see this link.

    ")

     

    Not sure if this will help

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks

    Please login or register to see this link.

     

    I have read the manual, not much to it.

    Please login or register to see this link.

    I don't think the HCL is capable of it.

     

    what i'm trying is

     

    GET /trigger/test_light_on/with/key/xxxxxxxxxxxxxxxXXXXXXxxxxXXXXxxxxXXXXX
    HTTP/1.1
    Host: maker.ifttt.com

     

    I know the HC2 works with this method. Is there another way? Bearing in mind that LUA code is a no no on the HCL.

     

    ADMIN is the HCl capable of this sort of thing?

     

    Thanks

    Please login or register to see this link.

           

     

    Your great scenes wont work with the HCL

     

     

     

    Link to comment
    Share on other sites

    • 0
    On 31.7.2018 at 18:10, Strydom said:

    Gelöst (nicht sicher und langsam, aber funktioniert). Verwenden von Wireshark zum Debuggen, da die HCL kein Debugging hat. Es ist ein Anfang.

     

    Name: Test nach IFTTT

    Raum: Nicht zugewiesen

    IP: maker.ifttt.com

    Hafen: 80

     

    Tastentrigger:

     

     

    GET / trigger / YOUR TRIGGER HERE / mit / key / YOUR KEY HEREXXXXXXXXXXXXXXXXXX HTTP / 1.1
    Host: maker.ifttt.com



    Der Trick ist nach der Zeile " Host: maker.ifttt.com ", drücken Sie zweimal die Eingabetaste! / n / n

    Please login or register to see this attachment.

    Was bedeuten " / n / n   ?      

    Link to comment
    Share on other sites

    • 0

    Hello, now I also have the need a http command with the HCL off.
    http://192.168.178.53/plugins/sonos4lox/index.php?zone=wohnzimmer&action=start
    how did I implement this in the virtual module? Have already tried a lot. The command I only need to send as url in a browser. How does it work with GET in the virtual module?

    Link to comment
    Share on other sites

    • 0

    If someone is still interested. There is solution, that worked for me.

    You need to used

    Please login or register to see this link.

    .

     

    IP Address and TCP Port of virtual device have to be fulfilled like below.

    Please login or register to see this code.

    Here is example of what should be inside button of virtual device. What is also important -  Wait for device response have to be checked.

    Please login or register to see this code.

    Edited by SmarterHOME
    Link to comment
    Share on other sites

    • 0

    HI

     

    I've a problem.

     

    I created a virtual button for my ifttt trigger:

     

    Host: maker.ifttt.com

    Port: 80

     

    With this string:

     

    GET /trigger/MYTRIGGER/with/key/MYKEY HTTP/1.10x0D0x0A0x0D0x0A

     

    But it doesn't work.

     

    If I run the complete URL on my browser, the trigger is fired and it's ok.

     

    Were I wrong?

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...