Hello,
I made an automation that switches off the heating during the night between 23.30h and 05.00h
I think this works but when someone manually turns on the heating, it stays on.
I would like the automation to restart when this happens. (or prevent this)
My kids have the bad habbit to turn the heating in the livingroom to the max and then go to sleep.
I could make use of an motion detector but I just want to turn the heating off in the above period. This is my code (entities\livingroom\heating_off_at_night.yaml)
alias: 'Verwarming s nachts uit'
initial_state: 'on'
trigger:
- platform: homeassistant
event: start
- platform: template
value_template: "{{ states('sensor.time') == '23:30' }}"
- platform: template
value_template: "{{ states('sensor.time') == '05:00' }}"
action:
- service_template: >
{% if '23:30' <= states('sensor.time') < '05:00' %}
climate.turn_off
{% else %}
climate.turn_on
{% endif %}
entity_id: climate.huiskamer
Any help is appreciated