Which device triggered a Scene

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.