Behaviour changes — read before upgrading
- Row
icon_colorno longer bleeds into additional entities' icons (#445). It paints the main icon only; a sub-entity that relied on inheriting it sets its ownicon_color. - Additional entities follow the row's
color(#441). An entity without its owncolor/state_colorinherits the row's, socolor: noneon the row restores the pre-4.9 look for the whole row. A per-entitycolor,state_colororicon_colorstill wins.
What's new
state_colormap (#444) — a per-state color, the waystate_iconis a per-state icon. Overridescolorfor matching states; unmatched states fall back tocolor. Paints whether or not the entity is active (unlikecolor), and needs no template subscription. The boolean form remains the deprecated alias. Quote'on'/'off'keys in YAML-mode dashboards — unquoted, YAML 1.1 parses them as booleans.- entity: sensor.system_health color: var(--disabled-text-color) state_color: critical: var(--error-color) warning: var(--warning-color) ok: var(--success-color)
name_gap(#401, contributed by @BlackZork) — the spacing between the main icon and the row name, a CSS length or a number (px); previously only reachable with card-mod's shadow-piercing$.- Templates in
styles(#439) — anystylesvalue can be a template, on the row, additional entities andsecondary_info; the way to color the displayed text by state.
Fixed
styleson asecondary_infoobject had been silently ignored since 4.0.0; it applies again, as documented.
Thanks @BlackZork, @crowbarz, @LouPaloma, @dcapslock and @Mariusthvdb for the features, reports and beta testing.
Full Changelog: v4.10.2...v4.11.0