Is this related to my experience in 2023.2 of the stock Light card using the default theme that some entities’ icons don’t change colour according to their state?
For example I have a Hue group that, in the light card, the icon shows inactive (blue grey) but when on or 50% bright, shows black. But an individual hue bulb in a Light card, the icon shows its colour and state.
My Magic Home LED lights work ok but my tuya light entities don’t.
If I use a Button card or Entities card then the icon behaves as expected.
Well ok, I can see it’s supposed to work like this, but something is obviously broken because I don’t have any color CSS when the HVAC is in idle state:
Not to derail the discussion which is about the colour aspect of the card
But the card seems harder than it is.
The big job is to draw the ground place of the house. I used an app on my iPad and entered the real measurements and exported it as a picture.
The rest is actually simple. And hard.
Simple as in - if you followed the original documentation, you can add your entities. It takes time to get the x,y coordinates right but it quickly makes sense and you can see the result live as you type the numbers. I can recommend trying it. You can make some pretty cool things that no other card can do. And it impresses when you show it to your friends and colleagues.
This as the post I was responding to.
As you can see it is in this blog.
However you are correct, it is off topic for which I have apologised, But so was the original by a well respected member of this community and I was merely responding to the original post asking for an update.
Again I apologise for responding to the post.
With these changes my alarm panel is reg/green as I want it
I have been able to remove most styles from my picture-elements card. The only ones I still need are binary_sensors where I want the off colour to be green. I want binary sensors for motion, presence, toilet seat down to be gray when off which is like the default theme. But I want binary sensors for windows, doors, door locks (which is a reed relay sensing magnet on bolt and not a snart lock) to be green when off. My taste, no complaint. And I get that in the picture-elements with this syntax
Unfortunately it seem that you cannot use the higher level common style for active and inactive. You have to specify exactly the style used for that type of element. And note the “–” prefix that is needed when you write the names in a javascript or CSS context. But not in the YAML when you build a style.
talking about colors not working, they may have been forever in this particular card, tbh, I am not even sure about that because I haven’t used picture-glance card that much.
Now that I do have a bigger setup for my rooms using picture-entity cards, I notice all entities being white in the bottom section.
Paul, is there any chance this is an error, or is it by design these entities simply ignore the careful theme settings we now have:
these entities in this core card ignore the theme variable colors, and the icon_color, bt the latter is a custom card, so can’t complain there.
It would be a true asset if picture-glance would show colors.
maybe add
state_color: true
if it is not already supposed to be using the colors.(ofc I did try that, but its not officially there…so yields no effect)
no need to apologize. it was a bit of a harsh comment. every once in a while some related subject is touched, and we are all adult enough to friendly suggest a better solution for what can be seen as a non -related side-track.
derailing/hijacking…big words.
o well, I guess this is still a very delicate matter for some friends in the community.
But the binary sensors are mostly MQTT based and made by myself years ago. So I would need to change them all first. I may do that.
But also - I may not really want the same binary_sensors to be green in my other cards. My picture-elements cards have this overall theme that green is good, red is bad, grey can be ignorred. In other cards I like the normal grey.
With the exception of the alarm card, most colours are fine. I dislike the purple covers but that is personal taste and I cannot and will not argue that I am right and others are wrong.
I am generally very happy with the new documented way to change colours in themes. That is 100% a good thing.
It is just the picture-elements card I am grumpy about because… No need to repeat. I think you all got it now
EDIT: I actually have added device classes to most of my MQTT binary_sensors. I just forgot. Let me play with that and report back how well that works in practical overall in all cards