22.03.2021, 06:33
It's easier to implement this in the script like this:
But in this case I see no problem because this script turns off the light. And if the light is already turned off before that then nothing happens.
Code:
lock = grp.getvalue('1/2/3')
if lock then
return
end