Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Boiler on or off based on heating values
- sensor:
- - platform: template
- sensors:
- boiler:
- friendly_name: "Boiler"
- value_template: >-
- {% if states('sensor.dining_room_heating') != '0.0' %}
- On
- {% elif states('sensor.living_room_heating') != '0.0' %}
- On
- {% elif states('sensor.master_bedroom_heating') != '0.0' %}
- On
- {% elif states('sensor.office_heating') != '0.0' %}
- On
- {% elif states('sensor.nursery_heating') != '0.0' %}
- On
- {% elif states('sensor.spare_bedroom_heating') != '0.0' %}
- On
- {% elif states('sensor.utility_heating') != '0.0' %}
- On
- {% else %}
- Off
- {% endif %}
- # Read date and time boiler was last on
- - platform: file
- file_path: /share/boilerlaston.txt
- name: Boiler Last On
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement