You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chartdeck 2.2.0 adds six chart styles (50 in all, up from 44), a Chartdeck badge for the badge row of a Sections view, and new options that work across the history charts and gauges. One change can move a number on a card you already have: a limit, target or colour band start read from another entity is now converted from that entity's own unit, so a °F helper on a °C card lands where it should instead of being read as °C (see Changed). The new charts are the marimekko, chord diagram, battery grid, spiral, strip plot and cycle plot. The line chart gains forecasts after now, anomaly marks, earlier spans drawn faintly behind the current one, thresholds that follow an entity's history and a live now line; the column chart gains error bars and the now line; the ring, arc and needle gauges can show their recent range. Any history series can become a running total or a rate of change, convert its unit, or show only while a condition holds; names in the header can hide and show their series; line, column, area, pie and Sankey charts can draw straight from the Energy dashboard; and charts get an export menu. Everything is settable in the visual editor and translated into all six languages. Statistics charts also stop blanking and redrawing when the dashboard re-lays out its cards.
Fixed
These were found while bringing the 21 features together and testing them on a real Home Assistant (2026.11) with real history, long-term statistics and Energy dashboard settings. The first two affected the published 2.1.0 and earlier versions; the rest were in the new features and never reached a release.
In 2.1.0 and earlier
Charts reading long-term statistics no longer blank and draw themselves again when the dashboard moves them. A masonry or sections view takes cards off the page and puts them back whenever it re-lays out its columns, as it does when the window is resized. Each time, a chart with source: statistics (or one that reads statistics by default, such as the range area, candlestick and heatmap calendar) went back to "Loading history…", reloaded the same span and replayed its draw-in, so columns could be caught at zero height. The same happened once every statistics period (every five minutes on a short span) while the card simply sat there. The chart now keeps drawing the rows it has while the same span reloads, and swaps in the new rows when they land. If that reload fails, it keeps what it had and tries again a period later instead of showing the error. A change of span, source or entities still loads from scratch. This had been the case since statistics came to the history charts in 1.3.0. (#119)
The beeswarm shows a sensor that held one value all period, instead of saying "No readings". History only records changes, so a sensor that sat at 21.4 °C for the whole span has no reading inside it, only the value it carried in. Its row used to be empty with "No readings" under the name. It now draws one dot at that value, the value axis fits around it, the row says "No change: 21.4 °C", and hovering it reads Held all period. This applies to raw history only; grouped readings and statistics rows were never affected. With place_by: time_of_day the row stays empty, since a value held all period was not read at any time of day. The new strip plot behaves the same way from the start. (#119)
In the new features, before release
Earlier spans no longer sit an hour off across a clock change. The first version moved the whole of yesterday's line forward by one amount, so on the day the clocks went forward or back part of it sat an hour away from the same time today. Each point is now moved by the wall clock, and the hour that happens twice on a fall-back day is drawn once. (#119)
A stepped threshold over a long span reads long-term statistics. The first version always read raw history, so a year of a tariff that changes every half hour was one very large request. It now loads the way the chart's own series do (see Stepped thresholds). (#119)
Unit conversion now reaches the 24-hour clock's number rings. The first version converted the readings before the clock read them as numbers, so nothing changed. (#119)
A spike a few readings wide gets one anomaly label, not a stack of them. The three furthest-out marks used to be labelled separately, so two marks side by side printed two "+10σ" labels on top of each other. Nearby marks now share one label, and a label that wouldn't fit clear of the other marks is left out. (#119)
Energy dashboard flows with no entity no longer read "Entity not found". An integration's own statistic (a tariff provider's import meter, say) or a meter whose entity has been removed has a statistic but no entity. It is now named from the Energy dashboard or the statistic, kept by hide_unavailable, and does nothing when tapped. (#119)
The badge's limits can be entities from its editor, and its icon can be picked there. The first badge editor had plain number boxes for Minimum and Maximum, so a limit from an entity was YAML only, and no icon picker. (#119)
Added
Marimekko
A card can now split a total two ways at once: by group, and by category within each group. Set style: marimekko (or pick Marimekko under Parts of a total in the Style section). Each group is a column as wide as its share of the whole, split into its categories by their share of that column, so one chart answers both "which room used most" and "what did it use it on". It draws from the entities' current values, so no history is loaded. (#119)
type: custom:chartdeck-cardstyle: marimekkotitle: Energy by room and useunit: kWhentities:
- entity: sensor.kitchen_heating_energygroup: Kitchencategory: Heating
- entity: sensor.kitchen_lighting_energygroup: Kitchencategory: Lighting
- entity: sensor.living_room_heating_energygroup: Living roomcategory: Heating
- entity: sensor.living_room_lighting_energygroup: Living roomcategory: Lighting
An entity's group names its column. Without one, the card's group_by places it by floor, area, device or label from Home Assistant's registries, as on the treemap, with several levels joined by " / ". An entity with neither goes in Other.
An entity's category sets its colour, and without one its name is its category. Categories stack bottom up in the order they are first listed, in the same order in every column, so a colour sits at the same place across the chart however the values move. A category takes the first own color among its entities, else the next series colour.
segment_labels prints percent (the share of its column, the default), value, both or none inside each part. Text goes only where it fits: a part under 18 px tall, or too narrow, stays blank, and both falls back to the share.
Each column's total sits above it when every entity shares a unit, and the group's name below; show.value: false and show.name: false hide them. A legend of the categories sits under the chart when there are two or more. sort orders the columns by their total.
Unavailable and missing entities are listed under the chart after No reading:, still tappable. Zero and negative values get no part, a group with nothing above zero gets no column, and with nothing above zero at all the card says so.
Hovering a part shows its column, category, value and share; tapping runs the entity's tap action (more-info by default).
In the editor: Chart section, with Text on each part and Group by. Each entity has Column (group), Category and Category colour in its own options.
Chord
A card can now draw flows between a few places round a circle, including flows both ways between the same two. Set style: chord (or pick Chord (flows round a circle) under Parts of a total). Each place is an arc as long as everything flowing in and out of it, and each flow is a ribbon joining its two places, as wide as the flow at both ends. Unlike the Sankey it allows flows in both directions and round in a loop, so the grid charging the battery and the battery exporting to the grid fit on one chart. It reads the same per-entity from and to as the Sankey, so a card can switch between the two and keep its flows. It draws current values; no history is loaded. (#119)
type: custom:chartdeck-cardstyle: chordtitle: Energy todayunit: kWhpad: 3entities:
- entity: sensor.solar_to_house_energyfrom: Solarto: House
- entity: sensor.grid_to_battery_energyfrom: Gridto: Battery
- entity: sensor.battery_to_grid_energyfrom: Batteryto: Grid
- entity: sensor.battery_to_house_energyfrom: Batteryto: House
Places go round clockwise from the top in the order they first appear, each taking the next series colour. A ribbon takes the colour of the place it leaves, unless the flow has its own color. sort orders the places by their total instead.
pad is the gap between places in degrees, 0 to 20 (default 3); the gaps never take more than half the circle. ribbon_opacity is above 0 and up to 1 (default 0.35, or 0.45 in a dark theme).
Where ribbons meet a place they are stacked by how far round the other place is, so they cross only where they must. Labels sit outside each arc with the name and total, cut short with "…" past a quarter of the card's width. The circle grows with the card, up to 240 px across. Totals use the first flow's unit and decimals.
An unavailable, negative or non-number reading is a flow of 0, and a flow of 0 isn't drawn; with nothing flowing at all the card says "Nothing is flowing right now." Entities without both a from and a to are left out, and from and to must be different places.
Hovering a ribbon lights it, fades the rest and shows "Solar → House" with its value; hovering a place lights every ribbon that touches it. Tapping a ribbon runs that entity's tap action.
In the editor: Chart section, with Gap between nodes and Ribbon opacity. Each entity has Flows from, Flows to and Flow colour, the same fields as on the Sankey.
Battery grid
Every battery in the house can now sit on one card, emptiest first. Set style: battery (or pick Battery grid under Bars). Each entity is a battery outline filled from the left to its level, with the value and name under it: red below 20 %, amber below 40 %, green from 40 %, so the ones to change stand out. With an include rule, new devices appear by themselves. (#119)
It has no options of its own. The fill runs from min to max (0 to 100 by default). Set severity, on the card or one entity, and its bands replace the red, amber and green.
Picking it in the editor also sets Sort to smallest first when no sort is set. A card written in YAML without sort keeps the listed order, as every other style does. Unavailable batteries go to the end of a sorted grid.
Tiles are 88 px wide, as many across as fit; columns caps how many sit across, and a tile never gets narrower than 76 px, so a narrow card uses fewer. show.value: false and show.name: false hide the text under each battery.
An unavailable or missing entity draws a dashed, empty outline with its status ("Unavailable", "Entity not found") under it, even with show.value: false.
Each tile is the entity's own element, so tap, hold and double-tap actions work as on the bar styles. Batteries fill in when the card appears and move to a new level when it changes; no motion with animate: false or when the browser asks for reduced motion.
In the editor: Display section, with Sort, Columns, and the include and exclude rules in the Entities section.
Spiral
A card can now wind a week of history into a spiral, one turn a day, so a daily habit lines up. Set style: spiral (or pick Spiral under History charts). Midnight is at the top of every turn, the oldest day in the middle and today on the outside, and each hour is a stretch of the ring shaded by its value. The evening peak or the morning shower falls along one direction, and a day that broke the pattern stands out. (#119)
turn is day (the default) or week. turns sets the span: 1 to 31 days (default 7) or 1 to 13 weeks (default 4). The period's last, unit, calendar and until aren't used; period.offset and period.navigate are, as are source and aggregate (change for a meter).
Readings are grouped by hour in Home Assistant's time zone. A day with a clock change is still exactly one turn, so midnight stays at the top.
Colour is a smooth scale of the entity's colour, faint for the lowest hour in view and full for the highest, or between color_min and color_max (the first must be below the second). color_by: bands uses the entity's colour bands instead, and the legend lists them. ring_width is how much of the space between turns each ring fills, 20 to 100 % (default 80).
A faint track runs under the whole span, so hours with no readings read as gaps, not as zero. A dot marks now when the span reaches it. Unavailable and missing entities draw the empty track.
Each entity gets its own spiral and legend (beside the spiral on a wide card, under it on a narrow one) with its name, value, the span ("7 days, one turn a day") and the scale; legend: false hides it. Hovering a stretch shows its day, hour and value; tapping the spiral or the name runs the entity's tap action. The spiral fades in, without motion when the browser asks for less.
In the editor: Chart section, with One turn per, Turns, Periods back (0 is the current one), Show previous and next buttons, Readings from, Combine with, Colour, Ring width, Lowest colour at, Highest colour at, Legend and Show values on hover or touch. Each entity has a Line colour.
Strip plot
A card can now draw every reading as a dot, one row per entity, so you can see how the readings spread. Set style: strip_plot (or pick Strip plot under Distributions). Dots are scattered across their row so busy spells show as a thick band, with a line at the median. It shows the spread without the smoothing of a violin, and handles far more readings than a beeswarm. (#119)
One dot per reading taken in the period. The value carried in from before it and the copy carried to its right edge are not readings and get no dot. A sensor that held one value all period draws one dot there, with "No change" under its name.
A dot's place across the row comes from its own time, so it stays put as new readings arrive and old ones drop off; the plot doesn't shimmer when it redraws. jitter is how much of the row the dots spread over, 0 to 100 % (default 70; 0 puts every dot on the centre line), and dot_size is 2 to 16 px (default 5). Dots are a little see-through so overlaps read darker.
marker: median (the default) draws the line at the median and writes "Median 21.4 °C" under the name; mean draws it at the plain average ("Average …"); none draws no line and writes the number of readings. Both are of the readings as taken, not weighted by time, so the line sits among the dots it sums up.
At most 2000 dots per row; more are sampled evenly, and the row still says how many readings there were. With no period set it covers the last 24 hours. orientation: vertical, value_axis, value_grid, value_min, value_max, compact and tooltip work as on the beeswarm and violin.
Hovering a row shows its number of readings (and how many dots are shown when sampled), the median, the average, the middle half, and the lowest and highest.
In the editor: Chart section, with the period and source, Line across each row at, Spread across the row, Dot size (px), Direction, Value labels, Lines at each value label, Lowest value shown, Highest value shown, Show values on hover or touch and Compact. Each entity has a Colour.
Cycle plot
A card can now put the average day for each weekday side by side, so a weekly pattern stands out. Set style: cycle_plot (or pick Cycle plot under History charts). With the default cycle there is a small panel per weekday, each the hour-by-hour average for that day over the last few weeks, with its own average dashed across it: Monday mornings running higher than the rest of the week show up as one panel standing out. (#119)
type: custom:chartdeck-cardstyle: cycle_plottitle: House power by weekdaycycle: day_of_weekweeks: 4entities:
- entity: sensor.house_powername: House
cycle: day_of_week (the default) draws one panel per weekday, from your first weekday, each that weekday's average for every hour. hour_of_day draws 24 panels, wrapping onto rows, each one hour on every day of the span in turn. day_of_month draws 31 panels, each that day in every month of the span in turn.
weeks is the span for every cycle, a whole number: default 8 and at most 26 for weekdays, default 2 and at most 13 for hours, default 26 and at most 104 for days of the month. Days of the month read a day at a time from long-term statistics by default, since history rarely reaches back months; the other two read an hour at a time from history.
aggregate combines each hour (or day), mean by default; change suits a meter. The period's last, unit, calendar and until aren't used; period.offset and period.navigate are.
All panels share one value scale. With one entity the panel average is dashed in red; with several, each entity has its own line and dashed average in its colour. A note under the first panel says what each line runs across ("12 AM – 11 PM", or the dates or months of the span).
Hovering a panel shows the moment ("Sunday 8:00 AM – 9:00 AM"), each entity's value and that panel's average, with a guide line. Tapping a name runs the entity's tap action. Lines fade in, without motion when the browser asks for less.
In the editor: Chart section, with One panel per, Weeks, Periods back (0 is the current one), Show previous and next buttons, Readings from, Combine with and Show values on hover or touch. Each entity has a Line colour.
Forecast
A line chart can now draw a forecast dashed after now, from a weather entity or a forecast integration such as Solcast. Give a series a forecast with the entity that holds it. The chart draws it in the series' colour from now on and, when the span ends now, stretches the time axis past now to show it. (#119)
A weather entity with no attribute reads Home Assistant's weather forecast (type: hourly, the default, daily or twice_daily) with the temperature as the value. Any other entity reads the named attribute, or forecast when none is named: a list of objects, a list of [time, value] pairs, or a map of time to value (as Forecast.Solar's watts), with times as ISO text or epoch seconds or milliseconds.
value_key and time_key are guessed when left out (value, pv_estimate, watts, price, total, temperature, native_temperature; datetime, period_start, start, starts_at, startsAt, time, from, date). multiply (default 1) scales every value, for a kW forecast on a W sensor.
It starts at now, at the forecast's value there, and isn't joined to the last reading: a forecast that disagrees with what happened should look like it. Forecast points before now aren't drawn.
The axis stretches past now to the last forecast point, at most forecast_hours (above 0, default 24), when the span ends now. A span drawn to its end (until: end) already reaches past now and isn't stretched; a span wholly in the past shows no forecast.
The value axis fits the forecast, and the hover readout lists "Solar forecast" and lets the pointer move into the future. Zoom and the log scale apply; small multiples don't draw forecasts. A forecast with no entity yet (half filled in the editor) is ignored.
In the editor: each entity's options end with a folding Forecast section, with Forecast entity (draws its forecast dashed after now), Attribute (empty: weather forecast or "forecast"), Weather forecast (empty: hourly), Value key (empty: guess), Time key (empty: guess) and Multiply values by (empty: 1). Show forecasts this far ahead appears in the Chart section once an entity has a forecast.
Anomalies
A line chart can now mark readings that are far from what is normal around them. Set anomalies: true. Each reading is compared with the readings in a window centred on it; one more than anomalies_sigma spreads from their typical value gets a dot, and the normal range is shaded faintly behind the line. (#119)
anomalies_window is auto (the default, a twelfth of the span) or a time: 30min, 2h, 1d, 1w, or a bare number of minutes. anomalies_sigma is any number above 0 (default 3). anomalies_color sets the dots (default red), and anomalies_band: false leaves out the shaded normal range.
The typical value is the median and the spread comes from the median absolute deviation, so a spike can't hide itself by widening the band the way it would widen an average and standard deviation. Labels still read in σ.
A reading needs at least five neighbours, two on each side, to be judged, so the latest reading is judged once two more arrive after it. Gaps and the value carried in at the left edge aren't judged, and readings are counted, not weighted by time.
Up to three labels ("+3.4σ", "−2.1σ") go on the furthest-out marks, one per spike; beyond 10σ they read "over +10σ" or "under −10σ". A label that doesn't fit clear of the other marks is left out, and its dot still says the same on hover ("Humidity: 95 %, +4.2σ from normal").
With zoom it judges the readings on show; with the log scale, those above zero. Small multiples don't draw it.
In the editor: Chart section, Mark readings far from normal; once it is on, Window (30min, 2h, 1d; auto: a twelfth of the span), How far out to mark, in standard deviations, Marker colour and Shade the normal band.
Earlier spans
A line chart can now draw yesterday, last week or last year faintly behind the current span. Set compare to one offset or a list of up to four. Each earlier span is moved forward so the same time of day sits together, so yesterday's evening peak sits over this evening. period.offset and the previous and next buttons show an earlier span instead of the current one; compare puts it behind. (#119)
An offset is a whole number and a unit: h, d, w, mo or y (12h, 1d, 7d, 3mo, 1y). Hours are by the clock; days and longer are by the calendar, keeping the time of day, so a comparison across a clock change still lines up.
The first offset is drawn solid, the next dashed, then dotted, then dash-dot, in grey; compare_style: series uses a faded series colour instead.
A key under the names says which is which ("Yesterday", "Last week", "Last month", "Last year", or "3 days earlier"); show.name: false hides it. The hover readout lists each earlier value ("Yesterday 36.0 W", or "Power, Yesterday" with several series).
The earlier spans are grouped exactly as the chart is, follow it when you step to another period, and load once. One that is still loading or fails to load is left out; the chart never waits for it. The value axis fits them, and zoom and the log scale apply. Small multiples don't draw them.
In the editor: Chart section, Compare with earlier spans (drawn faintly behind), right after the period, with Yesterday, Last week, 28 days earlier and Last year to pick from or your own offset. Colour of the earlier spans (Grey or Faded series colour) appears once one is set.
Stepped thresholds
A threshold line can now follow an entity's history as steps, such as a tariff that changes every half hour, and shade each step by its value. On a line annotation whose value is an entity, set history: true. Instead of sitting flat at today's state, the line follows the entity over the chart's span, each state held until the next. (#119)
zone: above or below shades that side of the stepped line in the annotation's colour (no shading by default). severity on the annotation shades each step in the colour of the band its value falls in, so a day of half-hour prices reads green, amber and red. The bands are in the threshold entity's own units (p/kWh above), which is why they go on the annotation; the card's own bands are not used for the zone.
Unavailable stretches end the line, with the value before a gap held up to it. The last value carries on to now, or to the end of the span. The value axis widens to every step in the span, so a past peak is on show.
It loads like the chart's own series: a span over 7 days, or a card with source: statistics, reads long-term statistics, and an entity without statistics (no state_class) falls back to history. While it loads, or if it can't be read, the line sits flat at the current state.
A threshold entity in a different unit from the chart, when the pair is known, is converted (see Unit conversion).
history, zone and severity are for line annotations only, and a mistake names the entry, such as "annotations[0].severity" must be a list of bands.
In the editor: Chart section, in the Annotations list, each line annotation has Follow the entity's history (stepped) and Shade (Nothing, Above the line, Below the line). With a shade chosen, Shade colours by the line's value (optional bands) adds the bands, with the same presets and entity starts as the card's own.
Now line
Line and column charts can now mark the present moment with a line that moves every minute, and count down to the next set time. Set now_marker to line, time or countdown. It shows when the span runs past now: today, this week or this month with until: end, or a grouped column chart whose last column is still running. (#119)
off (the default) draws nothing, line the line alone, time the line and the current time. countdown adds the time to the next mark of any time annotation: "Night rate in 2 h 15 m", or "Next in 25 m" when that annotation has no label; with nothing due in the next two days it shows the time. Daily marks ("07:00") and one-off dates both count, in Home Assistant's time zone.
A rolling span ends at now, so the line would sit on the right edge: it is left out there.
On the column chart the countdown reads the time annotations in the card's config, though the column chart doesn't draw them.
One timer per card, to the start of each minute, running only while the line is on show and stopped when the card leaves the page. The line slides to its new place, without motion when the browser asks for less. Small multiples don't draw it; the state timeline keeps its own now line.
In the editor: Chart section of the line and column charts, Now line, with Off, Line only, Line and the time and Line and a countdown to the next set time.
Legend toggles
Tapping a name above a chart can now hide or show its series. Set legend_toggle: true and the row of names and values becomes a row of switches. Tap a name to hide or show that series; hold it (half a second) or Shift-click it to show only that one, and do it again to show them all. (#119)
legend_toggle: true
A hidden series leaves the plot, the value axis, the hover readout, value labels and highest/lowest marks. Its name stays in the row, dimmed and struck through, and every series keeps its colour.
With every series hidden, the chart says "Every series is hidden. Tap a name to show it again."
What is hidden is remembered per card in this browser, so it survives a reload. Changing the card's config starts again with everything shown. Where the browser won't store it (some private windows), it lasts until the dashboard is reloaded.
It works on every chart with the names row: line, area, column, combined, range area, histogram, streamgraph, box plot and candlestick. On the candlestick the candle's own entity can't be hidden, and its name still opens more-info.
It needs the names row to be there, so it does nothing with header: hidden, with multiples: true, or with both names and values hidden.
The names are buttons: Enter toggles one from the keyboard, Shift + Enter shows only it, and screen readers hear whether each is pressed. With the option on, tapping a name no longer opens the more-info dialog (see Changed).
In the editor: Chart section, Tap a name to hide or show it, under Names and values and Compact.
Error bars
A grouped column chart can now show how the readings inside each column were spread, so a real difference stands out from noise. Set error_bars to std, min_max or ci95 with readings grouped. A whisker over each column shows the spread, so a day that swung from 16 to 24 °C looks different from one that held at 20. (#119)
type: custom:chartdeck-cardstyle: columntitle: Living room per daygroup_by: dayerror_bars: stdperiod:
last: 7unit: dayentities:
- sensor.living_room_temperature
none is the default. std runs from the average less one standard deviation to the average plus one; min_max from the lowest value in the group to the highest; ci95 is the 95 % confidence interval of the average, 1.96 standard deviations divided by the square root of the number of readings either side.
The spread is weighted by how long each value held, as the column's average is. From statistics, min_max uses each row's own lowest and highest. A std or ci95 whisker never reaches past the group's lowest or highest reading, so a positive column's whisker never pushes the axis below zero.
Readings next to each other are not independent, so ci95 comes out narrower than a strict confidence interval: use it to compare columns with each other.
Whiskers are drawn only where they mean something: readings grouped, side by side or a single series (not stacked), and without range: true. std and ci95 need aggregate: mean; min_max works with mean, min, max, first and last. A meter combined with sum or change gets none, since the spread of a meter's readings says nothing. In those cases the chart draws without whiskers rather than refusing the config.
The value axis widens to fit them, and the hover readout adds the range: "Living room 20.1 °C (17.9 – 23.4)".
In the editor: Chart section, Error bars (spread in each column), shown while readings are grouped, with None, Mean ± one standard deviation, The lowest and highest and 95 % confidence interval of the mean.
Gauge history
Ring, arc and needle gauges can now show where the value has been lately: a faint band from the lowest to the highest reading of the last day or week, with a tick at the average. Set ghost: 24h or ghost: 7d. A reading at the top of its usual range, or one that has barely moved, shows at a glance. (#119)
off is the default. 24h reads the last 24 hours of history; 7d reads hourly long-term statistics, and falls back to history for a sensor without statistics (no state_class). An attribute always reads history.
The average is weighted by how long each value held, so a brief spike doesn't pull it. A reading that hasn't moved still gets a thin sliver.
The band sits inside the scale on the needle, and between the centre and the track on the ring and arc. Hovering it shows "Last 24 hours: 22 % to 68 %, mean 46 %".
Every gauge on the page that shows the same entity and span shares one load. It is read again on the next redraw once it is 5 minutes old (24 hours) or an hour old (7 days).
Like the gauge angles, ghost is the card's option, so every gauge on the card gets it, including entities added by an include rule.
In the editor: Style section, under the style picker while ring, arc or needle is chosen, Recent range behind the gauge, with Off, Last 24 hours and Last 7 days.
Running totals
Any history series can now be drawn as a running total, without a utility meter or an integration helper. Set transform: cumulative on an entity. A meter adds up how much it rose, resets handled; a power sensor is integrated into energy, so W becomes Wh and kW becomes kWh. The total can start again every day, week, month or on a billing day. (#119)
transform_reset is none (the default: from the left edge), day, week, month or billing; transform_reset_day is the billing day, a whole number from 1 to 28 (default 1), so every month has one. Resets follow the calendar in Home Assistant's time zone, and billing on day 1 is the same as month.
A meter with state class total_increasing adds up its rises, with its resets handled. A total meter adds every change, so it can fall. Anything else is added up over time, each reading times how long it held until the next; with unit set to an energy unit, a power sensor's total is scaled to it, and other units read with "·h" (L/min becomes L/min·h).
The total starts at 0 at the chart's left edge and drops back to 0 at each reset. Gaps stay gaps, and a meter's total carries across them. The names row, hover readout and value axis show the total.
It is per entity only; a card-wide transform does nothing. A unit conversion and a when condition are applied first, so the total is of the converted, kept readings.
It works on the line, column, area, combined, range area, sparkline, trend, streamgraph, histogram, violin, beeswarm, heatmap, slope, dumbbell, waterfall, scatter, bubble, box plot, candlestick and 24-hour clock charts. On the 24-hour clock only number rings are transformed, averaged in each slot unless aggregate is set. The climate chart and the wind rose ignore it, and their editors don't offer it.
In the editor: each entity's options, Transform (None (readings as they are), Running total or Rate of change); with Running total, Running total starts again (Never (from the left edge), Every day, Every week, Every month, Every month on a billing day) and Billing day of the month (1–28).
Rate of change
Any history series can now be drawn as its rate of change, so a kWh meter becomes kW and a temperature becomes °C per hour. Set transform: derivative on an entity. The rate at each reading is the change from the reading before, divided by the time between them, drawn at the later reading. (#119)
transform_unit_time is s, min, h (the default) or d. Energy per hour reads as power (kWh per hour as kW, Wh as W, MWh as MW); anything else as its unit per time (°C/h, L/min).
On a meter (state class total_increasing) a fall is a reset: that step is dropped and measuring starts again from the new reading. A meter that hasn't moved draws 0. Other sensors can have a negative rate.
transform_smoothing averages each rate with the ones before it, a whole number from 1 to 100 (default 1, off). transform_smoothing_time averages over a time window instead, weighted by time, up to 7 days (90s, 15min, 1.5h, 1d): on a meter, 15min is "how much it rose in the last 15 minutes, per hour". When both are set, the time window is used.
A gap starts again: no rate is measured across it. The value carried in from before the chart's start is never measured from, since its real time isn't known. Of two readings at the same moment, the later counts.
On a column or combined chart a meter drawn as its rate is averaged per group rather than treated as a meter, so group_by: hour gives the mean kW of each hour. It works on the same charts as running totals.
In the editor: each entity's options, Transform → Rate of change, then Rate per (Second, Minute, Hour, Day), Smooth over readings and Smooth over time (like 15min; used instead of readings).
Unit conversion
An entity's unit now converts its readings when the card knows both units: W to kW, °F to °C, m/s to mph. When the sensor's own unit and the unit you set are in the same family, the value, its history and statistics, its limits, targets and band starts read from other entities, threshold lines and forecasts all follow, and the decimals move with the scale. Before, unit only changed the text after the number. (#119)
The families are energy (Wh, kWh, MWh, GWh), power (W, kW, MW), temperature (°C, °F, K), speed (m/s, km/h, mph, kn, ft/s), pressure (Pa, hPa, mbar, kPa, bar, inHg, mmHg, psi) and length (mm, cm, m, in, ft).
Numbers you type (min, max, target, a band's from) are in the shown unit and never converted: max: 5 above is 5 kW. A limit, target, band start or line annotation read from an entity is converted from that entity's own unit (the input_number above can be in km/h).
What stays text, as before: a unit the card doesn't know, two units from different families (W and kWh), a sensor with no unit, and an attribute, which has no unit. The exception is a thermostat on the climate chart, whose temperatures convert from Home Assistant's unit system with unit: °F, °C or K.
Without decimals, the entity's display precision moves with the scale (W at 0 decimals shows kW at 3; m/s at 1 shows km/h at 0), between 0 and 6.
Every style converts: bars and gauges, every history chart and its history, the 24-hour clock's number rings, the box plot and candlestick, the wind rose (whose default speed bands follow the shown unit, with typed band starts and calm in it) and the climate chart. A transform works on the converted readings.
In the editor: each entity's Unit becomes a drop-down of the units its sensor converts to, when the sensor's unit is one the card knows; you can still type any text. The card-wide Unit in the Display section stays a text box, and converts the same way.
Conditional series
A history series can now show only while something else holds: a room's power only while someone is home, a flow temperature only while the heat pump runs. Give an entity (or the whole card) a when with an entity and a state, or a value it must be above or below. Readings outside are gaps, as if the sensor had been unavailable. (#119)
state takes a state, a list, or text with commas between (home, work); above and below take numbers. Every key that is set must hold, so above: 18 with below: 22 is "between 18 and 22". A when with only an entity is ignored. An entity's own when wins over the card's, and entities matched by an include rule take the card's.
An unavailable or unknown condition entity counts as not met, and before its first recorded state nothing is shown. With source: statistics a row is kept when the condition held at the row's start.
Readings are hidden before they are grouped, so columns, averages, highest and lowest marks, labels and the hover readout use only what was kept.
The chart loads the condition entity's history with its own and follows it live. While that loads the chart says so; if it can't be read, the conditional series show nothing and the others draw as usual.
On the line and area charts, when_ghost: true draws the hidden readings as a thin faint line behind (on an unstacked area only), and when_strip: true adds a strip under the plot with a row per condition, filled where it held, labelled like "Heat pump power > 50". Both are off by default and not drawn in small multiples.
It works on the line, area, column, combined, range area, sparkline, streamgraph, beeswarm, violin, histogram, heatmap, dumbbell, slope, trend, waterfall, state timeline, box plot, candlestick, 24-hour clock and wind rose charts. On the 24-hour clock, time on and switch-ons count only the time the condition held; on the wind rose, a stretch hidden from either the direction or the speed is left out. The climate chart accepts when and ignores it.
In the editor: each entity's options have Show only while this entity, …is in state (commas between), …is above and …is below. The card's own condition is in the Chart section under the style's options, as Show every series only while this entity with the same three fields, then Faint line of the hidden readings and Strip showing when it held.
Energy dashboard
Line, column, area, pie and Sankey charts can now draw what the Energy dashboard is set up with, without listing a single entity. Set source: energy. The card reads the Energy dashboard's settings, finds the statistic for each flow, and draws grid import and export, solar, battery, gas, water and individual devices from long-term statistics, in Home Assistant's own energy colours. (#119)
type: custom:chartdeck-cardstyle: columntitle: Energy, last 24 hourssource: energyperiod:
last: 24unit: hourgroup_by: hourstack: normal
energy_flows picks from grid_import, grid_export, solar, battery_out, battery_in, gas, water and devices (each device in the Energy dashboard as its own series). Left out, line, column and area draw grid import and export, solar, and battery out and in; a pie draws where the energy came from (grid import, solar, battery out); a Sankey draws every electricity flow and the devices.
Line, column and area draw each flow over time as how much its meter rose, an hour at a time by default, and the names row shows each flow's total over the span. On column and area charts, energy leaving the house (grid export, battery charging) hangs below the axis, so a stacked column is what came in above zero and what went out below; hover readouts, labels and the header still read it as a positive amount. energy_split: false stacks everything upward.
A pie and a Sankey draw each flow's total over the card's period, with no previous and next buttons. The Sankey runs grid import, solar and battery out into Home and on to grid export, battery charging and each device, with what the devices don't account for as Untracked use (or Used at home with no devices). A Sankey refuses gas and water, which don't run through the house's electricity.
A flow whose statistic has no entity (an integration's own statistic, or a meter that has been removed) is still drawn, named from the Energy dashboard or the statistic, with no more-info dialog. Units come from the statistics, with electricity in kWh when a statistic doesn't say. Any entities you list are drawn after the energy flows.
The settings are read once per page and again after 30 minutes. While they load the card says "Loading the Energy dashboard settings…"; with none of the chosen flows set up, "The Energy dashboard has none of these flows set up yet."; with nothing in the period on a Sankey, "Nothing flowed in this period." Other styles refuse source: energy with a message listing the ones that take it, and energy_flows and energy_split need it.
In the editor: Chart section, Readings from → Energy dashboard (on the pie and Sankey, Readings from offers Current values or Energy dashboard), then Energy flows (none ticked: grid, solar and battery) and, on column and area, Export and battery charging below the axis. Choosing it sets hourly grouping on line, column and area, and today as the period on a pie or Sankey with none set; choosing another source removes energy_flows and energy_split.
Export menu
A chart can now be saved as a picture, or its numbers or YAML copied, from a menu on the card. Set export: true and a ⋮ button appears at the top right with Save as PNG, Save as SVG, Copy CSV and Copy YAML. Everything happens in the browser; nothing is sent anywhere. (#119)
export: true
Save as PNG saves the card at twice its size on screen; Save as SVG saves it as a vector picture. Both use the dashboard's own font when Home Assistant serves it, and otherwise fall back to a font of the same kind on the computer opening them. Fonts from another host are never fetched.
Copy CSV copies timestamp,entity,value,unit, a row per reading drawn: without gaps or the values carried to the edges, and only the series on show. Charts of current values, and the box plot and candlestick, list each entity's current value. Copy YAML copies the card's config.
Where the browser won't let the card use the clipboard (a dashboard served over plain http), the CSV or YAML is saved as a file instead, and the card says so.
The button sits in the title row when the card has a title; without one it gets a short row of its own above the chart, so the card is a little taller.
The menu works from the keyboard: the arrow keys move and Escape closes. It is for the chart styles; the bar and gauge styles ignore it.
In the editor: Display section, Export menu, shown for chart styles.
Badge
Chartdeck now has a badge for the badge row at the top of a Sections view: one entity as a value, a sparkline, a small ring or a thin bar. Edit a Sections view, choose Add badge and search for Chartdeck badge, or write type: custom:chartdeck-badge. It comes in the same file as the card, so there is nothing more to install. (#119)
type: custom:chartdeck-badgeentity: sensor.phone_batterystyle: ringname: Phoneseverity:
- from: 0color: red
- from: 20color: amber
- from: 40color: green
style is value (the default: the value and name beside the entity's icon in a tinted circle), sparkline (a small line of the last hours of history, above 0 and at most 168, default 24), ring (a small ring filled to the value's place between min and max) or thin (a short bar filled the same way).
It reads entity, attribute, name, show_name, show_icon, icon, min, max, unit, decimals, color, severity and the tap, hold and double-tap actions (more-info on tap by default). They mean what they mean on the card, because the badge runs them through the card's own code: limits and band starts can be entities, unit converts, and decimals follow the entity's display precision.
Its colour is the colour of the band the value is in when severity is set, else color, else the theme's primary colour. show_icon: false on the value look puts a small dot in that colour in place of the icon.
An unavailable or missing entity draws grey, with its status in place of the value.
The sparkline loads the entity's history once and adds new states as they arrive; it stops while the badge isn't on the page. The badge redraws only when its entity, or an entity a limit or band reads, changes. It has no draw-in animation. Badges need Home Assistant 2024.8 or later.
In the badge editor: Entity and Look (Value with icon, Sparkline, Ring, Thin bar) first, then Attribute (instead of the state), Name and, for the sparkline, Hours of history; Show name and Show icon; Icon; Unit and Decimals; Colour without bands; Minimum and Maximum (each with Default, Number and Entity, as in the card's Limits section); Colour bands; and Actions.
Changed
A limit, target or colour band start read from another entity is now converted from that entity's unit, even without unit set. This affects a card where such an entity reports in a different unit from the one the card shows, and the two are a known pair: a °C sensor whose max comes from an input_number in °F, or a W sensor whose target is a helper in kW. Before, the helper's number was used as it stood, so the limit sat in the wrong place (a 70 °F maximum read as 70 °C); now it lands where it should, and bars, gauges and colour bands move to match. The same goes for a line annotation, or a band annotation's ends, read from an entity on a line chart. Cards whose entities all share one unit, and numbers you typed, are unchanged. (#119)
unit now converts the number, not just its label, when the card knows both units. A card that set unit to another unit of the same family, for example unit: kW on a sensor that reports W, now shows the converted value with decimals to match, where it used to show the same number with the new label. If you used unit to correct a sensor that reports the wrong unit (one that says W but means kW), the card now converts it; set the right unit on the entity in Home Assistant instead, or leave unit off. (#119)
With legend_toggle: true, tapping a name in the header hides or shows its series instead of opening the more-info dialog. The option is off by default, so existing cards are unchanged, and the candlestick's own entity still opens more-info when it is on. (#119)
An entity's Unit field in the editor is now a drop-down of the units its sensor converts to, when its unit is one the card knows. Any other text can still be typed, and it is shown as written. (#119)
Upgrading
Update from the Marketplace (HACS before Home Assistant 2026.11), or download every .js file from the latest release and copy them to /config/www/.
After updating, hard-refresh your browser (Ctrl/Cmd+Shift+R) so the new card module loads instead of a cached one.
💬 Questions or issues with this release? Reply below or open an issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🚀 New Release: v2.2.0
Chartdeck 2.2.0 adds six chart styles (50 in all, up from 44), a Chartdeck badge for the badge row of a Sections view, and new options that work across the history charts and gauges. One change can move a number on a card you already have: a limit, target or colour band start read from another entity is now converted from that entity's own unit, so a °F helper on a °C card lands where it should instead of being read as °C (see Changed). The new charts are the marimekko, chord diagram, battery grid, spiral, strip plot and cycle plot. The line chart gains forecasts after now, anomaly marks, earlier spans drawn faintly behind the current one, thresholds that follow an entity's history and a live now line; the column chart gains error bars and the now line; the ring, arc and needle gauges can show their recent range. Any history series can become a running total or a rate of change, convert its unit, or show only while a condition holds; names in the header can hide and show their series; line, column, area, pie and Sankey charts can draw straight from the Energy dashboard; and charts get an export menu. Everything is settable in the visual editor and translated into all six languages. Statistics charts also stop blanking and redrawing when the dashboard re-lays out its cards.
Fixed
These were found while bringing the 21 features together and testing them on a real Home Assistant (2026.11) with real history, long-term statistics and Energy dashboard settings. The first two affected the published 2.1.0 and earlier versions; the rest were in the new features and never reached a release.
In 2.1.0 and earlier
source: statistics(or one that reads statistics by default, such as the range area, candlestick and heatmap calendar) went back to "Loading history…", reloaded the same span and replayed its draw-in, so columns could be caught at zero height. The same happened once every statistics period (every five minutes on a short span) while the card simply sat there. The chart now keeps drawing the rows it has while the same span reloads, and swaps in the new rows when they land. If that reload fails, it keeps what it had and tries again a period later instead of showing the error. A change of span, source or entities still loads from scratch. This had been the case since statistics came to the history charts in 1.3.0. (#119)place_by: time_of_daythe row stays empty, since a value held all period was not read at any time of day. The new strip plot behaves the same way from the start. (#119)In the new features, before release
hide_unavailable, and does nothing when tapped. (#119)Added
Marimekko
A card can now split a total two ways at once: by group, and by category within each group. Set
style: marimekko(or pick Marimekko under Parts of a total in the Style section). Each group is a column as wide as its share of the whole, split into its categories by their share of that column, so one chart answers both "which room used most" and "what did it use it on". It draws from the entities' current values, so no history is loaded. (#119)groupnames its column. Without one, the card'sgroup_byplaces it by floor, area, device or label from Home Assistant's registries, as on the treemap, with several levels joined by " / ". An entity with neither goes in Other.categorysets its colour, and without one its name is its category. Categories stack bottom up in the order they are first listed, in the same order in every column, so a colour sits at the same place across the chart however the values move. A category takes the first owncoloramong its entities, else the next series colour.segment_labelsprintspercent(the share of its column, the default),value,bothornoneinside each part. Text goes only where it fits: a part under 18 px tall, or too narrow, stays blank, andbothfalls back to the share.show.value: falseandshow.name: falsehide them. A legend of the categories sits under the chart when there are two or more.sortorders the columns by their total.Chord
A card can now draw flows between a few places round a circle, including flows both ways between the same two. Set
style: chord(or pick Chord (flows round a circle) under Parts of a total). Each place is an arc as long as everything flowing in and out of it, and each flow is a ribbon joining its two places, as wide as the flow at both ends. Unlike the Sankey it allows flows in both directions and round in a loop, so the grid charging the battery and the battery exporting to the grid fit on one chart. It reads the same per-entityfromandtoas the Sankey, so a card can switch between the two and keep its flows. It draws current values; no history is loaded. (#119)color.sortorders the places by their total instead.padis the gap between places in degrees, 0 to 20 (default 3); the gaps never take more than half the circle.ribbon_opacityis above 0 and up to 1 (default 0.35, or 0.45 in a dark theme).fromand atoare left out, andfromandtomust be different places.Battery grid
Every battery in the house can now sit on one card, emptiest first. Set
style: battery(or pick Battery grid under Bars). Each entity is a battery outline filled from the left to its level, with the value and name under it: red below 20 %, amber below 40 %, green from 40 %, so the ones to change stand out. With anincluderule, new devices appear by themselves. (#119)mintomax(0 to 100 by default). Setseverity, on the card or one entity, and its bands replace the red, amber and green.sortkeeps the listed order, as every other style does. Unavailable batteries go to the end of a sorted grid.columnscaps how many sit across, and a tile never gets narrower than 76 px, so a narrow card uses fewer.show.value: falseandshow.name: falsehide the text under each battery.show.value: false.animate: falseor when the browser asks for reduced motion.Spiral
A card can now wind a week of history into a spiral, one turn a day, so a daily habit lines up. Set
style: spiral(or pick Spiral under History charts). Midnight is at the top of every turn, the oldest day in the middle and today on the outside, and each hour is a stretch of the ring shaded by its value. The evening peak or the morning shower falls along one direction, and a day that broke the pattern stands out. (#119)turnisday(the default) orweek.turnssets the span: 1 to 31 days (default 7) or 1 to 13 weeks (default 4). The period'slast,unit,calendaranduntilaren't used;period.offsetandperiod.navigateare, as aresourceandaggregate(changefor a meter).color_minandcolor_max(the first must be below the second).color_by: bandsuses the entity's colour bands instead, and the legend lists them.ring_widthis how much of the space between turns each ring fills, 20 to 100 % (default 80).legend: falsehides it. Hovering a stretch shows its day, hour and value; tapping the spiral or the name runs the entity's tap action. The spiral fades in, without motion when the browser asks for less.Strip plot
A card can now draw every reading as a dot, one row per entity, so you can see how the readings spread. Set
style: strip_plot(or pick Strip plot under Distributions). Dots are scattered across their row so busy spells show as a thick band, with a line at the median. It shows the spread without the smoothing of a violin, and handles far more readings than a beeswarm. (#119)jitteris how much of the row the dots spread over, 0 to 100 % (default 70; 0 puts every dot on the centre line), anddot_sizeis 2 to 16 px (default 5). Dots are a little see-through so overlaps read darker.marker: median(the default) draws the line at the median and writes "Median 21.4 °C" under the name;meandraws it at the plain average ("Average …");nonedraws no line and writes the number of readings. Both are of the readings as taken, not weighted by time, so the line sits among the dots it sums up.periodset it covers the last 24 hours.orientation: vertical,value_axis,value_grid,value_min,value_max,compactandtooltipwork as on the beeswarm and violin.Cycle plot
A card can now put the average day for each weekday side by side, so a weekly pattern stands out. Set
style: cycle_plot(or pick Cycle plot under History charts). With the default cycle there is a small panel per weekday, each the hour-by-hour average for that day over the last few weeks, with its own average dashed across it: Monday mornings running higher than the rest of the week show up as one panel standing out. (#119)cycle: day_of_week(the default) draws one panel per weekday, from your first weekday, each that weekday's average for every hour.hour_of_daydraws 24 panels, wrapping onto rows, each one hour on every day of the span in turn.day_of_monthdraws 31 panels, each that day in every month of the span in turn.weeksis the span for every cycle, a whole number: default 8 and at most 26 for weekdays, default 2 and at most 13 for hours, default 26 and at most 104 for days of the month. Days of the month read a day at a time from long-term statistics by default, since history rarely reaches back months; the other two read an hour at a time from history.aggregatecombines each hour (or day),meanby default;changesuits a meter. The period'slast,unit,calendaranduntilaren't used;period.offsetandperiod.navigateare.Forecast
A line chart can now draw a forecast dashed after now, from a weather entity or a forecast integration such as Solcast. Give a series a
forecastwith the entity that holds it. The chart draws it in the series' colour from now on and, when the span ends now, stretches the time axis past now to show it. (#119)attributereads Home Assistant's weather forecast (type:hourly, the default,dailyortwice_daily) with the temperature as the value. Any other entity reads the namedattribute, orforecastwhen none is named: a list of objects, a list of[time, value]pairs, or a map of time to value (as Forecast.Solar'swatts), with times as ISO text or epoch seconds or milliseconds.value_keyandtime_keyare guessed when left out (value,pv_estimate,watts,price,total,temperature,native_temperature;datetime,period_start,start,starts_at,startsAt,time,from,date).multiply(default 1) scales every value, for a kW forecast on a W sensor.forecast_hours(above 0, default 24), when the span ends now. A span drawn to its end (until: end) already reaches past now and isn't stretched; a span wholly in the past shows no forecast.entityyet (half filled in the editor) is ignored.Anomalies
A line chart can now mark readings that are far from what is normal around them. Set
anomalies: true. Each reading is compared with the readings in a window centred on it; one more thananomalies_sigmaspreads from their typical value gets a dot, and the normal range is shaded faintly behind the line. (#119)anomalies_windowisauto(the default, a twelfth of the span) or a time:30min,2h,1d,1w, or a bare number of minutes.anomalies_sigmais any number above 0 (default 3).anomalies_colorsets the dots (default red), andanomalies_band: falseleaves out the shaded normal range.zoomit judges the readings on show; with the log scale, those above zero. Small multiples don't draw it.Earlier spans
A line chart can now draw yesterday, last week or last year faintly behind the current span. Set
compareto one offset or a list of up to four. Each earlier span is moved forward so the same time of day sits together, so yesterday's evening peak sits over this evening.period.offsetand the previous and next buttons show an earlier span instead of the current one;compareputs it behind. (#119)h,d,w,moory(12h,1d,7d,3mo,1y). Hours are by the clock; days and longer are by the calendar, keeping the time of day, so a comparison across a clock change still lines up.compare_style: seriesuses a faded series colour instead.show.name: falsehides it. The hover readout lists each earlier value ("Yesterday 36.0 W", or "Power, Yesterday" with several series).Stepped thresholds
A threshold line can now follow an entity's history as steps, such as a tariff that changes every half hour, and shade each step by its value. On a
lineannotation whosevalueis an entity, sethistory: true. Instead of sitting flat at today's state, the line follows the entity over the chart's span, each state held until the next. (#119)zone: aboveorbelowshades that side of the stepped line in the annotation's colour (no shading by default).severityon the annotation shades each step in the colour of the band its value falls in, so a day of half-hour prices reads green, amber and red. The bands are in the threshold entity's own units (p/kWh above), which is why they go on the annotation; the card's own bands are not used for the zone.source: statistics, reads long-term statistics, and an entity without statistics (nostate_class) falls back to history. While it loads, or if it can't be read, the line sits flat at the current state.history,zoneandseverityare forlineannotations only, and a mistake names the entry, such as"annotations[0].severity" must be a list of bands.Now line
Line and column charts can now mark the present moment with a line that moves every minute, and count down to the next set time. Set
now_markertoline,timeorcountdown. It shows when the span runs past now: today, this week or this month withuntil: end, or a grouped column chart whose last column is still running. (#119)off(the default) draws nothing,linethe line alone,timethe line and the current time.countdownadds the time to the next mark of anytimeannotation: "Night rate in 2 h 15 m", or "Next in 25 m" when that annotation has no label; with nothing due in the next two days it shows the time. Daily marks ("07:00") and one-off dates both count, in Home Assistant's time zone.timeannotations in the card's config, though the column chart doesn't draw them.Legend toggles
Tapping a name above a chart can now hide or show its series. Set
legend_toggle: trueand the row of names and values becomes a row of switches. Tap a name to hide or show that series; hold it (half a second) or Shift-click it to show only that one, and do it again to show them all. (#119)header: hidden, withmultiples: true, or with both names and values hidden.Error bars
A grouped column chart can now show how the readings inside each column were spread, so a real difference stands out from noise. Set
error_barstostd,min_maxorci95with readings grouped. A whisker over each column shows the spread, so a day that swung from 16 to 24 °C looks different from one that held at 20. (#119)noneis the default.stdruns from the average less one standard deviation to the average plus one;min_maxfrom the lowest value in the group to the highest;ci95is the 95 % confidence interval of the average, 1.96 standard deviations divided by the square root of the number of readings either side.min_maxuses each row's own lowest and highest. Astdorci95whisker never reaches past the group's lowest or highest reading, so a positive column's whisker never pushes the axis below zero.ci95comes out narrower than a strict confidence interval: use it to compare columns with each other.range: true.stdandci95needaggregate: mean;min_maxworks withmean,min,max,firstandlast. A meter combined withsumorchangegets none, since the spread of a meter's readings says nothing. In those cases the chart draws without whiskers rather than refusing the config.Gauge history
Ring, arc and needle gauges can now show where the value has been lately: a faint band from the lowest to the highest reading of the last day or week, with a tick at the average. Set
ghost: 24horghost: 7d. A reading at the top of its usual range, or one that has barely moved, shows at a glance. (#119)offis the default.24hreads the last 24 hours of history;7dreads hourly long-term statistics, and falls back to history for a sensor without statistics (nostate_class). Anattributealways reads history.ghostis the card's option, so every gauge on the card gets it, including entities added by anincluderule.Running totals
Any history series can now be drawn as a running total, without a utility meter or an integration helper. Set
transform: cumulativeon an entity. A meter adds up how much it rose, resets handled; a power sensor is integrated into energy, so W becomes Wh and kW becomes kWh. The total can start again every day, week, month or on a billing day. (#119)transform_resetisnone(the default: from the left edge),day,week,monthorbilling;transform_reset_dayis the billing day, a whole number from 1 to 28 (default 1), so every month has one. Resets follow the calendar in Home Assistant's time zone, andbillingon day 1 is the same asmonth.total_increasingadds up its rises, with its resets handled. Atotalmeter adds every change, so it can fall. Anything else is added up over time, each reading times how long it held until the next; withunitset to an energy unit, a power sensor's total is scaled to it, and other units read with "·h" (L/min becomes L/min·h).transformdoes nothing. A unit conversion and awhencondition are applied first, so the total is of the converted, kept readings.aggregateis set. The climate chart and the wind rose ignore it, and their editors don't offer it.Rate of change
Any history series can now be drawn as its rate of change, so a kWh meter becomes kW and a temperature becomes °C per hour. Set
transform: derivativeon an entity. The rate at each reading is the change from the reading before, divided by the time between them, drawn at the later reading. (#119)transform_unit_timeiss,min,h(the default) ord. Energy per hour reads as power (kWh per hour as kW, Wh as W, MWh as MW); anything else as its unit per time (°C/h, L/min).total_increasing) a fall is a reset: that step is dropped and measuring starts again from the new reading. A meter that hasn't moved draws 0. Other sensors can have a negative rate.transform_smoothingaverages each rate with the ones before it, a whole number from 1 to 100 (default 1, off).transform_smoothing_timeaverages over a time window instead, weighted by time, up to 7 days (90s,15min,1.5h,1d): on a meter,15minis "how much it rose in the last 15 minutes, per hour". When both are set, the time window is used.group_by: hourgives the mean kW of each hour. It works on the same charts as running totals.Unit conversion
An entity's
unitnow converts its readings when the card knows both units: W to kW, °F to °C, m/s to mph. When the sensor's own unit and theunityou set are in the same family, the value, its history and statistics, its limits, targets and band starts read from other entities, threshold lines and forecasts all follow, and the decimals move with the scale. Before,unitonly changed the text after the number. (#119)min,max,target, a band'sfrom) are in the shown unit and never converted:max: 5above is 5 kW. A limit, target, band start or line annotation read from an entity is converted from that entity's own unit (theinput_numberabove can be in km/h).attribute, which has no unit. The exception is a thermostat on the climate chart, whose temperatures convert from Home Assistant's unit system withunit: °F,°CorK.decimals, the entity's display precision moves with the scale (W at 0 decimals shows kW at 3; m/s at 1 shows km/h at 0), between 0 and 6.calmin it) and the climate chart. A transform works on the converted readings.Conditional series
A history series can now show only while something else holds: a room's power only while someone is home, a flow temperature only while the heat pump runs. Give an entity (or the whole card) a
whenwith an entity and a state, or a value it must be above or below. Readings outside are gaps, as if the sensor had been unavailable. (#119)statetakes a state, a list, or text with commas between (home, work);aboveandbelowtake numbers. Every key that is set must hold, soabove: 18withbelow: 22is "between 18 and 22". Awhenwith only anentityis ignored. An entity's ownwhenwins over the card's, and entities matched by anincluderule take the card's.source: statisticsa row is kept when the condition held at the row's start.when_ghost: truedraws the hidden readings as a thin faint line behind (on an unstacked area only), andwhen_strip: trueadds a strip under the plot with a row per condition, filled where it held, labelled like "Heat pump power > 50". Both are off by default and not drawn in small multiples.whenand ignores it.Energy dashboard
Line, column, area, pie and Sankey charts can now draw what the Energy dashboard is set up with, without listing a single entity. Set
source: energy. The card reads the Energy dashboard's settings, finds the statistic for each flow, and draws grid import and export, solar, battery, gas, water and individual devices from long-term statistics, in Home Assistant's own energy colours. (#119)energy_flowspicks fromgrid_import,grid_export,solar,battery_out,battery_in,gas,wateranddevices(each device in the Energy dashboard as its own series). Left out, line, column and area draw grid import and export, solar, and battery out and in; a pie draws where the energy came from (grid import, solar, battery out); a Sankey draws every electricity flow and the devices.energy_split: falsestacks everything upward.period, with no previous and next buttons. The Sankey runs grid import, solar and battery out into Home and on to grid export, battery charging and each device, with what the devices don't account for as Untracked use (or Used at home with no devices). A Sankey refuses gas and water, which don't run through the house's electricity.entitiesyou list are drawn after the energy flows.source: energywith a message listing the ones that take it, andenergy_flowsandenergy_splitneed it.energy_flowsandenergy_split.Export menu
A chart can now be saved as a picture, or its numbers or YAML copied, from a menu on the card. Set
export: trueand a ⋮ button appears at the top right with Save as PNG, Save as SVG, Copy CSV and Copy YAML. Everything happens in the browser; nothing is sent anywhere. (#119)timestamp,entity,value,unit, a row per reading drawn: without gaps or the values carried to the edges, and only the series on show. Charts of current values, and the box plot and candlestick, list each entity's current value. Copy YAML copies the card's config.Badge
Chartdeck now has a badge for the badge row at the top of a Sections view: one entity as a value, a sparkline, a small ring or a thin bar. Edit a Sections view, choose Add badge and search for Chartdeck badge, or write
type: custom:chartdeck-badge. It comes in the same file as the card, so there is nothing more to install. (#119)styleisvalue(the default: the value and name beside the entity's icon in a tinted circle),sparkline(a small line of the lasthoursof history, above 0 and at most 168, default 24),ring(a small ring filled to the value's place betweenminandmax) orthin(a short bar filled the same way).entity,attribute,name,show_name,show_icon,icon,min,max,unit,decimals,color,severityand the tap, hold and double-tap actions (more-info on tap by default). They mean what they mean on the card, because the badge runs them through the card's own code: limits and band starts can be entities,unitconverts, and decimals follow the entity's display precision.severityis set, elsecolor, else the theme's primary colour.show_icon: falseon the value look puts a small dot in that colour in place of the icon.Changed
unitset. This affects a card where such an entity reports in a different unit from the one the card shows, and the two are a known pair: a °C sensor whosemaxcomes from aninput_numberin °F, or a W sensor whosetargetis a helper in kW. Before, the helper's number was used as it stood, so the limit sat in the wrong place (a 70 °F maximum read as 70 °C); now it lands where it should, and bars, gauges and colour bands move to match. The same goes for a line annotation, or a band annotation's ends, read from an entity on a line chart. Cards whose entities all share one unit, and numbers you typed, are unchanged. (#119)unitnow converts the number, not just its label, when the card knows both units. A card that setunitto another unit of the same family, for exampleunit: kWon a sensor that reports W, now shows the converted value with decimals to match, where it used to show the same number with the new label. If you usedunitto correct a sensor that reports the wrong unit (one that says W but means kW), the card now converts it; set the right unit on the entity in Home Assistant instead, or leaveunitoff. (#119)legend_toggle: true, tapping a name in the header hides or shows its series instead of opening the more-info dialog. The option is off by default, so existing cards are unchanged, and the candlestick's own entity still opens more-info when it is on. (#119)Upgrading
Update from the Marketplace (HACS before Home Assistant 2026.11), or download every
.jsfile from the latest release and copy them to/config/www/.After updating, hard-refresh your browser (Ctrl/Cmd+Shift+R) so the new card module loads instead of a cached one.
💬 Questions or issues with this release? Reply below or open an issue.
All reactions