bottleneck
Choose style:

Author Topic: Time Based Rule  (Read 9492 times)

0 Members and 1 Guest are viewing this topic.

Offline spooky123

  • Backer
  • *
  • Posts: 129
  • Thanks: 0
  • Registered : 30/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Time Based Rule
« 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?

Offline mparadis

  • Backer
  • *
  • Posts: 1765
  • Thanks: 3
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #1 on: March 08, 2015, 09:40:21 pm »
Not yet.

Offline Quikster

  • Backer
  • *
  • Posts: 25
  • Thanks: 0
  • Registered : 12/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #2 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.

Offline obmd1

  • Backer
  • *
  • Posts: 136
  • Thanks: 0
  • Registered : 09/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #3 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.

Offline mparadis

  • Backer
  • *
  • Posts: 1765
  • Thanks: 3
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #4 on: March 10, 2015, 09:35:21 pm »
It's being worked on. Believe it should be done when scenes are.

LGNilsson

  • Guest
Re: Time Based Rule
« Reply #5 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.

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #6 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 ?

Offline Quikster

  • Backer
  • *
  • Posts: 25
  • Thanks: 0
  • Registered : 12/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #7 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.

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #8 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>

Offline Quikster

  • Backer
  • *
  • Posts: 25
  • Thanks: 0
  • Registered : 12/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #9 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

Offline fgtech

  • Backer
  • *
  • Posts: 24
  • Thanks: 1
  • Registered : 21/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #10 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.

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #11 on: March 11, 2015, 11:41:52 pm »
Thanks fgtech. I did not think of that.

Offline rldreams

  • Beta Testers
  • *
  • Posts: 240
  • Thanks: 0
  • Registered : 02/06/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #12 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

Offline obmd1

  • Backer
  • *
  • Posts: 136
  • Thanks: 0
  • Registered : 09/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #13 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?

Offline mparadis

  • Backer
  • *
  • Posts: 1765
  • Thanks: 3
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Time Based Rule
« Reply #14 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.

 

Page created in 0.055 seconds with 16 queries.

bottleneck