Deafbykhorns
Member
Its working except the message is not playing between 1 and 5 seconds
Any motion in the garage or just outside the garage (both have flags) will reset the timer.
Its basically a timer with motion sensors to close the door at night when we take out the trash or whatever.
I wanted a warning just before it closes but it doesnt work, see line 43
36. WHEN Motion Outside Front Garage SECURE
AND IF DARK
AND IF Garage Motion SECURE
AND IF Garage Door NOT READY
THEN Front Motion Flag ON FOR 5 MINUTES
THEN Garage Motion Flag ON FOR 5 MINUTES
THEN SAY GARAGE DOOR CLOSE IN FIVE MINUTES
37. WHEN Motion Outside Front Garage NOT READY
AND IF DARK
THEN SET Front Motion Flag TO 1
38. WHEN Garage Motion NOT READY
AND IF DARK
THEN SET Garage Motion Flag TO 1
39. WHEN Front Motion Flag OFF
AND IF Garage Motion Flag OFF
AND IF Garage Door NOT READY
AND IF DARK
THEN Garage Door Flag OFF FOR 20 SECONDS
THEN Front Motion Flag OFF FOR 20 SECONDS
THEN Garage Door Flag OFF
THEN Front Motion Flag OFF
40. WHEN Front Motion Flag OFF
AND IF DARK
AND IF Garage Door NOT READY
AND IF Garage Door Flag OFF
AND IF Garage Motion Flag OFF
THEN Garage Door Controller Relay ON FOR 1 SECOND
41. WHEN Garage Door Controller Relay ON
THEN Relay Control ON FOR 1 SECOND
42. WHEN Relay Control OFF
THEN Garage Door Controller Relay OFF
43. WHEN Garage Door NOT READY
AND IF Garage Motion Flag TIMER IS LESS THAN 0:00:05
AND IF Garage Motion Flag TIMER IS GREATER THAN 0:00:01
THEN SAY GARAGE DOOR CLOSE NOW
Any motion in the garage or just outside the garage (both have flags) will reset the timer.
Its basically a timer with motion sensors to close the door at night when we take out the trash or whatever.
I wanted a warning just before it closes but it doesnt work, see line 43
36. WHEN Motion Outside Front Garage SECURE
AND IF DARK
AND IF Garage Motion SECURE
AND IF Garage Door NOT READY
THEN Front Motion Flag ON FOR 5 MINUTES
THEN Garage Motion Flag ON FOR 5 MINUTES
THEN SAY GARAGE DOOR CLOSE IN FIVE MINUTES
37. WHEN Motion Outside Front Garage NOT READY
AND IF DARK
THEN SET Front Motion Flag TO 1
38. WHEN Garage Motion NOT READY
AND IF DARK
THEN SET Garage Motion Flag TO 1
39. WHEN Front Motion Flag OFF
AND IF Garage Motion Flag OFF
AND IF Garage Door NOT READY
AND IF DARK
THEN Garage Door Flag OFF FOR 20 SECONDS
THEN Front Motion Flag OFF FOR 20 SECONDS
THEN Garage Door Flag OFF
THEN Front Motion Flag OFF
40. WHEN Front Motion Flag OFF
AND IF DARK
AND IF Garage Door NOT READY
AND IF Garage Door Flag OFF
AND IF Garage Motion Flag OFF
THEN Garage Door Controller Relay ON FOR 1 SECOND
41. WHEN Garage Door Controller Relay ON
THEN Relay Control ON FOR 1 SECOND
42. WHEN Relay Control OFF
THEN Garage Door Controller Relay OFF
43. WHEN Garage Door NOT READY
AND IF Garage Motion Flag TIMER IS LESS THAN 0:00:05
AND IF Garage Motion Flag TIMER IS GREATER THAN 0:00:01
THEN SAY GARAGE DOOR CLOSE NOW