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

http request from philips pronto to activate a scene on hc3


diamant

Question

Hay, I have a philips pronto remote and with a script I can send scene commands to my hc2 like:

http://admin:[email protected]:80/api/sceneControl?id=41&action=start
(I can also put something else in here of course)

 

On the hc3 that no longer works (only it still works with sending to a device:
http://admin:[email protected]:80/api/callAction?deviceID=41&name=turnOn)

 

I've read a lot on the forum but programming with virtual device doesn't work after several days of trying.

Is there a good explanation how I can do this?

 

 

UP TO NOW:

 

1:
send pronto http command:
http://admin:[email protected]:80/api/sceneControl?id=41&action=start (activate on the end also not working)

(should I change this http command?)

 

2: create a virtual device on hc3

 

3: code in virtual device !?! (here the problem is starting)

 

 

sorry for the stupid question....

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

You can start a scene on HC3 with the HTTP API like:

Please login or register to see this link.



Do a POST request with an empty body.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 1 hour ago, Joep said:

    You can start a scene on HC3 with the HTTP API like:

    Please login or register to see this link.



    Do a POST request with an empty body.

    if i press the scene 'play' button in the scene it's working...with the 

    Please login or register to see this link.

     string not!? al my other devices are also working with http strings.

    2 hours ago, Joep said:

    You can start a scene on HC3 with the HTTP API like:

    Please login or register to see this link.



    Do a POST request with an empty body.

     

    what do you mean by: Do a POST request with an empty body.

    Link to comment
    Share on other sites

    • 0
    8 minutes ago, diamant said:

    if i press the scene 'play' button in the scene it's working...with the 

    Please login or register to see this link.

     string not!? al my other devices are also working with http strings.

     

    what do you mean by: Do a POST request with an empty body.

     

    Please read this: 

    Please login or register to see this link.

     

    The data you send to the HC3 is nothing, an empty body.

     

    In the Pronto configuration change the GET request to a POST and I think it will work.

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 10 minutes ago, Joep said:

     

    Please read this: 

    Please login or register to see this link.

     

    The data you send to the HC3 is nothing, an empty body.

     

    In the Pronto configuration change the GET request to a POST and I think it will work.

     

     

    going to try that....with the script i use in the pronto it's not so easy.......

    Link to comment
    Share on other sites

    • 0
    1 minute ago, diamant said:

    going to try that....with the script i use in the pronto it's not so easy.......

     

    I don't have experience with Pronto scripts, when I Google I find you can set a method. I think now it writes GET and you can change that to POST.
    If it is not specified the manual says: . If not specified, “GET” is assumed. So you have to set the method parameter.

    Please login or register to see this link.

     Page 162.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 15 minutes ago, Joep said:

     

    I don't have experience with Pronto scripts, when I Google I find you can set a method. I think now it writes GET and you can change that to POST.
    If it is not specified the manual says: . If not specified, “GET” is assumed. So you have to set the method parameter.

    Please login or register to see this link.

     Page 162.

    Strange that it works with get for zwave devices and not for scenes.

     

    In the pronto script it can be adjusted I think but to 'get' or 'post' and not different for every command.
    Would it still work if I put all commands to post?
    (wave devices and scenes)

    Link to comment
    Share on other sites

    • 0
    5 minutes ago, diamant said:

    Strange that it works with get for zwave devices and not for scenes.

     

    In the pronto script it can be adjusted I think but to 'get' or 'post' and not different for every command.
    Would it still work if I put all commands to post?
    (wave devices and scenes)


    No this doesn’t work. Read the Fibaro API documentation for more information. 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 11 minutes ago, Joep said:


    No this doesn’t work. Read the Fibaro API documentation for more information. 

    so i need 2 scrips then in my pronto...pffff.........

     

    thank you so much for the help....

     

    I'll let you know if this works.....

     

    gr. robin

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