Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - platform: template
- sensors:
- personer:
- friendly_name: "personer"
- value_template: >-
- {% if is_state("sensor.alexander", "Hemma") or is_state("sensor.ebba", "Hemma") %}
- Hemma
- {% else %}
- {% if is_state("sensor.alexander", "Borta") and is_state("sensor.ebba", "Borta") %}
- Borta
- {% endif %}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment