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
tinman 1,025
One can for sure use global variable to store information, but i don't like them, as they will get overwritten (NaN) when the set value is not numeric and one or more variables with get changed via UI.
But there is something else what can be used, every device have property "userDescription", which can be used by user to store what so ever information about that device.
Everybody have at least device 1 (the HC2 itself), and the data can be stored there. Sure, one can use any other device to store information. Finally this is device property, so one can trigger on changes as well.
Example set property:
Please login or register to see this code.
Example read/trigger property:
Please login or register to see this code.
userDescription can be used as well as filter, e.g. to search for all devices where we set something (e.g. "spare device")
Please login or register to see this code.
I haven't found yet size restriction, so let's go find it , but remember, size matters (as data will be displayed in UI, the HCx is reading it each time and displaying - good for fast edit/patch, bad for UI speed, so hidden devices as e.g. HCx itself are better to store data).
Edited by tinmanLink to comment
Share on other sites
5 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.