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

How to use PUT, POST, etc. in Scenes


Question

Posted

How?

I don't want to use VD for this.

For example using it for Philips Hue...

3 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Please login or register to see this code.

    Is there any guide for this how to use it with other types of requests?

     

    Since scenes are the way to go for efficient usage of HC2 this has to be known.

    • 0
    Posted

    I totally support your request for information! Recently I built a Philips Hue interface with net.HTTPClient (so much better than using VD's which is really a crappy solution) and it does work, but for some reason it has time-out problems when the script is called multiple times. I haven't been able to pinpoint the problem yet, but it seems that the net.HTTPClient is kept 'alive' even when it is has finished its send-receice task. When a next instance is created by another instance of the script, things go wrong (understandably, both instances try to use the same comms channel).

     

    A default time-out of 5 seconds seems to be involved (or a multiple of that; I've seen 10 and 15) so I've been playing around with both time-outs, but to no avail. Same 5 second time-outs appeared.

     

    It would be nice if Fibaro finally started doing their jobs and provide us with proper documentation! Being able to write real code instead of these primitive block scenes is  the only justification for buying the most expensive home controller on the market....

    • 0
    Posted

    Hello,

     

    Here is an example of how you could create a POST HTTP request

     

    Please login or register to see this link.

     

    Hope that helps

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