I have 2 binary inputs that reads the status of the home alarm. 30 seconds after the home alarm is set on, I would like to release a lock on a movement detector.
Is this the appropriate code?
Is this the appropriate code?
Code:
if ("AlertHomeAlarmIn-3/1/1" == OFF) or ("AlertOfficeAlarmIn-3/1/15" == OFF) then { write("LockGardenAlarm-3/6/3", ON) } endif if delay("AlertHomeAlarmIn-3/1/1", 30000u64) and delay("AlertOfficeAlarmIn-3/1/15", 30000u64) then { write("LockGardenAlarm-3/6/3", OFF) } endif