alias: Taktoptimierung EG description: "" trigger: - platform: numeric_state entity_id: sensor.power_monitor_device_switch_0_power value_template: "{{ states('sensor.power_monitor_device_switch_0_power') }}" below: 70 for: minutes: 1 condition: - and: - condition: template value_template: "{{ is_state('climate.heating_device', 'heat') }}" - condition: numeric_state entity_id: sensor.outside_temperature above: 5 action: - variables: orig_temp: "{{ state_attr('climate.heating_device', 'temperature') }}" lower_room_temperature: "{{ states('sensor.room_temperature') | float - 0.4 }}" - service: climate.set_temperature target: entity_id: climate.heating_device data: temperature: 14 - delay: "00:10:00" - wait_template: >- {{ states('sensor.room_temperature') | float < lower_room_temperature }} timeout: "00:60:00" - service: climate.set_temperature target: entity_id: climate.heating_device data: temperature: "{{ orig_temp }}" mode: single