Does anyone know how to use a scheduler helper overnight? I want the scheduler to run from 22.00h - 08.15h (don’t want to use the frontend because I also want to be able to change the time to other than half an hour times).
If I do a test in the user interface to pull the block over the night, the block seems to stop at 00:00
If I use in YAML:
tuesday:
- from: "00:00:00"
to: "08:15:00"
- from: "22:00:00"
to: "00:00:00"
wednesday:
- from: "00:00:00"
to: "08:15:00"
- from: "22:00:00"
to: "00:00:00"
I get this error:
Invalid config for [schedule]: Invalid time range, from 22:00:00 is after 00:00:00 for dictionary value @ data['schedule']['nachtverlaging']['tuesday']. Got [OrderedDict([('from', '00:00:00'), ('to', '08:00:00')]), OrderedDict([('from', '22:00:00'), ('to', '00:00:00')])]. (See ?, line ?).
Apparently the 00:00:00 can’t be the end of the day.
I sort of works as I change it this way:
tuesday:
- from: "00:00:00"
to: "08:15:00"
- from: "22:00:00"
to: "23:59:59"
wednesday:
- from: "00:00:00"
to: "08:15:00"
- from: "22:00:00"
to: "23:59:59"
But that results in two triggers (one off and a second later one on again). Is it possible to make one block from 08.15h - 08.00h next day?