I want a single Event with several possible trigger devices (OR) that launches a generic script.
In that script, I would need to know which device triggered the Event to perform specific actions.
Until now I have used one (cloned) Event for every device (5-10) and used "hs.GetLastEvent" in my generic script to indirectly identify the device. This is a bit clumsy.
What is the easiest way to get the triggering device?
Is really "RegisterStatusChangeCB" the smartest way? It seems like a long way to go to make the callback save a value in a global variable that I read in my generic script. Would just like to seize it directly.
Thanks,
Bob
In that script, I would need to know which device triggered the Event to perform specific actions.
Until now I have used one (cloned) Event for every device (5-10) and used "hs.GetLastEvent" in my generic script to indirectly identify the device. This is a bit clumsy.
What is the easiest way to get the triggering device?
Is really "RegisterStatusChangeCB" the smartest way? It seems like a long way to go to make the callback save a value in a global variable that I read in my generic script. Would just like to seize it directly.
Thanks,
Bob
Comment