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


Update device parameters in the REST API


Lenfors
 Share

Recommended Posts

Hello!

 

I read all my units from my HC3 with the command http://<username>:<password>@192.168.70.31/api/devices

In the response I get all the parametes for the units.

Now I want to change parameters in the units, what is the syntax for this?

Please give an example if I want to update parameter 28 on UnitId 123 to value 15.

 

Best regards, Mikael

 

Link to comment
Share on other sites

  • Topic Author
  • Ok, your call is from LUA, but how is the call from the REST API?

     

    It should be something like: http://<username>:<password>@192.168.70.31/api/ .....

     

    Best regards, Mikael
     

     

    Link to comment
    Share on other sites

    Check Swagger on your HC3 for the API documentation:

    https://hc3-ipaddres/swagger/

     

    I think you need this:

    PUT devices/modifyDevice

    Link to comment
    Share on other sites

  • Topic Author
  • Yes, I read the documentation but I dont understand it!

     

    If I could only get an example it would be so much easier :-)

     

    When  I use Google Chrome I can enter  http://<username>:<password>@192.168.70.31/api/devices  in the URL to get a JSON response whit all my device info.

     

    What should I enter to set a a parameter on a unit?

     

    Best regadrs, Mikael

     

     

    Link to comment
    Share on other sites

    First, give us some more information. And what do you want to accomplish...

     

    Do you want to change the device from the HC3 itself? With a scene/QA, or a third party service like Node-RED?

     

    Please read some information about how the REST API works, based on the HC3 I wrote a blog about the REST API, how it works.

     

    To answer your question, you can't do a POST or PUT command in the browser URL bar. You have to use some software like Node-RED, PowerShell, curl, etc... (Google them).

    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
    Reply to this topic...

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

     Share

    ×
    ×
    • Create New...