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

Passing credentials RESI API via IFTTT


Question

Posted

Hi All,

 

I am trying to execute a scent via REST API, from outside via ifttt, now I am able to execute the scene via URL inside the LAN correctly, but when doing from the internet, I am not able to pass username, password of the HC2 in order to run the scene

The url for the scene is like this

 

http://<<DDNS ADDRESS:11111/api/devices/<<scene ID>>/action/turnON

 

Now the port is correctly forward, and DDNS also working, and I AM ABLE to run the scene on POSTMAN inside LAN and from INTERNET

 

Now I want the same from IFTTT where I have the URL BUT I cannot find the syntax way to pass credentials in the body section, that would make the scene run. When I am in postman I put the URL, I put the credentials under Authorization BASIC and when I execute  ...The scene DOES RUN, FROM INTERNET as well. But I cannot replicate the same behavior from IFTTT, since in IFTTT I only have body section and no Header or Authorization TAB as is in postmen

 

PLease assist how can I achieve the same via IFTTT. I think I just need to find a way to pass credentials from the body section in IFTTT.

 

Regards

Sammy

5 answers to this question

Recommended Posts

  • 0
Posted

Syntax is from an IFTTT webhook :

 

Please login or register to see this link.

  • Like 1
  • 0
  • Inquirer
  • Posted

    Ok thank you ...that worked ..... feel stupid not to look where I had the max chance to get the solution ..:(, but anyway thanks for the response ....

    • 0
  • Inquirer
  • Posted

    I have another issue regarding same REST API.......

    I want to trigger a virtual device now via same REST API. But the confusion is, Virtual Device has an IP in HC, plus works on port 80, so any idea what would be the URL and syntax if one wants to control Virtual Device via REST API.

     

    To the below URL does not work in case of VD

     

    http://<<DDNS ADDRESS:11111/api/devices/<<Virtual Device ID>>/action/turnON

     

    this does not work,  ..... 

     

     

    any assistance thnx

    • 0
  • Inquirer
  • Posted

    any assistance on this?

    • 0
    Posted

    you left out the credentials again

     

    Please login or register to see this link.

    <<DDNS ADDRESS:11111/api/devices/<<Virtual Device ID>>/action/turnON

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