Advertisement
Guest User

Tado / Home Assistant - Boiler Last On - configuration.yaml

a guest
Jan 22nd, 2020
1,091
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. # Boiler on or off based on heating values
  2. sensor:
  3. - platform: template
  4. sensors:
  5. boiler:
  6. friendly_name: "Boiler"
  7. value_template: >-
  8. {% if states('sensor.dining_room_heating') != '0.0' %}
  9. On
  10. {% elif states('sensor.living_room_heating') != '0.0' %}
  11. On
  12. {% elif states('sensor.master_bedroom_heating') != '0.0' %}
  13. On
  14. {% elif states('sensor.office_heating') != '0.0' %}
  15. On
  16. {% elif states('sensor.nursery_heating') != '0.0' %}
  17. On
  18. {% elif states('sensor.spare_bedroom_heating') != '0.0' %}
  19. On
  20. {% elif states('sensor.utility_heating') != '0.0' %}
  21. On
  22. {% else %}
  23. Off
  24. {% endif %}
  25. # Read date and time boiler was last on
  26. - platform: file
  27. file_path: /share/boilerlaston.txt
  28. name: Boiler Last On
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement