Hi…
I have multiple devices that all trigger the same Scene… In that Scene’s Lua code is there a way to determine which device triggered that run?
Thanks
Hi…
I have multiple devices that all trigger the same Scene… In that Scene’s Lua code is there a way to determine which device triggered that run?
Thanks
Put code in the trigger to set a global variable which can be read by the scene. This has been discussed quits bit in other threads.
See, for example
http://forum.micasaverde.com/index.php/topic,10854.msg210229.html#msg210229
akbooer…
Thanks for the quick reply… I can do that but it sure would be nice if there was a Luua function that would return the ID of the device.
Yes, all it would need is a parameter to the function call which is the trigger code - like other callbacks. But it doesn’t. So we have to live with it.
Best Home Automation shopping experience. Shop at Ezlo!
© 2026 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules