I'm trying to test auto-arming my alarm if the last person to leave forgets. I've got enough motion sensors around the house to make me confident that if none are triggered within 2 hours then its safe to say that nobody is home. I only want this to occur during the day or evening but my logic is making it trigger when the mode is 'night'. I can't figure out how to fix this. Any help, appreciated:
The first thing i would do is use the built in app 'Zone Motion Controller'.
Put all your motion sensors in and it will stop the rule continually evaluating every time a motion sensor changes.
Also you can then leave the rule alone and only amend the Zone Motion Controller app when you add delete sensors.
Just a thought.
As for the rule your trigger should be motion changed.
Maybe put in a trigger for mode changed.
Maybe start your rule with
IF Mode is Evening
THEN
Cancel delayed actions
Exit Rule
END-IF
Then the rule as you have it now.
I was going to make the same suggestion. On top of adding each motion sensor you can also set what modes the 'Zone' will be engaged.
Very true. I forgot about that.
The maximum timeout you can have in Zone motion is 1 hour. If you could change your requirement to one hour instead of two you could do most if this with just the Zone and very little logic.
my concern with 1 hour is that could well be too short so a rule gives me more control and I can have it verbally warn the house that the alarm process is starting and to move to cancel (for example)
You don't have to set motion controller to a big window. Just leave it at a second/minute and use your rule as you have it now.
I figured as much. Was just offering a suggestion. If one hour was an option you're rule would essentially be "IF Zone Inactive ARM"
What bobbles said.
I think you will need to add Night to the mix as well. Add a line that says IF MODE Night cancel delayed actions.
I'm not 100% sure that this will work as you want it because you have set mzone to be triggerable during day/evening. This means that when it is night, motion will not trigger and will therefore be inactive all the time it is night.
Maybe try this at the beginning of your rule and delete the day/evening in zone motion controller.
IF Mode is Night
THEN
Cancel delayed actions
Exit Rule
END-IF
EDIT: Also put in a trigger for Mode Changed.
This means that when mode changes from Evening to Night the rule will evaluate and cancel the delay in case it is counting down when the mode changes to night.
It looks to me like it should work as you want it.
Thinking about it. What happens if you all leave home 1 hour before Night mode kicks in? It will never arm.
Hmmmmm. Could that be an issue.
Now you can change your delay to something like five minutes and test it instead of waiting two hours. That assumes you can sit still for five minutes.
Edit: you can also remove all other motion sensors from the zone except for one that won't be triggered to test it as well.