(This script gets triggered when Den Door (z11) changes its status. Â In other words opens or closes)
z11 is Den Door
z29 is Armed Away (Alarm System Armed when nobody home)
z30 is Armed Stay (Alarm System Armed at nightime which bypasses motion detectors)
If z11 is on and z30 is off then speak "Den Door Opened" Â (Speak only when not armed in stay mode)
If z11 is off and z30 is off then speak "Den Door Closed"
If z11 is ON set z11 device string to "Open" (instead of the default ON)
If z11 is OFF set z11 device string to "Closed" (instead of the default OFF)
If z29 is on then wait 10 seconds (entry delay time when system armed in away mode) Â
If z29 is still on after 10 seconds (nobody disarmed the system) then run the "Device Fault" Subroutine below
If z30 is on (armed in stay mode) then run the "Device Fault" Subroutine below (want to run immediately with no entry delay).
"Device Fault" Subroutine:
Play wave file (in Homeseer Directory) alert.wav
speak "Den Door Security Fault, Den Door Security Fault"
Turn Den Lights (device C10) ON
Send Email to [email protected], [email protected], and [email protected]
 Email Subject: "Security, Den Door"
 Email Body: "Den Door Security Fault"
End of subroutine