Jump to content

View/Set Elk Alarm State with KeypadLinc


rayzor

Recommended Posts

Hi,

 

I have a button on my KeypadLinc labeled 'Alarm'. I added this to a new Scene called 'AlarmScene'

 

When the Elk is Armed, I want the button to be On (I replaced it with a red LED for effect).

 

To accomplish what I want, I wrote a simple program

If 
   Elk Area 'Home' 'Armed State' is not Disarmed
Then
   Set Scene 'AlarmScene' On
Else
   Set Scene 'AlarmScene' Off

I also want to be able to Turn ON the alarm by pressing the button, but not turn it off. To do this I wrote this program

If
   Control 'Keypad - Alarm' is switched On
Then
   Set Elk Area 'Home' Arm Night Instant
Else
   Set Elk Area 'Home' Query

My problem is that when I press the button on the KeypadLinc itself, it turns the button 'Off' and the Query is not turning it back On.

 

Any idea the best way to set this up?

Link to comment

The "If Control" as written has a True only evaluation so the Else clause is never executed.

 

If
Control 'Keypad - Alarm' is switched On

And Control 'Keypad - Alarm' is not switched Off

Then
Set Elk Area 'Home' Arm Night Instant
Else
Set Elk Area 'Home' Query

Link to comment

Tried adding that with no luck. Is it possible that the 'Query' doesn't trigger the first program in some way? 

 

The light is set correctly when Arming/Disarming every other way (Security Keypad, Via Mobile Phone App, etc..). I just don't want the light to turn off when I press the key unless it really is disarmed?

Link to comment

I simply changed it to run the 'Alarm Status' and it works.

If
     Control 'Keypad - Alarm' is switched On
 And Control 'Keypad - Alarm' is not switched Off
Then
     Set Elk Area 'Home' Arm Night Instant
Else
     Run Program 'Alarm Status' (If)
Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...