#Change entitiy Color from standard yellow to green

1 messages · Page 1 of 1 (latest)

cosmic elk
#

Hi, i am completely new to HA.
I currently only have a few things that i can control.
These include 2 sockets. However, I don't like the standard yellow color when the socket is on. I would like to have it in green when the socket is on, not the standard color yellow.

After a bit of googling I found something, but it doesn't work the way I would like it to.

Here is my code:

show_name: true show_icon: true type: button tap_action: action: toggle entity: switch.ledvance_plug_z3 icon: mdi:bed-empty show_state: true icon_height: 50px name: Steckdose Bett grid_options: columns: 4 rows: 2

What do I have to write if I want to have green instead of yellow when switched on? is it that simple or do I need an extension from the HACS store?
Hope somehone has a easy solution for this one 🤘

marsh radish
#

for example

#

there are other custom card integrations which have various options. but mushroom is a good entry point to customising stuff and learning dashboard customisation.

sly viper
#

Along with Michael's options, you could set the colors in your theme but this would be a system-wide change. If you're just wanting to make the customizations to just this card, then card-mod can be used. It can be a bit complicated to use at times but it's very powerful.
I have an example on my Github that can help you out. Card modding a button card's icon and icon color. (Look at the One State example.)

#

In terms of card styling flexibility like Michael mentioned, I like the custom:button-card. Super customizable and very powerful. (Note that this card uses Javascript and not Jinja like most other cards so syntax can be different.)

marsh radish
#

yeah card-mod is super powerful but its not the most friendly early on. you will end up there to tweak stuff later. but something more friendly to learn the ropes might be better early on.

sly viper
# marsh radish yeah card-mod is super powerful but its not the most friendly early on. you will...

Agreed. Themes is probably the easiest. Custom options (that are well developed) such as Mushroom, custom:button-card, and Bubble are good go-tos. Card_mod is definitely a more advanced option, but, given someone's previous experience can be useful especially with knowledge of CSS. That, and willingness to jump in. (And seeing a specific usage like I linked to helps.)
I kind of slowed myself down when I first started using HA because I was "afraid" of YAML. (This was before UI Editors.) Now, I almost prefer using YAML vs UI.

cosmic elk