Hi,
Just wondering if someone wil be able to help we out with the below. I am trying to create a template which will tell me when all the of my stats are in an off state. This is my first time doing a template so not really sure what i’m at. When I enter the below in the template in developer tools it works but not when I put into my configuration.yaml.
# Determine when all upstair stats are off #
binary_sensor:
- platform: template
sensors:
underfloor_stats_off:
value_template: >-
{% if is_state ('climate.wardrobe_stat' , 'off') and is_state ('climate.upstairs_hall_stat', 'off') and is_state ('climate.master_bathroom_stat', 'off') and is_state ('climate.main_bathroom_stat', 'off') and is_state ('climate.hot_press_stat', 'off') %}
Yes
{% else %}
No
{% endif %}
Thanks for the help