12-12-2007, 04:44 PM
I think this code is OK, anyone care to comment?
Note that I use vacation mode instead of away mode, and have done for ages, and it works just fine. I want to modify it so that it can only be set from keypad 1 which is by the front door (final exit door), but *not* from any other keypad (I only have 1 one other in the master bedroom).
This is my \"KeyArmToHolidayMode\" response, which is assigned to the \"Away\" key in the \"keypad\" section in Comfigurator..
*******************************************
If SecurityMode = SecurityOff Then
If KeypadId = 65 Then
KeySwitchArm VacationMode
Do AwayModeResponse [Away Mode Response]
End If
End If
*******************************************
Many thanks
Paul G.
Note that I use vacation mode instead of away mode, and have done for ages, and it works just fine. I want to modify it so that it can only be set from keypad 1 which is by the front door (final exit door), but *not* from any other keypad (I only have 1 one other in the master bedroom).
This is my \"KeyArmToHolidayMode\" response, which is assigned to the \"Away\" key in the \"keypad\" section in Comfigurator..
*******************************************
If SecurityMode = SecurityOff Then
If KeypadId = 65 Then
KeySwitchArm VacationMode
Do AwayModeResponse [Away Mode Response]
End If
End If
*******************************************
Many thanks
Paul G.

