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

Data Template Issue

$
0
0

@flyingsubs wrote:

Hi I’m trying to dive into template and if logic but I can’t seem to get this right. Any suggestions?

Thanks!

 action:
    entity_id: climate.n3rd_st
    service: climate.set_temperature
    data_template: >
      {% if is_state("sensor.nest_hvac_action", "cooling") %}
       "temperature": "74"
      {% elif is_state("sensor.nest_hvac_action", "heating") %}
        "temperature": "66"
      {% else %}
        "temperature": "66"
      {% endif %}

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles