I’m using the mushroom cards and love the way that when I create an entity card, I get the icon/card color coded dynamic based on the state of the entity. I’m trying to get that same functionality to work on the chips, but can’t seem to get it to work and noice that the chips have only an “icon color” and options for default or a color picker.
Is there a way to do this without having to write my own conditionals in a chip template?
Thanks for the incredibly quick response! I am aware of doing it manually. I was wondering if there was a way of having it applied automatically. For example, my door lock has a battery and when I add the battery as an entity card the battery icon and color update automatically. Since I’m use to DRY coding, card coding the yaml feels very wrong to me, but if that is the only way I understand.
For example, I would like to have some definition of state coding and icons for different entities (which I realize now is in HA and not necessarily in mushroom cards), that whenever I call an attribute or variable in yaml (for example state_color: true) it would apply the colors depending on the state.
This is more efficient/consistent vs. having to write the same yaml if statements across multiple cards.
agh, OK - so like some global state/colour rules? The closest you can get is maybe themed colours and using customize but not sure that will do what you want.