|
Problem:
You want a single switch to turn off a bathroom fan in 10 minutes. Sometimes you may want to turn off the fan immediately.
Solution:
Using 3 events triggered by condition, you can cause the first press of the switch to start a delayed action, and the second press of the switch to cause an immediate action.
This works because HomeSeer does not change the state of any device until after the event has completed. If an event is triggered by a device going OFF, the state of the device is its state before the off is recorded. The events below depend on this functionality.
This example uses a switch "M1" and a fan "M16".
Create 3 events and set the trigger to conditions.
Event #1 (turn on fan)
if M16 goes ON
AND
M1 is OFF
(then turn on M1)
Event #2 (fan delay off)
if M16 goes OFF
AND
M1 is ON
AND
M16 is ON
(then turn off M1 delay 10 minutes)
Event #3 (immediate off)
if M16 goes off
AND
M16 is off
(then turn off M1)
This will work like this:
- When M16 goes on, and M1 is off, it turns on M1 (fan goes ON) (this is the first time the switch goes ON)
- When M16 goes off, and M1 is ON, it turns off M1 in 10 minutes (this is the first time the switch goes ON)
- When M16 goes off, and M16 is already off, it turns off M1 immediately (this is the second time, or more, that the switch went off.
|