core
core copied to clipboard
Can not get the actual configured temperature
The problem
I want to use external window sensors to push the tado into "off" mode and to restore the previous configured temperature after closing the temperature. My automation always put the current temperature (e.g. 22.4°) as new temperature after closing the windows instead the defined temperature (e.g. 10°)
alias: tado-wohnzimmer description: >- Speichert den aktuellen Status des Tado Thermostats und stellt ihn nach dem Schließen des Fensters wieder her. trigger:
- platform: state entity_id: binary_sensor.wohnzimmer_fenster_links_tur to: "on"
- platform: state entity_id: binary_sensor.wohnzimmer_fenster_links_tur to: "off" condition: [] action:
- choose:
- conditions:
- condition: state entity_id: binary_sensor.wohnzimmer_fenster_links_tur state: "on" sequence:
- data: message: | Alle Attribute: {{ states.climate.wohnzimmer.attributes }} action: notify.persistent_notification
- data: message: > {% if state_attr('climate.wohnzimmer', 'preset_mode') == 'home' %} Zeitplanmodus aktiv. Aktuelle Zieltemperatur: {{ state_attr('climate.wohnzimmer', 'target_temperature') }} {% else %} Manuell eingestellte Soll-Temperatur: {{ state_attr('climate.wohnzimmer', 'target_temperature') }} {% endif %} action: notify.persistent_notification
- target: entity_id: climate.wohnzimmer data: hvac_mode: "off" action: climate.set_hvac_mode
- conditions:
- condition: state entity_id: binary_sensor.wohnzimmer_fenster_links_tur state: "off" sequence:
- target: entity_id: climate.wohnzimmer data: temperature: "{{ previous_temperature | default(21) }}" action: climate.set_temperature
- delay: "00:00:05"
- target: entity_id: climate.wohnzimmer data: hvac_mode: > {% if previous_hvac_mode in ['off', 'heat', 'cool', 'heat_cool', 'auto', 'dry', 'fan_only'] %} {{ previous_hvac_mode }} {% else %} heat {% endif %} action: climate.set_hvac_mode variables: previous_hvac_mode: "{{ state_attr('climate.wohnzimmer', 'hvac_mode') | default('heat') }}" previous_temperature: "{{ state_attr('climate.wohnzimmer', 'temperature') }}" mode: single
- conditions:
Trace trace automation.tado_wohnzimmer 2024-09-22T20_41_24.157654+00_00.json trace automation.tado_wohnzimmer 2024-09-22T20_40_39.910909+00_00.json
What version of Home Assistant Core has the issue?
2024.9.2
What was the last working version of Home Assistant Core?
2024.9.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
tado
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response