Get device name in LUA script of the device changed
Posted: Wednesday 02 December 2015 15:09
Is it possible to get the name of the device that has changed?
I've one IF statement in which I check multiple door sensors. If one of them is triggered I want to print/use the name of which door sensor was triggered. Something like print ("Door sensor: " .. devicechanged[]) has been opened).
Any idea?
I've one IF statement in which I check multiple door sensors. If one of them is triggered I want to print/use the name of which door sensor was triggered. Something like print ("Door sensor: " .. devicechanged[]) has been opened).
Any idea?