Homeassistant Sensor

 avatar
squekk21
yaml
2 years ago
719 B
2
Indexable
Never
# Restart Homeassistant after create this lines

- platform: template
  sensors:
    climate_elise_wand_heizen_on:
      friendly_name: Elise Wand Heizen AN
      value_template: >-
        {%- if is_state_attr('climate.elise_wand', 'hvac_action',"idle")  -%}
            0
        {%- elif is_state_attr('climate.elise_wand', 'hvac_action',"off") -%}
            0
        {%- else -%}
            1
        {%- endif -%}
      icon_template: mdi:fire

- platform: template
  sensors:
    climate_elise_wand_heizen_target:
      friendly_name: Elise Wand Heizen Ziel
      value_template: >-
        {{ state_attr("climate.elise_wand", "temperature") }}
      icon_template: mdi:thermometer-check