Posted: Wednesday Dec 12th, 2007 03:44 pm |
|
1st Post |
Pgordon
Member
back to top
|
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.
|
Posted: Tuesday Dec 18th, 2007 02:00 pm |
|
2nd Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5493 |
Status: |
Offline
|
back to top
|
Paul
I think it should work
|
Posted: Thursday Dec 27th, 2007 01:32 pm |
|
3rd Post |
Pgordon
Member
back to top
|
Indeed it did, in fact I went further, and changed the conditions so that the bedside keypad will only set night mode, regardless of which key arm button is pressed, so even if I inadvertently hit the "away" button upstairs, it arms to night mode instead. This all works just fine.
Cheers.
Paul G.
|
|