Repository navigation
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
- 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_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
- 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-card style: marimekko title: Energy by room and use unit: kWh entities: - entity: sensor.kitchen_heating_energy group: Kitchen category: Heating - entity: sensor.kitchen_lighting_energy group: Kitchen category: Lighting - entity: sensor.living_room_heating_energy group: Living room category: Heating - entity: sensor.living_room_lighting_energy group: Living room category: Lighting
- An entity's
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. - An entity's
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.- Each column's total sits above it when every entity shares a unit, and the group's name below;
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. - 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.
- An entity's
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)type: custom:chartdeck-card style: chord title: Energy today unit: kWh pad: 3 entities: - entity: sensor.solar_to_house_energy from: Solar to: House - entity: sensor.grid_to_battery_energy from: Grid to: Battery - entity: sensor.battery_to_grid_energy from: Battery to: Grid - entity: sensor.battery_to_house_energy from: Battery to: 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.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).- 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
fromand atoare left out, andfromandtomust 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.
- 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
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)type: custom:chartdeck-card style: battery title: Batteries sort: ascending include: device_class: battery
- It has no options of its own. The fill runs from
mintomax(0 to 100 by default). Setseverity, 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
sortkeeps 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;
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. - 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: falseor 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.
- It has no options of its own. The fill runs from
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)type: custom:chartdeck-card style: spiral title: Bathroom humidity turn: day turns: 14 entities: - entity: sensor.bathroom_humidity name: Bathroom
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).- 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_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). - 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: 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. - 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)type: custom:chartdeck-card style: strip_plot title: Room temperatures marker: median entities: - entity: sensor.living_room_temperature name: Living room - entity: sensor.kitchen_temperature name: Kitchen - entity: sensor.bedroom_temperature name: Bedroom
- 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.
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.- At most 2000 dots per row; more are sampled evenly, and the row still says how many readings there were. With no
periodset it covers the last 24 hours.orientation: vertical,value_axis,value_grid,value_min,value_max,compactandtooltipwork 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-card style: cycle_plot title: House power by weekday cycle: day_of_week weeks: 4 entities: - entity: sensor.house_power name: 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_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.- 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
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)type: custom:chartdeck-card style: line forecast_hours: 24 entities: - entity: sensor.outside_temperature forecast: entity: weather.home type: hourly - entity: sensor.solar_power forecast: entity: sensor.solcast_pv_forecast_forecast_today attribute: detailedForecast value_key: pv_estimate multiply: 1000
- A weather entity with no
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.- 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
entityyet (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.
- A weather entity with no
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: true anomalies_window: 2h anomalies_sigma: 3 anomalies_color: red anomalies_band: true
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.- 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
zoomit 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
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)period: calendar: day until: end compare: [1d, 7d] compare_style: grey
- An offset is a whole number and a unit:
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. - The first offset is drawn solid, the next dashed, then dotted, then dash-dot, in grey;
compare_style: seriesuses 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: falsehides 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.
- An offset is a whole number and a unit:
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)annotations: - type: line value: sensor.electricity_rate history: true zone: below label: Rate p/kWh color: grey severity: - from: 0 color: green - from: 20 color: amber - from: 30 color: red
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.- 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 (nostate_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,zoneandseverityare forlineannotations 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_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)period: calendar: day until: end now_marker: countdown annotations: - type: time times: "06:30, 21:00" label: Night rate
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.- 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
timeannotations 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: 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)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, withmultiples: 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_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)type: custom:chartdeck-card style: column title: Living room per day group_by: day error_bars: std period: last: 7 unit: day entities: - sensor.living_room_temperature
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.- The spread is weighted by how long each value held, as the column's average is. From statistics,
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. - Readings next to each other are not independent, so
ci95comes 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.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. - 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: 24horghost: 7d. A reading at the top of its usual range, or one that has barely moved, shows at a glance. (#119)type: custom:chartdeck-card style: needle ghost: 24h entities: - sensor.living_room_humidity
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.- 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,
ghostis the card's option, so every gauge on the card gets it, including entities added by anincluderule. - 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: 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)entities: - entity: sensor.grid_import_meter transform: cumulative transform_reset: billing transform_reset_day: 15 - entity: sensor.house_power transform: cumulative transform_reset: day unit: kWh
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.- A meter with state class
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). - 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
transformdoes nothing. A unit conversion and awhencondition 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
aggregateis 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: 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)entities: - entity: sensor.heat_pump_energy transform: derivative transform_unit_time: h transform_smoothing_time: 15min
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).- 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_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.- 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: hourgives 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
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)type: custom:chartdeck-card style: bar entities: - entity: sensor.grid_power unit: kW max: 5 - entity: sensor.outside_temperature_f unit: °C - entity: sensor.wind_speed unit: mph max: input_number.gale_speed
- 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'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). - 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 withunit: °F,°CorK. - 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
calmin 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
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)when: entity: person.sam state: home when_ghost: true when_strip: true entities: - sensor.living_room_power - entity: sensor.flow_temperature when: entity: sensor.heat_pump_power above: 50
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.- An unavailable or unknown condition entity counts as not met, and before its first recorded state nothing is shown. With
source: statisticsa 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: 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. - 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
whenand 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-card style: column title: Energy, last 24 hours source: energy period: last: 24 unit: hour group_by: hour stack: normal
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.- 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: falsestacks 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
entitiesyou 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: energywith a message listing the ones that take it, andenergy_flowsandenergy_splitneed 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_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)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-badge entity: sensor.phone_battery style: ring name: Phone severity: - from: 0 color: red - from: 20 color: amber - from: 40 color: green
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).- It reads
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. - Its colour is the colour of the band the value is in when
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. - 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
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)- 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
Most cards need nothing. Check two kinds of card after updating: one whose min, max, target or colour band starts from an entity reporting in a different unit from the card (it now converts, see Changed), and one that uses unit to relabel a sensor whose own unit is wrong (it now converts too).
Update from the Marketplace (HACS before Home Assistant 2026.11), then hard-refresh the browser (Ctrl/Cmd + Shift + R) so the new card loads instead of a cached one. The console (F12) shows CHARTDECK 2.2.0 once it has. The badge is in the same file, so it is there as soon as the card is.
If you installed by hand, copy every .js file from this release into <config>/www/ side by side and keep the resource pointed at /local/chartdeck-card.js. The language files' names change from release to release, so the old ones can be deleted.
New in the wiki:
- Chart pages: Marimekko, Chord, Battery grid, Spiral, Strip plot, Cycle plot, and the Chartdeck badge
- Line chart sections: forecast, anomalies, earlier spans behind the chart, thresholds that follow an entity's history, now line, showing a series only while something holds, hiding a series from the names row
- Column chart sections: error bars, now line, Energy dashboard
- Gauge sections: recent range behind the gauge on the ring, also on the needle and arc
- Energy dashboard on the area, pie and Sankey
- Transforms, conditions and units on the box plot, candlestick, 24-hour clock, wind rose and climate chart
- Options sections: unit conversion,
transform(running total, rate of change, where transforms apply),when,legend_toggle,export,source: energy - Every style on Styles and in the
styleoption
Full changelog: v2.1.0...v2.2.0






















