@alverman wrote:
Good morning,
why this code always returns the same value to me ‘Automatic’
Where am I wrong?
Thanks, Alberto# usato in floorplan - platform: template sensors: hvacmode_p1: friendly_name: Modo riscaldamento p1 value_template: >- {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'off') %} Spento {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'heat') %} Manuale {% if is_state_attr('climate.house_thermostat_1', 'hvac_modes', 'auto') %} Automatico {% endif %}
Posts: 6
Participants: 3