Securifi Community Forum

Sensors and Home Automation => Home automation => Topic started by: tvpccr on January 22, 2017, 10:27:03 pm

Title: Duration in Rules... New to home automation
Post by: tvpccr on January 22, 2017, 10:27:03 pm
OK Day one with the A3s and playing with the rules for the HA stuff...

perhaps I am thinking about the whole thing incorrectly, but I was trying to set-up a rule where if I triggered X motion sensor, between 12am and 5am, I would be able to have A, B, C, and D lights go on for 5 minutes, then return to their previous state. Essentially light my path between my room, down the stairs, and into the 1st level Kitchen and Patio area.

Am I missing something? or Would I need multiple sensors and multiple rules to do this? Is there a way to return lights to their previous state?

Any help would be appreciated, and before I get lambasted for being green- other than Philips Hue, today is my first day with ANY HA stuff.

Thanks in advance,
Keith
Title: Re: Duration in Rules... New to home automation
Post by: fillibar on January 22, 2017, 10:57:00 pm
Some devices are able to be toggled, but not that many and usually not lights. That said, at the simplest you might want:
IF Time between 12am and 5am AND X motion THEN Light A On AND Light B On AND Light C On AND Light D On AND Delay 5 min Light D Off AND Light C Off AND Light B Off AND Light A Off

That would let you walk through and give you 5 minutes before the lights turn back off. Of course you could put additional delays between the off times so they have a little pause going back instead of all of them off.
Title: Re: Duration in Rules... New to home automation
Post by: tvpccr on January 23, 2017, 07:50:25 am
Yes, Fillibar, that is what I think I need...

Now the newbie question; how do I set the rule set "AND delay"

Thanks
Title: Re: Duration in Rules... New to home automation
Post by: mparadis on January 23, 2017, 09:24:31 am
When you add the action to the rule, there will be an option to adjust the time automatically placed in front of it. Play around with the rules a bit and you will see what I mean if I'm not clear.  :P
Title: Re: Duration in Rules... New to home automation
Post by: fillibar on January 23, 2017, 02:05:44 pm
As mparadis mentioned. Note, you would only want the delay once as it is acted on in sequence.
Ex:
Delay 5 min Light A Off and Light B Off
This means it will wait 5 minutes then turn Light A Off then immediately turn Light B Off

Delay 5 min Light A Off and Delay 5 min Light B Off
This means it will wait 5 minutes then turn Light A Off then wait 5 minutes then turn Light B Off