button-card
button-card copied to clipboard
Multiple entities states icon color
Hi, I'm trying to use multiple state of entities to color the icon, but i think that something is wrong styles: icon: - color: | [[[ if ({% set entities = states.switch | selectattr('object_id', 'match', 'scheda_6') | map(attribute='state') | list %} {{ entities }} == on) return 'lime'; else return 'red'; ]]]