updateCustomSensor() not triggering device updated state?
Posted: Tuesday 19 December 2017 11:05
Hi,
Slowly moving scripts over from lua to dzVents, and I must say dzVents is a charm to work with. Making it easier to do stuff. Thank you. I have a question regarding updateCustomSensor(). I don't know if it is by design. But using that function does not trigger the updated state for other scripts to act on the device. I know I have the same problem with using 'commandArray['UpdateDevice']' in lua. Ended up by using an 'commandArray['OpenURL']' to tirgger the device updated state trigger.
If the behaviour is correct, what should I use to trigger the updated state, or is using an URL call the only option?
Cheers,
Ton
Slowly moving scripts over from lua to dzVents, and I must say dzVents is a charm to work with. Making it easier to do stuff. Thank you. I have a question regarding updateCustomSensor(). I don't know if it is by design. But using that function does not trigger the updated state for other scripts to act on the device. I know I have the same problem with using 'commandArray['UpdateDevice']' in lua. Ended up by using an 'commandArray['OpenURL']' to tirgger the device updated state trigger.
If the behaviour is correct, what should I use to trigger the updated state, or is using an URL call the only option?
Cheers,
Ton