β¨ New Features & π Bug Fixes
β¨ What's New
π Date Picker β rolling "Last N" ranges
Pick a rolling window that always ends at now: Last 24H, 3D, 7D, 15D, 30D, 90D, 180D, 12M. Set one as the view the card opens on, or add them as buttons next to D / W / M / Y. The β βΆ arrows jump a whole period at a time. The classic Day / Week / Month / Year buttons are unchanged.
π‘ Attribute history in State Timeline (#219)
A State Timeline row can now show the history of an attribute instead of the entity's state β perfect for things Home Assistant already records, like a TV's current app, a Wi-Fi band, or a thermostat's heating/idle action. Just choose the attribute and list its values in the State Map. No template sensor needed.
type: custom:statistics-graph-chart-card
chart_mode: state_timeline
card_header: SONY KD-65XH9077 β Aktivite
hours_to_show: 24
state_timeline_corner_radius: 4
entities:
- entity: remote.bravia_xh9077
name: Aktivite
attribute: current_activity
state_map:
- value: Amazon Prime
label: Amazon Prime
color: "#00A8E1"
- value: Google Play
label: Google Play
color: "#34A853"
- value: Wallpaper
label: Duvar KaΔΔ±dΔ±
color: "#9B59B6"
- value: Home Screen
label: Ana Ekran
color: "#7F8C8D"
- value: Youtube
label: YouTube
color: red
- value: Radio
label: Radyo
color: "#F39C12"
- value: Netflix
label: Netflix
color: orange
- value: TV
label: TV
color: "#3498DB"
- value: Spotify
label: Spotify
color: "#1DB954"
- value: Tabii
label: Tabii
color: "#00BFA5"
- value: Tivibu
label: Tivibu
color: "#E6007E"
- value: Ace Stream
label: Ace Stream
color: "#34495E"```
π¨ Per-state colours in the editor
The State Map field now accepts value, label, color, so you can give each state its own colour right in the visual editor β no YAML required. Ideal for making every State Timeline segment a different colour.
βοΈ Tooltip order & a unit on the Total (#221)
A new Tooltip Order option (Overlay β Tooltip) lets you list tooltip rows as Default, Reverse (matches a stacked chart top-to-bottom), or Alphabetic. The Total row now also shows the unit (e.g. 6.20 kWh) when every entity shares one.
π Tooltip date can match the axis (#215)
Switch on Tooltip Date = Axis (Overlay β Tooltip) to make the tooltip's date read just like the X-axis β e.g. May 26 on long-range views instead of a full timestamp.
π€ More date formats
New ready-made formats, including month names that follow your dashboard's language (MMM YY β May 26 in English, Mai 26 in German) and ISO styles like YYYY-MM-DD.
πͺ State Timeline X-axis labels (#218)
State Timeline now has the same X-axis label controls as Timeline β size, opacity, colour, and a separate colour for date labels β under the X Axis tab.
γ½οΈ Labels on moving-average lines
Each moving average can show a small MA7 / MA26 label at the end of its line. Turn it on per line, next to the colour picker.
π Fixes
- State Timeline now matches HA's History (#208) β states are drawn as real segments at their actual change times instead of being merged or dropped, and it stays accurate at any Points/Hour.
- Colour variables in Pie & more (#217) β
color: var(--my-colour)now works in Pie, Radial Bar, Polar Area, Radar and Ranking, not just Timeline. - Clean 12 months in Year view (#216) β a year grouped by month no longer shows an extra empty column for next January.
Updating: Home Assistant caches the card aggressively β after updating, hard-refresh your browser ctrl+shift+R, or clear cache via menu