This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Staircase timer vs normal operation
#2
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.
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.
Reply


Messages In This Thread
RE: Staircase timer vs normal operation - by admin - 05.10.2020, 06:43

Forum Jump: