button-card icon indicating copy to clipboard operation
button-card copied to clipboard

Multiple entities states icon color

Open Alexandros89 opened this issue 1 year ago • 0 comments

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'; ]]]

Alexandros89 avatar Dec 28 '23 15:12 Alexandros89