Which should paint that icon in orange. This used to work, I’m sure of that, but what I’m not sure is when it changed? It was just today that I noticed that icon is always blue/default color?, no matter which color I want it to be.
(I do vaguely remember that some time ago there was something with state color change, but can’t find it now and also I’m not sure if this is even related)
Is there a simple fix to this, something that I’ve missed in release notes or similar, or do I need to switch to card-mod to make it work again? I’m not very regular with HA updates, usually every 3-5 months, so it’s possible I overlooked something.
A couple of releases ago the old deprecated paper styles were replaced. the release notes had a table with the newer style names. I can’t remember which version, but it was mentioned somewhere at the end and it could not have been more than a couple of months ago so you should be able to find it quite quickly.
Unfortunately I wasn’t able to find mention of this in recent releases, but through official frontend documentation I found this page which has helped to resolve the issue by using --state-icon-color.
Leaving it here for anyone with the similar issue in the future.
(still would be interesting to know when it actually changed and how long I was blind to it)
I also found the table I was talking about with old and new style names. It is in the Backward incompatible changes of the 2025.5 release, section Theming and typography. For instance --paper-item-icon-color → --state-icon-color was the last one in the list: