Hey everyone I’m trying to put a template in a script I have. So I want to turn on a fan if the Nest’s current temp is over 72 degrees and otherwise just let is off.
Here is what I have but it doesn’t seem to work:
{% if states('climate.nest.current_temperature') | int > 72 %}
- service: switch.turn_on
entity_id: switch.living_room_fan
{%endif %}
So I have this in the middle of one of my scripts. Thanks for any help!!