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:
It's not that simple. What I want to update in my event script is a set of multiselectors, and I want the multiselector event to fire when the multiselector value is updated through the event script.
So I need to use the "commandArray['UpdateDevice'] = idx|nValue|sValue" format, instead of the "commandArray['Devicename'] = status". The UpdateDevice command does not fire an event on the updated device.