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

documentation DevicePropertyUpdatedEvent


GJ Niewenhuijse
 Share

Question

Hello, where can i find documentation about the json data thats returned by the api function /resfreshStates?

 

Data returned

Please login or register to see this code.

Device 233 (wall plug) return a property VALUE and i know there's also a property POWER. But where to find this documentation? So i can see what are the device property's 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
42 minutes ago, GJ Niewenhuijse said:

Hello, where can i find documentation about the json data thats returned by the api function /resfreshStates?

 

Data returned

Please login or register to see this code.

Device 233 (wall plug) return a property VALUE and i know there's also a property POWER. But where to find this documentation? So i can see what are the device property's 

The actual properties depends on the type of device and can be seen in the device struct. ex. api.get("/devices/"..<deviceID>) or with the swagger UI. But I haven't seen a well defined list of different types and properties (and we can't invent our own properties for devices - they are driven by type templates...). Once upon time it was mostly 'value' but now with new types of devices (especially integrated non-z-wave device) the variation is much greater.

The types of events you can get in /refreshStates are not documented anywhere what I know. Some of them are mapped to the sourceTriggers you can get trigger on in Scenes, but not all.

I constantly update my own code when I discover new (useful) events. 

See in particular the

Please login or register to see this link.

 for the types of events I currently map.

 

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.

 Share

×
×
  • Create New...