Skip to content

✨ New Features & πŸ› Bug fixes

Choose a tag to compare

@cataseven cataseven released this 29 Jul 21:36
· 55 commits to main since this release
ff573be

πŸ“– WIKI PAGES

WIKI is available here.

Special thanks to @andyblac for this great contribution. You can also check his integration Advanced History which uses Statistics Graph Chart Card as default history visualizer

✨ New Features

🏷️ Name a series by the attribute it plots (#327)

Graph two attributes of the same entity β€” a thermostat's current and target temperature, say β€” and both series were labelled with the entity's friendly name. Two identical entries in the legend, two identical rows in the tooltip, no way to tell them apart.

Two new card options fix that, everywhere the name appears β€” state row, legend, tooltip, stats and exports:

include_attribute_name: true      # "Lounge Heating Β· Current temperature"
use_only_attribute_name: true     # "Current temperature"

Pair the second with include_area_names and you get Current temperature Β· Lounge.

In the editor they are two toggles next to Area names, and they behave as alternatives β€” switching one on turns the other off.


πŸ”  State Timeline label size now covers the entity names too

state_timeline_label_font_size sized the state name drawn inside each segment, but the entity name in the column on the left stayed fixed at 11 px β€” so turning the segment font up left the two visibly out of step.

It now sizes both:

chart_mode: state_timeline
state_timeline_label_font_size: 16   # segments AND the entity names on the left

The label column is measured at the new size, so names still wrap onto up to three lines instead of being cut off, and rows grow to fit them. Leaving the option unset is unchanged β€” 10 px inside segments, 11 px for entity names, exactly as before.

Because the setting now reaches the entity names as well, the editor field no longer disappears when Show State Labels is turned off β€” it stays available for the whole of State Timeline mode.


πŸ”΄ A "Live" value in the entity legend

The legend row under the graph could show Min, Avg, Max, Sum and Last β€” all of them describing the time range on screen. There's now a sixth option, Live: the entity's state right now, whatever period the chart is showing.

entities:
  - entity: sensor.power
    show_in_legend: true
    legend_stats:
      - avg
      - live      # today's average, next to what the meter reads this second

In the editor it's a new checkbox next to Last and Sum, in the entity's Basic tab under Legend.


πŸ›  Fixes & reliability

πŸ“‰ Stacked charts no longer break apart at zero (#330)

On a stacked chart, any series that touched 0 was cut in two there. A battery that stops charging, a grid feed that drops to nothing, a device that switches off β€” the line stopped dead, the fill ended, and both picked up again only once the value rose above zero. On a busy energy card that meant a row of ragged gaps right where the reading was simply zero.

🎨 State Timeline legend now shows the state colours (#332)

A State Timeline row is painted entirely from state_map β€” grey for off, yellow for on, whatever you defined. The legend ignored all of that and showed the entity's line colour, which in this mode is only a fallback for states you didn't map. With no colour set, that was a palette pick: a red chip sitting next to a grey-and-yellow row, pointing at nothing on screen.

🧩 No more hairline gaps between stacked areas

Where two stacked series met, thin slivers of the dashboard background showed through the seam β€” barely visible at normal size, obvious as dark wedges once you zoomed in with the brush.

The two series disagreed about the boundary they share. Series are drawn with smoothed curves by default, but each one closed the bottom of its fill with straight lines. So the lower series' rounded top and the upper series' straight bottom traced slightly different paths, and the background showed between them wherever the curve pulled away from the straight line.

🎨 card-mod styles no longer vanish on reload (#268)

Styling this card with card-mod was a lottery: your CSS applied while you were editing, then a page refresh or app restart silently dropped it, and re-saving the card brought it back.

The cause was a startup race. card-mod injects its style element into the card almost immediately, while the card builds its own content only after the first history fetch β€” and that first build rebuilt the card's insides from scratch, discarding whatever card-mod had already injected. card-mod never re-inserts on its own, so the styling stayed dead until something rebuilt the card (saving it in the editor, switching dashboards). Whether it "worked" simply depended on which of the two finished first.