"Whenever Area 1 is disarmed FROM AWAY MODE" ??!!

trmitche

Member
I want to create a rule that turns on certain house lights whenever the house becomes disarmed after dark, but only if it's disarmed from the away mode. I'm not finding anything meaningful searching here. Is this possible?
 
How about something like this...

'Set flag whenever system is armed to away mode, either set a counter to a value or use output as a flag, example is with output 100
WHENEVER Area1 is ARMED AWAY
THEN TURN Output100 ON

'When disarmed and away mode set and dark, change lights
WHENEVER Area1 is DISARMED
AND Output100 is ON
AND IS Dark Outside
THEN
Turn Output100 OFF 'reset flag
do whatever to your lights...

So, whenever the system is armed, if it is to away mode then the flag is set (Output turned on). SO now the system knows it is armed to away mode. When the system is disarmed, if the flag is set (output on) then you know it was in Away mode, then you check to see if it is dark outside (or whatever time parameter you want) and then you reset the flag (turn output off) so armed away mode status is not set any more, then do what you want with your lights. Haven't tried it, but I think it should work.
 
Trey,

If you plan to use Output 100 as a definitive indicator of the last arming mode (i.e. Away) then you will need a second rule with a broader scope. A single rule, as shown above, will not clear the flag if it is Light Outside. A second rule is needed to clear it at all other times of the day:

WHENEVER Area1 is DISARMED
AND Output100 is ON
THEN
Turn Output100 OFF 'reset flag

If you use the first rule exclusively, you may encounter the following failure scenario:
  1. Arm Away
  2. Disarm during the day (Output 100 is not reset!)
  3. Arm Stay
  4. Disarm during the night (Disarming, Output 100 is ON, and it is Dark -> the first rule's conditions are satisfied. The house lights will be turned on even though the last arming mode was Stay.)
 
I found this problem when I was creating amy first few rules, so I created some rules just to turn on/off various flags (outputs) indicating the arming mode (Stay, Away, Night, Vacations).
 
What if, in that case, you always turn output 100 off... but then set a rule that says whenever output 100 turns off AND it is dark outside, then turn on the lights... wouldn't that accomplish the same thing?
 
I figured out from necessity last night that the second rule would be required for the reasons mentioned above.

I really should have been able to do this without asking. The funny thing is, I'm already using phantom outputs (as flags) for lots of other things, such as toggling the bypass state of a zone using the keypad function keys, so exactly how this didn't occur to me on my own.....I don't know. Just don't tell anyone that I work for Automated Outlet.... :blush:

It would be pretty cool though Spanky - if there could be a case statement for last arming state.


Thanks for everyone's replies.
 
Sorry Todd B, I didn't notice your reply at first.

The way you suggest is actually what I ended up doing.
 
Back
Top