Comfort Automation/ Security System Forums

Full Version: Check this repsonse code for me?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

 
Paul
I think it should work
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.