Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- sensors:
- porta_ingresso:
- friendly_name: "Porta Ingresso"
- value_template: >-
- {% if is_state('binary_sensor.porta_ingresso', 'off') %}
- Chiusa
- {% elif is_state('binary_sensor.porta_ingresso', 'on') %}
- Aperta
- {% else %}
- failed
- {% endif %}
- icon_template: >-
- {% if is_state('binary_sensor.porta_ingresso', 'off') %}
- mdi:door-closed
- {% elif is_state('binary_sensor.porta_ingresso', 'on') %}
- mdi:door-open
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement