Event

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(ago event)
(Added example)
Line 6: Line 6:
  
 
You can specify a single action for each event handler. To trigger multiple actions, create a [[Scenario|scenario]].
 
You can specify a single action for each event handler. To trigger multiple actions, create a [[Scenario|scenario]].
 +
 +
== Example ==
 +
=== Time trigger ===
 +
Activate scenario at 8 o'clock and 16 o'clock<br/>
 +
<br/>
 +
Criteria<br/>
 +
Time did advance<br/>
 +
Operator and<br/>
 +
{<br/>
 +
event hour = 8<br/>
 +
even minute = 0<br/>
 +
}<br/>
 +
operator or<br/>
 +
{<br/>
 +
event hour = 16<br/>
 +
even minute = 0<br/>
 +
}<br/>
 +
<br/>
 +
Action<br/>
 +
Switch on lamps in windows<br/>

Revision as of 00:17, 31 December 2013

ago event

The ago event module allows taking action on specific events. You can specify multiple criteria based on the event parameters. Some examples:

  • Close the drapes and switch on the porch light when the sun is setting.
  • Irrigate the lawn every Tue 9:00am and Fri 8:00pm

...

You can specify a single action for each event handler. To trigger multiple actions, create a scenario.

Example

Time trigger

Activate scenario at 8 o'clock and 16 o'clock

Criteria
Time did advance
Operator and
{
event hour = 8
even minute = 0
}
operator or
{
event hour = 16
even minute = 0
}

Action
Switch on lamps in windows

Personal tools