v2.7.3 - Configurable grid icon colors
Solar Bar Card - Releases
v2.7.3
New Features
- Configurable grid icon colors: New
grid_icon_import_color,grid_icon_export_color, andgrid_icon_idle_coloroptions with color pickers in the editor. Also configurable viacustom_colorsin YAML (grid_icon_import,grid_icon_export,grid_icon_idle). The icon itself (transmission tower) can be styled via the--grid-icon-colorCSS custom property or card-mod. - Bar segment text spacing: Added a space between the value and "kW" in bar segment labels (e.g., "1.2 kW" instead of "1.2kW").
if you want to change the color of the tower icon itself you can use cardmod
via card-mod
card_mod:
style: |
.grid-icon ha-icon { color: white !important; }
or via the CSS variable
card_mod:
style: |
:host { --grid-icon-color: white; }