Securifi Community Forum

Sensors and Home Automation => Home automation => Topic started by: spooky123 on March 08, 2015, 07:54:24 pm

Title: Time Based Rule
Post by: spooky123 on March 08, 2015, 07:54:24 pm
Running r70.

Is there any way at all to edit the time trigger for rules?

With daylight savings time, I need to adjust on / off time and have several rules and schedules.

Creating from scratch and deleting or deactiving old would take a lot of time.

Anyway to edit?
Title: Re: Time Based Rule
Post by: mparadis on March 08, 2015, 09:40:21 pm
Not yet.
Title: Re: Time Based Rule
Post by: Quikster on March 09, 2015, 01:13:23 am
if you ssh in you can edit them manually, but you can also really break things so not for the feint of heart.
Title: Re: Time Based Rule
Post by: obmd1 on March 10, 2015, 08:57:43 pm
since the A+ knows what the weather is, is there a path to get to "on at dusk" "off at dawn" for timed switching rules? Doesn't look possible at present, but it'd be nice for landscape lighting applications.
Title: Re: Time Based Rule
Post by: mparadis on March 10, 2015, 09:35:21 pm
It's being worked on. Believe it should be done when scenes are.
Title: Re: Time Based Rule
Post by: LGNilsson on March 11, 2015, 06:35:53 am
It's planned, but I don't have an ETA. Editing rules should be done soon as far as I've been told, so hopefully in the next firmware, but no guarantees.
Title: Re: Time Based Rule
Post by: d.kiran on March 11, 2015, 01:17:25 pm
Similar to this, is there any way to use history for rules. For example, if I want to know that my garage door has been open for 2 hours, so go ahead and close it ?
Title: Re: Time Based Rule
Post by: Quikster on March 11, 2015, 02:27:11 pm
Similar to this, is there any way to use history for rules. For example, if I want to know that my garage door has been open for 2 hours, so go ahead and close it ?

So I made a rule that may be similar to what you want. I used my front door lock + my front door sensor + time to create a rule.
If it is after 9PM and the door has been closed for more than 60 seconds and the door is unlocked then lock the door.
You should be able to do something similar with the garage door, but I don't know what or if there is an upper limit on how many seconds you can wait to do something to like what you mentioned you'd need a delay of 7200 seconds.
Title: Re: Time Based Rule
Post by: d.kiran on March 11, 2015, 03:38:30 pm
How do you check if the door has been closed for 60 seconds? Is that the time out of the door sensor? Basically what I am asking for is a time on the if section as well..

For e.g. right now, you have

IF <something> THEN Wait "x" seconds AND <something_else>

What I am looking for is

IF <something> FOR "x" seconds THEN Wait "x" seconds AND <something_else>
Title: Re: Time Based Rule
Post by: Quikster on March 11, 2015, 04:26:40 pm
as far as i know the only option is a delay on the Then section for time, but it accomplishes the same thing.
If door open then close after 2 hours
is the same as
If door open 2 hours then close
Title: Re: Time Based Rule
Post by: fgtech on March 11, 2015, 08:07:17 pm
We are getting way off topic from the OP, but I just wanted to say be careful with any rule that automatically closes a garage door.

Public service announcement:

If you're using a commercially available interface, then you probably have all the appropriate alarms, auto-reverse, etc., but please still be careful. Small children and animals can get injured under a closing door even if it is properly adjusted and they won't necessarily be deterred by the alarm. Oh, and everyone is testing that their garage door safety features work properly at least as often as they change batteries in their smoke detectors, right? If you don't still have the manual for your opener, look it up online. It is not too hard for the force adjustment to get out of whack and fail to reverse the door when needed.

We now return you to your regularly-scheduled home automation discussion. Thank you for listening.
Title: Re: Time Based Rule
Post by: d.kiran on March 11, 2015, 11:41:52 pm
Thanks fgtech. I did not think of that.
Title: Re: Time Based Rule
Post by: rldreams on March 14, 2015, 04:43:42 pm
We are getting way off topic from the OP, but I just wanted to say be careful with any rule that automatically closes a garage door.

Public service announcement:

" Oh, and everyone is testing that their garage door safety features work properly at least as often as they change batteries in their smoke detectors, right? "

Yup, every 10 years (or so they claim) , when the beeping on smoke/co2 alarm drives me crazy
Title: Re: Time Based Rule
Post by: obmd1 on March 14, 2015, 07:39:11 pm
Running R70as

Setting up time based rules for simple binary switches has been challenging. I want a light to turn on at x and off at x. Simple "if 7pm then light on" works, but "if 7-7:01pm, the light on" only turns it on, and not off. If the "between" time constraint is no longer met, should the rule revert to unmet status turning the light off, or am I missing something. I guess I need two rules, one for on, one for off?
Title: Re: Time Based Rule
Post by: mparadis on March 14, 2015, 08:20:22 pm
If it worked the way you suggest then the light/switch etc would never work outside those hours even if you tried to their it manually. This would be really impractical for most people. Two rules one to turn on and one to turn off. Between is a condition for the trigger not the actual trigger, for example between 7 and 8 if the door is opened then on the light.
Title: Re: Time Based Rule
Post by: obmd1 on March 14, 2015, 08:24:13 pm
I see what you are saying. But these are plug in appliance switches, which can be turned on independent of a rule with a button. Why would that be any different than a wall switch, where the physical switch overrides the rule? It's not like if the on condition is not met (time), you couldn't turn the light on yourself.

Off to make many rules.
Title: Re: Time Based Rule
Post by: obmd1 on March 14, 2015, 08:45:09 pm
Sorry, I meant that to be a question. Why couldn't you just turn the light on yourself if the time constraint for automation wasn't met? Just like a regular timer?