I have a chip card in my dashboard that has the state of front door deadbolt.
- type: template
entity: lock.node_230
icon: >-
{% set state=states(entity) %} {% if state=='locked' %} mdi:lock {% elif
state=='unlocked' %} mdi:lock-open-variant {% else %} grey {% endif %}
icon_color: |-
{% set state=states(entity) %}
{% if state=='locked' %}
green
{% elif state=='unlocked' %}
red
{% else %}
grey
{% endif %}
I’m using a Mushroom card lock template for this entry. What I’d like to do is be able to tell the lock state of both my front door and garage entry door, so if the state of both locks is locked, the card will display the locked icon and corresponding locked color, but if one or both locks are unlocked, it’ll display the unlocked icon, and of course the corresponding unlocked color.
Can anyone recommend a way to perform this?