View single post by slychiu
 Posted: Sunday Jun 21st, 2020 02:18 am
 PM  Quote  Reply  Full Topic 
slychiu



Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5127
Status: 
Offline

  back to top

Connect the key switch to any zone and program it as Switch Nornally Open Zone Type
Assign one of the default responses
Momentary switch Keyarm/Disarm to Away mode

If SecurityMode = SecurityOff Then
    If AlarmState < Alert Then
        KeyswitchArm NightMode
    End If
Else
    KeyswitchArm SecurityOff
End If

Momentary switch Keyarm/Disarm to Away mode

If SecurityMode = SecurityOff And AlarmState < Alert Then
    KeyswitchArm AwayMode
Else
    KeyswitchArm SecurityOff
End If

 Close Window