I am trying to write a rule to close the garage door and then keep trying to close the door up to 3 times if something causes the door to not close properly. Output 19 is wired to the contacts on the opener and output 100 is just a virtual output for using as a timer. Does this look like it will work? If I run it from the rules page it will close but if I trip the safety beam on the door it goes back up and doesn't try to close again. there must be something wrong in my thinking!!
14
WHENEVER close barn door (Task 3) IS ACTIVATED
AND SW Overhead (Zn 108) IS NOT SECURE
AND bill (Counter 1) IS LESS THAN 3
THEN TURN small ohd barn (Out 19) ON FOR 1 SEC
THEN TURN Output 100 ON FOR 30 SECS
THEN ADD 1 TO bill (Counter 1)
THEN ACTIVATE close barn door (Task 3)
15
WHENEVER SW Overhead (Zn 108) BECOMES SECURE
THEN SET bill (Counter 1) TO 0
14
WHENEVER close barn door (Task 3) IS ACTIVATED
AND SW Overhead (Zn 108) IS NOT SECURE
AND bill (Counter 1) IS LESS THAN 3
THEN TURN small ohd barn (Out 19) ON FOR 1 SEC
THEN TURN Output 100 ON FOR 30 SECS
THEN ADD 1 TO bill (Counter 1)
THEN ACTIVATE close barn door (Task 3)
15
WHENEVER SW Overhead (Zn 108) BECOMES SECURE
THEN SET bill (Counter 1) TO 0