Elk Rule Help

pgray007

Active Member
I am working on some of my first rules in ElkRP, and can't figure out how to create a condition that triggers a rule when the house is disarmed from night mode at the MBR keypad. There is a "STATE = Disarmed" condition, but to me that is basically a static value that could trigger anytime the house is in a disarmed state. I need something like an event, so when my wife wakes up and turns off night mode, an event is triggered that the house was disarmed RIGHT NOW.

Any ideas on how to make this happen?

Thanks!
 
I am working on some of my first rules in ElkRP, and can't figure out how to create a condition that triggers a rule when the house is disarmed from night mode at the MBR keypad. There is a "STATE = Disarmed" condition, but to me that is basically a static value that could trigger anytime the house is in a disarmed state. I need something like an event, so when my wife wakes up and turns off night mode, an event is triggered that the house was disarmed RIGHT NOW.

Any ideas on how to make this happen?

Thanks!

Set an output or counter as a flag when arming to Stay mode.

When disarming and the flag is set THEN do your RIGHT NOW task.

On any disarm, clear the flag.
 
I am working on some of my first rules in ElkRP, and can't figure out how to create a condition that triggers a rule when the house is disarmed from night mode at the MBR keypad. There is a "STATE = Disarmed" condition, but to me that is basically a static value that could trigger anytime the house is in a disarmed state. I need something like an event, so when my wife wakes up and turns off night mode, an event is triggered that the house was disarmed RIGHT NOW.

Any ideas on how to make this happen?

Thanks!

Set an output or counter as a flag when arming to Stay mode.

When disarming and the flag is set THEN do your RIGHT NOW task.

On any disarm, clear the flag.

That's a great solution. Thanks! I'll implement it and see how it works out.
 
Back
Top