Heizung speichere aktuelle Temperatureinstellung
Ich war bislang auf dem Weg die Komfort Temperatur über den input_number Helfer fix einzustellen.
Das Leben mit meiner Frau zeigt mir aber, dass es besser ist, die Komfort Temperatur vom Thermostat zu übernhemen.
Ich speichere also die Temperatur vom Thermostat in den input Helfer, solange sie über der ECO Temperatur ist.
alias: Heizung speichere aktuelle Temperatureinstellung
description: ""
trigger:
- platform: state
entity_id:
- climate.thermostat_buero
- climate.thermostat_carrera
- climate.thermostat_ez
- climate.thermostat_flur
- climate.thermostat_gruen
- climate.thermostat_kinderbad
- climate.thermostat_lydi
- climate.thermostat_rosa
- climate.thermostat_studio
- climate.thermostat_sz
- climate.thermostat_wc
- climate.thermostat_wcdg
- climate.thermostat_werkstatt
- climate.thermostat_wz
attribute: temperature
condition: []
action:
- variables:
room: "{{ trigger.entity_id.split('_')[1] }}"
device: "{{ 'climate.thermostat_' + room }}"
eco: "{{ 'input_number.thermostat_' + room + '_eco' }}"
comfort: "{{ 'input_number.thermostat_' + room + '_comfort' }}"
device_temp: "{{ state_attr( device, 'temperature') }}"
eco_temp: "{{ states(eco) }}"
store_temp: "{{ device_temp > eco_temp }}"
- if:
- condition: template
value_template: "{{ store_temp }}"
then:
- service: input_number.set_value
data_template:
value: "{{ state_attr( device, 'temperature') }}"
target:
entity_id: "{{ comfort }}"
mode: single
No Comments