Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

HVAC_modes template return ever same value

$
0
0

@alverman wrote:

Good morning,
why this code always returns the same value to me ‘Automatic’
Where am I wrong?
Thanks, Alberto

Cattura

# 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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>