Wakeuplight

Aus FhemWiki
Wechseln zu: Navigation, Suche

Set up a wakeup light which will slowly dim-up a lamp, e.g. at your bedside, and will switch it off again after a certain time.


Code

define wakeup at *07:00:00 {\
   if (!$we) {\
     {fhem("set Lamp1 dim100% 1280") }\
     {fhem("define wakeupOff at +00:40:00 set Lamp1 off") }\
  }\
}

Explanation:

The time indicated for wakeup (here: 7am) is the starting-time of the dim-procedure. The asterisk indicates this procedure shall be executed every day.

The program uses the variable $we (weekend), so your wakeuplight will only turn on on weekdays. If you implement holiday2we, the wakeuplight will also remain off on holidays.

The set-command 'dim100% 1280' will dim the lamp to 100% over a timespan of 1280 seconds, i.e. 21 minutes.

Finally, the off-command is scheduled for 40 minutes from wakeuptime.

Change of wakeuptime

To change the wakeuptime to e.g. 8am, type the following into the input-field on the fhem-frontend:

modify wakeup *08:00:00

Comments

The solution requires an FS20 dimmer, in the example above the dimmer is named Lamp1.

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge