I want to use a schedule to trigger my wake up conditions. Because of various issues I have a different wake up time every day. The scheduer is okay, but I either have to edit the YAML or go to the helper and edit the schedule. I would like to be able to do it from the dashboard by using helpers. (If there is a different / better way to achieve this I am open to it.
An example of the sort of thing I want to do is below, but the configuration.yaml won’t accept it.
schedule:
wakeup_schedule:
name: "Wake Up schedule"
monday:
- from: input_datetime.simon_wake_up_mon
to: "11:00:00"
tuesday:
- from: input_datetime.simon_wake_up_tue
to: "11:00:00"
wednesday:
- from: input_datetime.simon_wake_up_wed
to: "11:00:00"
thursday:
- from: input_datetime.simon_wake_up_thr
to: "11:00:00"
friday:
- from: input_datetime.simon_wake_up_fri
to: "11:00:00"
saturday:
- from: input_datetime.simon_wake_up_sat
to: "11:00:00"
sunday:
- from: input_datetime.simon_wake_up_sun
to: "11:00:00"
I will just use it as a trigger in the “Wake Up” automation.
Thanks, sorry, when I checked back I saw the other solution. Yours is quite neat though.
A quick additional question, if I want the wake up sequence to start 1 minute before is there some easy way to use timedelta (or other method)?
On your second question, I didn’t like that the schedule had a duration, so the solutions here look better, but also I wanted times not to the nearest half hour, and I couldn’t see how to edit the schedule down to the minute.