Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: template
- sensors:
- stato_serbatoio:
- friendly_name_template: "Stato del serbatoio"
- value_template: >
- {% if is_state("binary_sensor.vuoto", "on") and is_state("binary_sensor.pieno", "on") %}
- pieno
- {% elif is_state("binary_sensor.vuoto", "on") and is_state("binary_sensor.pieno", "off") %}
- parziale
- {% else %}
- vuoto
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement