Skip to content

Mariusthvdb/custom-icon-color

Repository files navigation

What is Custom-icon-color

hacs_badge GH-release GH-downloads GH-last-commit GH-code-size

We can customize entities in core Home Assistant.

However, there is no core attribute for an icon_color. Custom-ui can add that, and many other things, like templating any atttribute. Custom-ui is very powerful and capable of changing our Dashboards. For some this is too much, and not required. That's why we released this adapted version, only adding the custom icon_color attribute.

You can use it to set the additional attribute in customize:, on a single entity, or globally in our Home Assistant configuration and thus create extremely powerful yet very compact customizations.

You can also use it in template: entities sensors and Jinja templates for it to follow the state of, well, just about anything.

icon-color

If you do require dynamic icon_colors on regular entities, use card_mod. You can find a selection of CARD-MOD-EXAMPLES to show you how.

Some live action:

alarm_volume

NEWS

New version also works on button and entity card

Before, these cards were untouched, and icon_color wasnt compatible. As of 20240110 you can also set customizations for icon_color on

A big thank you to @elchininet for his amazing contributions enabling these features. He is also actively involved in the widely used Kiosk-mode. Besides that, the modernized custom More-info plugin was developed by him.

New Custom More-info

Custom More-info is a new custom Plugin for Home Assistant and superseeds the plugin custom-attributes announced below.

Next to the functionality of custom-attributes, with custom-more-info users can customize when and when not to display the History and Logbook sections in the More-info card. Even hide the History icon in the Header completely. Automatically, or based on manual settings.

From now on you are in control of the More-info attributes and all other sections. Filter all, unfilter all, or select which to see/hide by glob, domain, device_class, or entity_id. Any combination is possible!

Custom More-info gives the user ultimate control over the More-info panel.


New Custom Attributes

Custom attributes is a new resource for Home Assistant to customize which entity attributes are displayed in the Dashboard on more-info cards. Moreover, if configured so that no more attributes are left to display (all attributes are filtered), the attributes dropdown box is not rendered at all. This is replacing that specific functionality from Custom-ui.


Installation

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Examples

See EXAMPLES. For card-mod replacement mods, see CARD-MOD-EXAMPLES


Learn core Home Assistant customization

It goes without saying that custom-icon-color is an extension of core Home Assistant functionality. As such, you should understand what is documented on Homeassisant.io about the subject.

Caveats

Custom-icon-color can't customize everything. Entities created in python scripts (you need to set the customization in the script itself) and entities created by several add-ons can't be touched by . E.g. Home Assistant Google Drive Backup. You can work around that by creating template sensors for those entities, which you can again customize in HA.

Not all Lovelace cards are equal

Not all core HA cards use the same icon handling. Because of that cards like

are not customized by custom-icon-color.

Thomas Loven's Card-mod, which is an amazing plugin for Lovelace with many features, to the rescue.

History

I've been a longtime and heavy user of Custom-ui, and this tiny icon_color sibling is the latest adaptation. Minimized, severly cut in functionality, but very useful. You can read up at history how it came to this adapted version.