would be completely wonderful if we could set the label text also, onlynwhite is showing now, which is not very helpful when one needs more contrast to the lighter label colors…
hoping something like ha-label-text-color: green would be correct syntax for that…?
ive tried the ha-label-badge-color, but it seems that label-badge-red still overrides this?
Im looking for a way to set label-color, and label-text-color , badge-color, badge-text-color
what would i need to use for that in 1 theme?.
this obviously doesnt work as expected:
green_badge:
label-badge-red: lightgrey
label-badge-border-color: green
label-badge-background-color: white
ha-label-badge-color: grey
label-badge-text-color: green
since label-badge-red overrides both border-color (never seems to work at all?) and ha-label-badge-color, which in this combination is simply showing the set lightgrey…
since we’re on the subject:
what would these be for? ive tried them but cant see what they are doing…certainly dont color the label-badge with the mentioned color, they must be for something else?
Have never rated Safari on the Mac, Chrome is far more useful if you want to do anymore than look at the BBC site or Youtube. Regardless, go into Preferences/Advanced and select ‘Show Develop menu in menu bar’ at the bottom as per image below. Then just right click on whatever it is you want more info about and select ‘Inspect element’ and you should see all you could ever want to know about a web page.
since
label-badge-red seems to override @andrey suggestion above of using ha-label-badge-color, I have looked for extra options to theme the badges.
ha-label-badge-label-color would seem to be exactly what i am looking for, an option to theme the badge label color.
Unfortunately this doesnt work at all… with label-badge-red in place, this is overridden with the color set there. Without it it doesnt do anything either…
As shown at the top of this thread, ha-label-badge-color can’t be overridden for some reason, hence why we used label-badge-red to achieve the desired effect.
No, it was the “desired effect” to my question at the start of this thread and I was using it to show why what was wrong with the statement you made in your last post.
This is absolutely brilliant and exactly what I was after. Once I figured out the appropriate tags to override I now have complete control over colours. Well done!
Can this be used to dynamically hide a sensor? I have tried the code below (in my customize.yaml) and it’s not working. Is this supported in HassIO? Are CustomUI functions included automatically or does it need to setup?
I red this thread 3 times and the info is so spreaded all over and confusing I still cannot make the labels to be green when at HOME and red when AWAY.
Can anyone edit the first post with an example that work 100% and INCLUDES all prerequisites please (aka all entries to which config files) ? Like the first thing to set up after a fresh install.
I use HASSIO.
ty
ps.
Please don’t send me to the first post because I went there and still cannot understand how to make it work .
What you showed is advice for advance users.
That is why I couldn’t figure it out. You assumed I have the same system and knowledge as you.
A beginner will panic because in his install there are no files like yourself so instead of focusing on his problem you just served several more on the plate (like splitting YAML).
I use HASSIO (installing via command line is a no go) so I have to install manually and put all the files in their place… which is not covered anywhere.