05.10.2020, 06:43
1. For this you need to use a different group address for manual control. Add this to the beginning of your script so it does not run when 0/0/42 is set to ON.
2. Use this event script to stop a running staircase timer:
Another possible solution is to use a scheduler assigned to sunrise/sunset events to check if it's dark outside or not.
Code:
if grp.getvalue('0/0/42') then
return
end
2. Use this event script to stop a running staircase timer:
Code:
StaircaseName = 'PIR_TR2_1'
stpid = storage.get(StaircaseName)
if stpid then
os.kill(stpid, signal.SIGKILL)
storage.set(StaircaseName, nil)
end
Another possible solution is to use a scheduler assigned to sunrise/sunset events to check if it's dark outside or not.