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
Question
Rikbast 3
Hi,
I retrieved all data of the devices from my HCL with http://192.168.0.33/api/devices and they are written in one file.
Now I am want to retrieve temperature, lux etc from different devices, but I can't seem to find the right way to do it.
If I just retrieve data from one device for instance 172 with call http://192.168.0.33/api/devices/172 it works:
json.properties.value will do the trick
But I don't want to sent commands for each device to retrieve data. Is there a way to retrieve specific values from the all devices json table?
I tried json.properties[51].value, because this device has the header 51 (see code here below), but that does not work.
Anyone an idea how to get the desired value?
Thx!
Rik
Please login or register to see this code.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.