Hi,
I want to use multiple triggers to trigger 1 scene.
How can you check in your luup code which of these triggers was the one who actually triggered the scene ?
Thanks,
Marq
UI7 has a problem where you cannot attach LUA code to a specific trigger. In previous releases you could. Hopefully this will be fixed in the future. (Fortunately I am not on UI7 yet.)
What I do is have each trigger’s LUA code set a global variable to a specific value. Then the main body can check that global variable to see which trigger triggered.
[quote=“aa6vh, post:2, topic:186108”]UI7 has a problem where you cannot attach LUA code to a specific trigger. In previous releases you could. Hopefully this will be fixed in the future. (Fortunately I am not on UI7 yet.)
What I do is have each trigger’s LUA code set a global variable to a specific value. Then the main body can check that global variable to see which trigger triggered.[/quote]
It appears that adding LUUP code to a trigger is back on the latest UI7 version.