12.04.2024, 12:10
1. Script name in enable/disable must be in quotes. Right now you are referring to a variable named Ligths_UP that's not defined. Alternatively you can simply use grp.getvalue() in
your script to determine whether it should run or not:
2. You can set the event script "Execution mode" to "Last instance only" and only execute your action when the event value is true. Sending false will stop the previous script instance.
your script to determine whether it should run or not:
Code:
-- run only if 1/1/1 value is true
if grp.getvalue('1/1/1') then
-- do something
end
2. You can set the event script "Execution mode" to "Last instance only" and only execute your action when the event value is true. Sending false will stop the previous script instance.
Code:
if event.getvalue() then
-- do something
end