I live in a two story with a walkout basement, and even though the doorwall and two windows down there have contacts, it makes me nervous at night. If someone were to break a window, there is no way I could hear it. There is a motion detector in the basement, but it is only armed in the away mode, so I needed a way to arm the system in night mode, and not worry about someone wandering downstairs and setting off the alarm. My solution was to add a second motion detector looking at the stairs to detect inside traffic on the stairs and temporarily bypass the basement motion detector before they tripped the alarm.
It took four rules to make it work. The first rule is to detect motion on the stars and set a counter to 10 (equal to one minute in 6 second increments). The second one checks every 6 seconds to see if the stairs are secure and if they are, decrements to counter by 1. The third rule checks the progress of the counter, and when it reaches 3, announces that the basement motion detector will arm in 30 seconds. The final rule bypasses the basement motion detector when the counter reaches zero. Any time the stairway motion detector is re-violated during the 60 second countdown, the counter is reset to 10.
This should also work for an attached garage (temporarily bypass the perimeter door), if someone wants to go out there without disarming the alarm, as long as it is a quick trip.
WHENEVER Basement Stairs (Zn 14) BECOMES NOT SECURE
AND AREA ARMED
THEN BYPASS Basement Motion (Zn 12)
THEN SET Basement (Counter 1) TO 10
WHENEVER EVERY 6 SECONDS
AND Basement Stairs (Zn 14) IS SECURE
THEN SUBTRACT 1 FROM Basement (Counter 1)
WHENEVER Basement (Counter 1) CHANGES TO 3
THEN ANNOUNCE Miscellaneous 1 (vm239) "Basement Motion Detector Armed Thirty Seconds"
WHENEVER Basement (Counter 1) CHANGES TO 0
THEN UNBYPASS Basement Motion (Zn 12)
Edited by TLGriff, 19 June 2016 - 08:35 PM.