Good Morning,
I was wondering if someone can help me with this if template. I am getting inconsistent results when I use developer tools.
This trigger defines the A/C conditions before arrival
sensor:
- name: "Cool When The Livingroom is Over 75 degrees"
state: >
{% if states('states.climate.living_room.attributes.current_temperature')| float >= 75 %}
cool
{% else %}
off
{% endif %}
- name: "Heat When The Livingroom is under 60 degrees"
state: >
{% if states('states.climate.living_room.attributes.current_temperature')| float <=60 %}
heat
{% else %}
off
{% endif %}
This is my first if template and I also new to templates as you can tell.
Thanks,