Event Based On Time Frame

Tips and Techniques for using MLServer's Automation Rules
User avatar
Cameras007
Member
Member
Posts: 64
Joined: Wed Jul 23, 2003 12:15 am
Location: Ohio
Contact:

Event Based On Time Frame

Postby Cameras007 » Fri Dec 28, 2007 11:01 am

I would like to have an event trigger between the times of 11pm and 5am. Currently I have the following rule to define the time frame:

If "xxxxxx"
And currenthourmilitary is greater than or equal to 23
And currenthourmilitary is less than 5

Then execute event.

Is there a better way to initiate events based between certain time frames, or will this work :?:
"I do not fear computers, I fear the lack of them." ISAAC ASIMOV

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Fri Dec 28, 2007 11:13 am

Why does it have to be a range, and not a specific time within that range? Is there another dependent event?

User avatar
Cameras007
Member
Member
Posts: 64
Joined: Wed Jul 23, 2003 12:15 am
Location: Ohio
Contact:

Postby Cameras007 » Fri Dec 28, 2007 11:28 am

I need the event to take place regardless of what the exact time is, between the hours of 11pm and 5am. Also I need the event to fire more than once so using an exact time will not work. Basically I have an outdoor motion detector hooked up to my outdoor lights and I want them to turn on upon motion detection, but only during this time frame. Make sense? If this becomes too much of an issue I will simply create a rule in my ELK. However I am trying to conserve space on my ELK rules memory.
"I do not fear computers, I fear the lack of them." ISAAC ASIMOV

User avatar
DaveB
Simply Incredible
Simply Incredible
Posts: 3143
Joined: Sun May 30, 2004 10:57 pm
Location: Mays Landing, NJ
Contact:

Postby DaveB » Fri Dec 28, 2007 9:24 pm

I would make it two seperate rules;

Whenever it is between 2300 and 0500; variable overnight=true

second rule;

If overnight is true; enable exterior motions


You could then use variable overnight for other items as required. I use the same variable in my system. When overnight is true, I also dim all exterior night lighting to 35% from it's normal 65%. WHen motion is detected, all exterior lighting in that zone brightens for 5 min. or so then returns back to 35%.
Thanks!

Dave Bruner
:shock:

ccharmatz
Intermediate
Intermediate
Posts: 344
Joined: Wed Oct 15, 2003 12:51 pm
Location: Clearwater Florida
Contact:

Postby ccharmatz » Sat Dec 29, 2007 1:00 am

Dave,

Would you be willing to share more of your automation rules as examples for us?

Charles.

User avatar
DaveB
Simply Incredible
Simply Incredible
Posts: 3143
Joined: Sun May 30, 2004 10:57 pm
Location: Mays Landing, NJ
Contact:

Postby DaveB » Sat Dec 29, 2007 9:47 am

Sure - I will get some together later today and will post. I use many variables like in the above example, then fire off action based on those variables. Many of those variables are used more than once.

I started the rules inside of HAI, then ported the same setup to Vantage and now have ported the same setup to Cinemar. There is some duplication due to those other two systems, but still some good examnples. Look for a post tonight.
Thanks!

Dave Bruner
:shock:

ccharmatz
Intermediate
Intermediate
Posts: 344
Joined: Wed Oct 15, 2003 12:51 pm
Location: Clearwater Florida
Contact:

Postby ccharmatz » Sat Dec 29, 2007 11:25 am

That would be great thank you for the time.

Charles.

User avatar
Cameras007
Member
Member
Posts: 64
Joined: Wed Jul 23, 2003 12:15 am
Location: Ohio
Contact:

Postby Cameras007 » Sun Dec 30, 2007 7:52 am

Thank you for the replies. I have started working on the variables. I have also started work on Macros for specific lighting events which will work perfectly. I look forward to seeing your examples. :)
"I do not fear computers, I fear the lack of them." ISAAC ASIMOV

wireless
Senior Member
Senior Member
Posts: 210
Joined: Wed Mar 24, 2004 10:44 am
Location: East Tennessee
Contact:

Postby wireless » Sun Feb 22, 2009 12:21 pm

I'm trying to set up the same thing to enable motion sensing but only during the hours of 6 pm to 10 pm. I've tried to AND after 18:00 and before 22:00 to setvariable 'between' equals true. Before 18:00 and after 22:00 'between' equals false. The variable is not changing.

Now I'm trying after 18:00 setvariable 'between1' equals true. After 22:00 setvariable 'between2' equals true. With between1 AND between2 equal true then setvariable between equals true. Set up corresponding rules to set variable between to false.

That didn't work either. The variable between will only be set if I manually set the between1 and between2 variables.


Return to “Automation Rules”

Who is online

Users browsing this forum: No registered users and 1 guest