@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