This has been asked multiple times but I haven't found a solution to my problem. Basically, I need to know which device triggered a script. The solutions I found assume that the status of a device changes. However, in my case I am triggering a script when somebody clicks on an element in HSTouch, i.e. I set "Actions When Pressed" to "HomeSeer: Run a HomeSeer script with values from Device(s)". So just clicking on something does not create a status change and as such the proposed solutions don't work.
I was looking into triggering an event instead (not sure if this will work because timing is critical) and then have the event trigger a script passing in the ID of the device that triggered the event. However, there also doesn't seem to be a way to figure out what device triggered an event (maybe I missed something).
There has to be an easy solution for that since so many people are looking for this for many years.
I was looking into triggering an event instead (not sure if this will work because timing is critical) and then have the event trigger a script passing in the ID of the device that triggered the event. However, there also doesn't seem to be a way to figure out what device triggered an event (maybe I missed something).
There has to be an easy solution for that since so many people are looking for this for many years.
Comment