Playing around with the Zooz ZSE19 Siren for notifications.
I'd like to know if the Motion Sensor at the Front Porch is triggered, but I don't want it to trigger if it's just us leaving the house. I do have a recessed contact sensor on the front door, so it should be possible. I just don't know how to frame it so it doesn't just trigger the notification the second we're standing on the porch with the front door closed behind us.
Still waiting for the Hub Whisperer to post a "how to" on Global Variables. I can copy a global variable, but I don't understand them well enough to write one.
I'm a simple automation rule person.
I was able to simulate this at my place with two rules and a virtual switch.
The motion sensor causes a light to go on when the door is closed.
When the door is opened, like you're going in, or out, a restricting virtual switch tied to the door contact sensor keeps the motion rule from kicking in.
The virtual switch is tied to the door contact so that it turns off after a minute, long enough to 'escape'.
Actually 3 rules. The third one turns off the light when the door is opened.
The light=your siren.
Alright, I'm willing to give this a go. Almost an hour of futzing around in RM and here on the forums just to figure out where Global Variables creation is hidden.... 'cause it ain't in RM! Seriously, is it in Settings so newbs like me don't find it and break things?
I figure I want my pause to be 2 minutes as we're quite often standing under the motion sensor for at least 1 minute while we corral the dogs, check the mail, etc; so, I did a value of 120 seconds. Also, why can't you change the name of a variable after it's been created?
The Date/Time variable doesn't make sense (to me) so it can't be that, right?
Unfortunately, changing the name isn’t an option. Probably because of how they are called in a rule (%variableName%). You will need to re-create it with a new name, use the new one in rules, than delete the old one. I’ve had to go through that process more than once…
Why do you need a DateTime variable?
I'm not sure which type of variable I'm supposed to be creating.
The Number Variable is what I'm going to need for this Rule?
I would actually just make it a Boolean variable. It just needs to report that the door was open, and then be turned off.
Something like:
Trigger: Door open
Action: Set Variable to True
Wait 2 minutes
Set Variable to False
1 Like
Got some help from a local friend. (He has a HE, but doesn't really use it, maybe this will get him more interested)
This is what we came up with, seems to work as I need.
1 Like