Differences in Lua commandArray 'UpdateDevice' and OpenURL 'udevice'
Posted: Saturday 13 February 2016 10:41
I'm writing some event code based on virtual switches. Now I'm wondering about an inconsistency about the firing of subsequent events. I.e. my event script should cause device updates which fire other events.
So, if my Lua event script updates the status of an another device, I can do it in two ways:
So, if my Lua event script updates the status of an another device, I can do it in two ways:
- Use the 'UpdateDevice' in commandArray
- Use the 'OpenURL' in commandArray, and call 'http://127.0.0.1:8080/json.htm?type=com ... evice&idx=...'