- For entities of some domains (like “binary_sensor”) icon color may be changed automatically dependently on an entity’s state. But you must enable a “state_color: true” option.
- Another way of coloring icons (for entities of all domains) - use card-mod.