Egg Timer

From LinuxMCE
Revision as of 14:49, 26 August 2015 by Marie.o (Talk | contribs) (Created page with "The Egg Timer device (DT #2336) is a logic device. It doesn't really do stuff, but is used to provide additional event logic. In this case, a timer to be used when you want st...")

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

The Egg Timer device (DT #2336) is a logic device. It doesn't really do stuff, but is used to provide additional event logic. In this case, a timer to be used when you want stuff ON for a specific amount of time, and OFF after the time has run up.

Egg Timer is as of today only available as a download from deb.

Setup

Download from deb and store in /usr/pluto/bin and make it executable. Create a child under the core using the above mentioned device template. Quick reload the router

Use

Create an Event, probably a motion event. Instead of sending an ON command to the light you want on for 5 minutes, send StartTimer to Egg Timer with DeviceToLink containing the device ID of the light, and Timeout to 300 seconds. Now, each time the motion is triggered, the timer device is set to 300 seconds before it turns off the light.