Idea:
I have vacuum cleaner and wish to make binary sensor showing did it make cleanup today or not. According to documentation, template binary sensor has delay_on/delay_off variables, but seems like they are not able to recieve exact time via ‘at’ option.
My config looks like this:
- platform: template
sensors:
cleanup_check:
value_template: '{{ is_state("vacuum.my_vacuum", "on") }}'
delay_on:
minutes: 20 #shorter cleaning time usually means that vacuum stacked somewhere
delay_off:
at: '00:00:00' #this line gives an error. idea is to reset cleanup sensor after midnight
Am I wrong, or delay_on/delay_off variables really can’t work with exact time? If they can’t, is there any similar solutions? I can make similar config using input_booleans, but I’d really wish to make as less additional entities, as possible.