same devicechanged in more LUA's
Posted: Thursday 31 January 2019 14:29
Hi,
I like to split up my main LUA script to more small functional LUA scripts. More neat programming I think.
But now I have a question.
I have an ALARM.LUA that checks some stuff related to the alarm triggers.
There is a devicechangend check for DOOR
But I like to do a devicechanged check for DOOR in other script too.
(for switched lights on - in this example)
But when I have to LUA scripts (type device) and do DEVICECHANGED for the same thing in both scripts. Will this work?
I like to split up my main LUA script to more small functional LUA scripts. More neat programming I think.
But now I have a question.
I have an ALARM.LUA that checks some stuff related to the alarm triggers.
There is a devicechangend check for DOOR
But I like to do a devicechanged check for DOOR in other script too.
(for switched lights on - in this example)
But when I have to LUA scripts (type device) and do DEVICECHANGED for the same thing in both scripts. Will this work?