The right variable is state-binary_sensor-active-color not state-binary-sensor-active-color because domain use snake case.
Also the variable in default theme should be state-binary_sensor-active-color not state-binary_sensor-color. I will push a fix for that.
ALL my colours in my picture element cards are f**ked up again now.
How do I get them back? What are the new names of the CSS I need to use in picture elements card to get the colours defined for individual elements. I asked you directly many days ago what we should watch out for.
it is ignored. I want the bed red when it is occupied. But I do not want all binary sensors to be red. I only want the bed icon in the picture_elements card to be red. So I cannot just change the theme colours.
You can also use state-binary_sensor-occupancy-on-color: red in a theme file so all occupancy binary sensors will be red. You don’t have to define them in every card.
The first thing I did was put --state-active-color: red and it did not work.
So then I had to tried without – and with 255,0,0 and nothing worked.
The theme changes are documented. But the picture-elements card still requires more knowledge and it should be documented on the picture-elements card documentation because the documentation that is there is now WRONG
Feel free to open an issue or fix documentation if it’s wrong.
Things evolves and documentation can not be always up to date. I will remove reference to paper item variables in documentation as it’s not supported to avoid confusion.
Following this conversation as after last update, my “curtains” are purple again.
I’m not so sure anymore what should be the best way to fix this now ?
Is there a solution yet?
@piitaya This is great, but we need a way to suppress the defaults from the theme. I am trying to have a simple colour scheme with just a colour for state-active-color and one for state-inactive-color (applying to all entities across the board).
But this just doesn’t work well because there are dozens of overrides in the default theme for various domains and states which take priority.
For one second I thought this is our Dashboard. I have mostly the same ground plan (I mean: black walls, even Windows and doors are drawn quite similar - oc not the placement). Also most of your Icons are the same.
AND: We’re also using 99% of the time this one dashboard.
My problem is foremost lights with brightness control that are “white on white” when set to 100% brightness.
I’m disappointed that there is a) no easy way to adjust that (who’s thinking that white is a good color for 100% brightness lamps (even if someone consider a dark theme in general) and b) that even with hand stands like this above, it’s not possible to change the current behavior in all cases.
I mean, like… nearly 700 replies to this topic just is an statement somehow, isn’t it?
Thank you @KennethLavrsen also for pointing out, that there isn’t even a reliable documentation for that.
Ok, but even assuming that works, I’ll have to set over 40 properties to initial in my theme, and then make sure for each release every month that my list matches the list defined in the default theme.
And also, the system doesn’t even seem to work globally, for example climate and media_player entities (which are documented as working) don’t appear to pick up state-inactive-color. They seem to instead use --paper-item-icon-color, wasn’t that supposed to be deprecated?