Page 1 of 1
Documentation: Extend explanation for Device Object attribute "changed"
Posted: Thursday 05 October 2017 11:37
by DzJan
I think the documentation could use some extra text for what is considered "the device was changed"
Luckely it does not only seems to be a state change, but also a last seen (like for a one button "On" switch), but what else
Re: Documentation: Extend explanation for Device Object attribute "changed"
Posted: Friday 06 October 2017 10:56
by dannybloe
You are right.. That attribute is actually not really useful (anymore). If you have a script that is triggered due to a device change (like a switch or sensor) then inside your execute function that device will have changed == true. All other devices will have change == false. You could use that if you want to iterate through all device to see which one has been changed. But that is always only the device being triggered and you already have that device as the second parameter to your execute function.
So yeah, maybe we should just hide that from the documentation all together.