Repository navigation
Chartdeck 2.4.0 adds two chart styles (52 in all, up from 50), a Chartdeck chart for Home Assistant's tile card, and new options for the history charts: what energy cost, pacing against a goal, series worked out from a formula, rolling averages, text states drawn as numbers, the usual range for the time of day, calendar events, a fit line on the scatter chart, a table view and a link to the History panel. One thing changes on cards you already have: line, area and column charts can now be read from the keyboard and describe themselves to screen readers, both on by default, so each of those charts is now one Tab stop and is announced with a short summary of its readings (see Changed). Nothing you see changes, and nothing about your existing cards needs changing: every new option is off until you set it, and no option was removed or renamed. The new charts are the duration curve and time in each state. Everything is in the visual editor and translated into all 20 languages.
Fixed
No bug in 2.3.0 needed a fix in this release. The fixes below were found while the new features were put together and tested on a real Home Assistant (2026.11); they were in the new features and never reached a published version.
- Cost reads prices in pence and cents at the right scale. The first version took a price entity's number as it stood, so a tariff sensor reporting 30 p/kWh was read as 30 pounds a kWh, 100 times too much. A price entity's unit now sets its scale:
p/kWh,GBp/kWh,ct/kWh,c/kWh,¢/kWhandöre/kWhare read as hundredths of the currency, and a price per MWh as a thousandth per kWh (see Cost). (#127) - Cost works on a power sensor read from long-term statistics. The first version priced each hour's change, which a meter has and a power sensor in W or kW doesn't, so a grouped column chart of a power sensor's cost with
source: statisticsdrew nothing. A power sensor is now priced from each hour's mean, times the hour. (#127) - A goal or usual range combined with something it can't share now says so. The first versions quietly did something else. A goal paces its first entity's running total, so any other transform on that entity was dropped unseen; it now gives the error
"goal" paces the first entity's running total, so that entity can't also have "transform: rolling". The usual range is worked out from an entity's own readings, so it can't be drawn against a running total, a rate, a rolling statistic, a cost or a goal, and the first version didn't say so; each case now has its own error, such as"normal_range" can't be used with "cost": the usual range is in the entity's own unit, not money. (#127)
Five of the card's tests depended on the time of day they ran at and now run on a fixed clock; this changes nothing in the card.
Added
Duration curve
-
A card can now show how long a sensor spent at or above each value. Set
style: duration_curve(or pick Duration curve under Distributions in the Style section). The readings are sorted from highest to lowest, each as wide as the time it held, so the bottom of the chart runs from 0 to 100 % of the time and the curve's height at 14 % is the value the sensor was at or above for 14 % of it. It suits solar output over a season, the house's power draw or a heat pump's flow temperature: how often a value is reached, rather than when. (#127)type: custom:chartdeck-card style: duration_curve title: Solar, last 90 days period: last: 90 unit: day markers: [2, 5] skip_zero: true entities: - sensor.solar_power
- Each reading counts for as long as it held, until the next one; the last one holds until now, or the end of the span. Gaps count for nothing. From long-term statistics or grouped readings, each row or group counts for its length. With no
period, the chart covers the last 24 hours, as the line chart does. markerslabels values (a number, a list, or text like"2, 5"; none by default). Each gets a dashed guide across to where the curve crosses it, a line down, a dot and a sentence: "Above 2 kW for 14% of the time". "Above" means strictly above, so a marker above every reading reads 0 % and one below every reading 100 %. A marker keeps the decimals you typed; in text, commas and spaces both separate values, so write decimals with a dot.- With one curve the sentence sits beside its dot. With several curves, with
header: over, or for a marker outside the value axis, the sentences go in a list under the chart, each after its curve's name when there are several. Screen readers hear them too. skip_zero: true(defaultfalse) leaves readings of exactly 0 out of the time, so a solar panel's nights don't fill half the chart and the shares are of the time it produced.- Each entity is its own curve, a stepped line with a light fill, in its series colour or its own
color. The value axis starts at 0 unless a reading is negative. Hovering picks a whole percent and shows each curve's value there, under "At or above this for 14% of the time". - An entity with no readings, or one that doesn't exist, has no curve while the others still draw; with nothing at all the chart says "No readings in this period." The per-entity
transform,when,formulaandstate_mapwork as on the line chart, as do the period, previous and next buttons, source, grouping and axes. - In the editor: Chart section, with Values to mark (e.g. 2, 5), Leave out time at zero and Labels along the bottom. Each entity has a Line colour.
- Each reading counts for as long as it held, until the next one; the last one holds until now, or the end of the span. Gaps count for nothing. From long-term statistics or grouped readings, each row or group counts for its length. With no
Time in each state
-
A card can now show how long each entity spent in each state, per hour, day, week or month, as stacked columns. Set
style: state_duration(or pick Time in each state under History charts). Hours of heating a day, how long the dishwasher ran, which days someone was away: anything whose states are words, read from the recorder's history the way the state timeline reads them. (#127)type: custom:chartdeck-card style: state_duration title: Heating per day group_by: day states: [heating, idle] labels: true state_colors: idle: green entities: - entity: climate.hall attribute: hvac_action
group_byisauto(the default),hour,day,weekormonth. Automatic picks a size for the span as the column chart does: hours up to two days, days up to two months, then weeks, then months. With noperiodthe chart covers the last 7 days.stack: normal(the default) shows hours, or minutes when grouped by hour; the axis runs to 24 hours a day, or 25 on the day the clocks go back.stack: percentscales each column to 100 % of the time that was recorded, so today, still running, reaches the top too.statesshows only those states, in that order from the bottom; others are left out. Without it every state shows, the busiest active one at the bottom and quiet ones (off, idle, away and the like) on top in fading greys.labels: true(defaultfalse) prints the time on each slice with room for it.state_colorssets a colour for any state, as on the state timeline.- Several entities each get their own column in every group. Per entity,
attributereads an attribute such as a thermostat'shvac_action, andwhenleaves out the time its condition didn't hold. - Unavailable and unknown are gaps, not slices, and today counts up to now. A sensor whose states are numbers says "Readings, not states: a line chart suits this one"; with nothing recorded the chart says "No states recorded in this period." Long-term statistics don't keep states, so
sourcemust behistory. - Hovering a column shows each entity's time in each state for that group; tapping it opens the entity's more-info dialog.
- In the editor: Chart section, with Group readings by (Automatic first), Stack (On top of each other or To 100 %), States to show, bottom first (empty: every state), Show values on the columns and a State colours list.
Cost
-
Line, area and column charts can now show what energy cost instead of how much was used. Add
costwith a price: a fixed number, a price entity whose history prices each reading at what it said at the time, or time-of-use tariff periods. The column chart shows each group's cost, which can be split by tariff band; the line and area charts show the running total. Money reads in your currency throughout: "£4.82", "4,82 €". (#127)type: custom:chartdeck-card style: column title: Electricity cost group_by: day entities: - sensor.grid_import_energy cost: price: 0.24 tariff: - { from: "00:30", to: "05:30", price: 0.09, name: Off-peak, color: green } - { from: "16:00", to: "19:00", price: 0.32, name: Peak, color: red } currency: GBP split: true
priceis a number per kWh, or an entity. A price entity's unit sets its scale: pence and cents (p/kWh,GBp/kWh,ct/kWh,c/kWh,¢/kWh,öre/kWh) are hundredths and a price per MWh a thousandth per kWh. Before its first known price the first one is used, while it is unavailable the last one holds, and before the recorder's history begins (10 days by default) the first known price is used. Negative prices lower the cost.tariffperiods run fromfromtotoevery day in Home Assistant's time zone, past midnight whentois earlier, and follow clock changes. Where two overlap the first listed wins; times outside every period takeprice.split: true(defaultfalse, column chart only, on a chart that isn't stacked) stacks each column by band, with a key under the names; a period without anameis named by its price, and time outside every period is "Standard".currencyis a three-letter code; without it the cost is in Home Assistant's own currency. Money uses the currency's usual decimals (2, or 0 for yen) unlessdecimalsis set. The value axis numbers stay plain; the names row and hover readout read in money.- A meter (state class
total_increasingortotal, or any energy unit) is priced by how much it rose, at the average price between readings; a Wh or MWh meter is converted to kWh, and a gas meter is priced per its own unit. A power sensor in W, kW or MW is added up over time. From long-term statistics each hour is priced at that hour's average price, a power sensor by its hourly mean. - Per entity,
cost: falseleaves a series out of the cost and draws it as usual, andcost: { price: sensor.export_rate }gives it its own keys. Withsource: energy,cost: trueuses each flow's price from the Energy dashboard settings. With no price and no tariff the chart says "Set a price or a tariff to show the cost". An entity can't have bothcostand atransform, and other styles refusecost. - In the editor: a Cost heading under the Chart section's folds, with Show the cost, Price entity, Price per unit, Currency, Stack each column by tariff band (column chart, once there is a period), then Tariff periods, each with From, To, Price, Name and Colour, and Add a tariff period. While a cost is set each entity's options have Count its cost and Its own price entity.
Goal
-
A line chart can now pace a total against a goal for the day, week, month or year. Add
goalwith atarget. The chart spans the whole calendar period and draws the first entity as its running total from the period's start, with the ideal pace behind it, the target line, and a projection to where the total will end. A pill in the names row says how that compares: "On pace for 342 kWh · 14% over". Energy used this month against a budget, or solar against a target. (#127)type: custom:chartdeck-card style: line title: November import entities: - sensor.grid_import_energy goal: target: 300 period: month direction: below project: linear
targetis a number or an entity whose state is the target, such as aninput_number.periodisday,week,month(the default) oryear.direction: below(the default) means good is staying under the target, as for energy used;abovemeans good is reaching it, as for solar. The projection and the pill are green on the right side of the target and red on the wrong one.project: linear(the default) projects at the pace since the start of the period;recentat the pace of the last stretch: 3 hours of a day, 2 days of a week, 7 days of a month or 30 days of a year, or what has passed when less has.- A meter is totalled by how much it rose, with its resets handled; a power sensor is added up over time. The first entity can carry
transform: cumulativewith its own reset; any other transform on it is refused, as is the usual range on the same card. - The previous and next buttons and
period.offsetstill work: a finished period says "Ended at 287 kWh · 4% under" and has no projection. The value axis starts at 0 unlessy_minis set, and reaches the target and the projected end. - When the target entity is unavailable, or no target is set, there is no target line and no pill; the total and the projection still draw. With nothing read yet there is no projection. Only the first entity is paced; others draw as usual on the same axis. Grouping is ignored while a goal is set, and small multiples don't draw it.
- In the editor: a Goal heading under the Chart section's folds, with Pace against a goal, Target, Target entity, Period, Good when (Staying under the target or Reaching the target) and Projection (Pace since the start or Recent pace).
Formula series
-
A series can now be worked out from other entities with a formula. Give an entity
formulaandvars, naming the entity each letter reads: the difference between inside and outside, two circuits added up, a power times a price. It works on every style that reads a value, from bars and gauges to the history charts, and its history is joined from each entity's own. (#127)type: custom:chartdeck-card style: line title: Indoor and outdoor entities: - sensor.lounge_temperature - sensor.outside_temperature - formula: "a - b" vars: a: sensor.lounge_temperature b: sensor.outside_temperature name: Inside less outside
- A formula can use numbers, the names in
vars,+ - * / ^, brackets, a minus in front, andmin(…),max(…),abs(…)andround(x)orround(x, places). Nothing else runs: no templates, no code. It is at most 500 characters with at most 10 names, and a mistake is reported on the card, such asFormula uses "c": add it to "vars" with the entity it reads. - Names read the entity's state;
onandoffread as 1 and 0, sopower * switchworks. When any name has no number (unavailable, unknown), on a division by zero, or when the result isn't a number, the formula has no value: a gap on a chart, "Unavailable" on a bar. entityis optional. Without it the row opens the first name's entity and takes its icon, and is named by the formula until you give it aname.- The unit is
unitwhen set, else the unit every name shares (two temperatures in °C give °C), else none, as for a power times a price; decimals follow the same way, else 2. When every name is a meter, the formula is one too, soimport - exporton a column chart shows the net change per day. - History joins each name's history in time, each holding its value until it changes, and starts once every name has a reading. Long-term statistics are joined hour by hour: exact for adding and taking away, close for a product. A
transformapplies on top. The state timeline, the 24-hour clock's state rings, the climate chart and the wind rose read words or their own attributes, so they ignore it. - In the editor: each entity's options have Calculate from other entities, with Formula and an entity picker for each name it uses (Entity for a). A name you take out of the formula drops its entity, and while the formula can't be read a warning under it says why.
- A formula can use numbers, the names in
Rolling window
-
A series can now be drawn as its mean, median, lowest or highest over a trailing window. Set
transform: rollingand atransform_windowon an entity, so a CO₂ sensor that jumps about reads as a calm trend, or a 24-hour rolling highest carries the day's peak along. On the line chart the readings can stay faint behind it. (#127)type: custom:chartdeck-card style: line title: Office CO2 entities: - entity: sensor.office_co2 transform: rolling transform_window: 2h transform_stat: mean transform_raw: true
transform_windowis needed: a number thens,min,hord(30min,2h,1d), up to 7 days. The window trails, so the value at 14:00 with2hcovers 12:00 to 14:00. The chart loads a window's worth of history before its start, so its left edge already has a full window behind it.transform_statismean(the default),median,minormax. Readings are weighted by time: one that held for an hour counts sixty times one that held for a minute, and the median is the value the readings were below half of the time.transform_raw: true(defaultfalse) draws the readings themselves as a thin grey line behind the rolling one, on the line chart.- Gaps are left out of the window; the rolling series is a gap only where the whole window is. The names row and the hover readout show the rolling value.
- One transform per entity, so a rolling window can't sit on a rate of change (which has its own smoothing) or a cost. It applies wherever transforms do, now including the duration curve; the box plot, candlestick and the 24-hour clock's number rings apply it without loading the window early, so their first window is shorter.
- In the editor: each entity's Transform has Rolling window, with Window, Show (Mean, Median, Lowest, Highest) and Keep the readings faint behind it.
Text states as numbers
-
States that are words can now be drawn as numbers, so they can be charted. Give an entity
state_map, pairing each state with a number: a thermostat'shvac_action, a mode, an enum sensor. The bar, gauge or line is drawn at the number, and the card still shows the word. (#127)type: custom:chartdeck-card style: line title: Hall heating curve: step entities: - entity: climate.hall attribute: hvac_action state_map: "off": 0 idle: 20 heating: 100
- It works on the state, or on the
attributewhen one is set, on every style that reads numbers, including history charts and their long-term statistics. The value text still shows the word as Home Assistant formats it ("Heating"). - States match exactly first, then ignoring case and spaces at the ends.
- A state that isn't in the map is read as before: numbers stay numbers,
onandoffon a chart stay 1 and 0, and any other word is a gap. Charts that draw words, such as the state timeline, keep the words. - In YAML, quote
"on","off","yes"and"no"when they are states in the map: a dashboard in YAML mode reads them unquoted as true and false. - In the editor: each entity's options have States as numbers, with a State and a Number per row, Add state and Remove state. Add state fills in the entity's current state first, then the others it is known to take (an enum sensor's options, a thermostat's modes or HVAC actions); the first gets 0 and each one after it 100 more. The warning for an entity that isn't a number now points here too.
- It works on the state, or on the
Usual range for the time of day
-
A line chart can now shade what is usual for each hour of the day, and mark readings outside it. Set
normal_range: true. For each hour of the chart, the band runs from the 10th to the 90th percentile of what the same entity read at that hour over the last four weeks, with a dotted median, and a stretch of readings outside the band gets a dot. A bathroom fan's humidity, a fridge, a room that is warmer than it should be at this time of day. (#127)type: custom:chartdeck-card style: line title: Bathroom humidity entities: - sensor.bathroom_humidity normal_range: true normal_range_days: same_weekday normal_range_weeks: 8 normal_range_low: 25 normal_range_high: 75
normal_range_daysisevery_day(the default) orsame_weekday;normal_range_weeksis 1 to 12 (default 4).normal_range_lowandnormal_range_highare percentiles from 0 to 100 (defaults 10 and 90), the low below the high. One week of the same weekday gives one value per hour, so the band is a line.normal_range_median(defaulttrue) draws the dotted median;normal_range_marks(defaulttrue) puts one dot on each stretch outside, at its furthest reading, innormal_range_color(defaultamber). Hovering a dot says "Inside: 31.0 °C, above the usual 18.2–21.9 °C". A key under the names says what the band shows ("Usual range · 10–90 percentile · days back: 28").- The earlier weeks are read from long-term statistics, an hour at a time; an entity without statistics, or one drawn from an
attribute, falls back to its history averaged per hour. An hour of the day keeps its place across a clock change, and needs at least three earlier values (or all of them, with fewer days) to have a band. - There is no band on a chart longer than 14 days or grouped by day, week or month (by hour is fine), or while the history is loading or can't be read. Each series gets its own band, in its colour.
- The band is worked out from the readings themselves, so it is refused with a
transform, acostor agoal(see Fixed); an entity withcost: falseon a costed card is fine. - In the editor: Chart section, Markers and extras, with Shade the usual range for the time of day; once it is on, Compare with (Every day or The same weekday), Weeks back, Low percentile, High percentile, Draw the median, Mark readings outside the range and Marker colour.
Calendar events
-
A line chart can now mark the events of a Home Assistant calendar. Add an annotation with
type: calendarand a calendar entity: bin day, a holiday, a visit, set against the readings. A timed event gets a dashed line at its start, labelled with its title; an all-day event, or one lasting a day or more, gets a shaded span. (#127)type: custom:chartdeck-card style: line title: Living room entities: - sensor.living_room_temperature annotations: - type: calendar entity: calendar.family match: bin, dentist color: amber shade: true
entityis needed and must be acalendar.*entity.matchkeeps only events whose title contains one of the words, in any case, with commas between them; without it every event shows.- Each mark shows the event's title unless you set
label, which then names every event.coloris a palette name or CSS colour (default purple).shade: true(defaultfalse) shades timed events' length as well. - The labels share the top two rows with time and state marks, so they don't overlap; above 60 events only the lines and spans are drawn. An event that began before the span is shaded from the left edge.
- The hover readout lists the events going on at that time, with "All day", the times ("09:00 – 10:30") or the dates, up to three and then "+2 more".
- Repeating events are marked each time. Events load again when you step to another period or zoom out past what was loaded, and every 10 minutes on a chart that runs to now. If the calendar can't be read, the chart draws without its events.
- In the editor: Add an annotation: has a Calendar events button; each one has Calendar, Only events containing (blank for all) and Shade each event's length, with the label and colour.
Scatter fit line
-
The scatter chart can now draw a line of best fit, with its slope and how well it fits, and ring where the entities are now. Set
fit: linearandnow_point: true. A row under the chart reads "−0.21 kW per °C · R² 0.93": how much a heat pump's power changes for each degree outside, and how closely it follows. (#127)type: custom:chartdeck-card style: scatter title: Heating against outside group_by: hour fit: linear now_point: true entities: - sensor.outside_temperature - sensor.heat_pump_power
fitisnone(the default) orlinear: a least-squares straight line through each series' dots, in its colour, running only across the range of the readings it was fitted to.- The slope is shown to two significant figures in the units on the axes, with the series' name in front when there are several. When the entity along the bottom has no unit it reads "Slope −0.21 kW". Screen readers hear the slope and R² too.
- The line is fitted to every pair of readings, also when there are too many to draw them all, and never to the jittered positions. A series with fewer than two readings, or with every reading at the same place across, gets no line.
now_point: true(defaultfalse) puts a ring labelled "Now" at the first entity's current state across and each other entity's state up the side. It shows only on a span that reaches now, and not while either entity is unavailable.- Both are for the scatter chart against an entity; with
against: time, and on the bubble chart, they are ignored. - In the editor: Chart section, with Fit line (None or Straight line (least squares)) and Ring where they are now. They are hidden while Along the bottom is Time.
Tile feature
-
Home Assistant's tile card can now show a small Chartdeck chart under its entity. Edit a tile card, choose Add feature and pick Chartdeck chart: a sparkline of the last day, a row of columns or a bar, in the strip where a tile's own features (a brightness slider, a fan speed) go. It comes with the card, so there is nothing more to install. A plug's power under the tile of its switch, or a room's temperature under its thermostat. (#127)
type: tile entity: switch.kettle_plug features: - type: custom:chartdeck-feature style: sparkline entity: sensor.kettle_power hours: 24
styleissparkline(the default),column(one column per hour for two days or less, one per day beyond) orbar(the current value betweenminandmax, withtargetas a mark).hoursis how far back, above 0 and at most 168 (default 24).fill: falseleaves the sparkline unfilled;aggregate(defaultauto) sets how columns combine, and automatic shows how much a meter rose in each column and the average for anything else.entityis optional: the tile's own entity when left out.attribute,min,max,target,unit,decimals,color,severityand the three actions mean what they do on the card; limits and band starts can be entities, andunitconverts.- The colour is the band the value is in when
severityis set, elsecolor, else the tile's own colour, which follows the entity's state as the tile's icon does. Tapping the chart opens the more-info dialog of its entity, handy when it isn't the tile's. - Chartdeck chart is offered for tiles with a number to draw (a numeric state, a unit or state class, or a number in an attribute such as a thermostat's current temperature), and on a switch or plug whose device has a power or energy sensor, where it starts on that sensor. On Home Assistant versions that don't tell a feature which device a tile is on, it is offered on every switch, light, fan, input boolean and binary sensor tile. It needs tile features, so Home Assistant 2024.8 or later.
- An unavailable entity draws faded, and a bar has no fill or target; an entity with no history yet draws a faint dashed line; gaps in history break the line. The history loads once, then adds new states as they arrive, and stops while the tile isn't on the page. It reads history only, so a week at most. Screen readers hear "Kettle power, last 24 h: 2.1 kW".
- In the editor: the feature has its own form inside the tile card's editor: Look, Entity ("Empty: the tile's entity."), the attribute, Hours of history with Fill below the line or Combine with, Unit, Decimals, Colour without bands, then Minimum, Maximum and, for the bar, Target, Colour bands and Actions.
Table view
-
Line, area and column charts can now switch to a table of their readings. Set
table_toggle: trueand a Chart | Table switch appears at the end of the names row. The table has a row per group, or per reading when ungrouped: the time, each series' value and how far each value is from that series' average. (#127)type: custom:chartdeck-card style: column title: Daily import group_by: day table_toggle: true table_change: true entities: - sensor.grid_import_energy
table_toggleisfalseby default.table_change(defaulttrue, once the switch is on) adds a "vs avg" column per series: "+9 %", "−4 %". The average counts each group once; ungrouped, each reading counts for as long as it held. A group still running (today so far) isn't compared and reads "so far".- An ungrouped history shows its latest 250 rows, and the caption says so ("Last 24 hours, latest 250 of 812 rows").
- The table is as tall as the chart and scrolls, with the header row and the time column kept in view. Numbers and times follow your Home Assistant language and number format. It is a real table, with a caption and header cells, for screen readers.
- The choice of chart or table is remembered per card in the browser. With
header: hidden, a row with only the switch stays, so the chart can always come back. - Series hidden with
legend_togglestay out of the table, and zoom, forecasts and earlier spans aren't in it. - In the editor: Chart section, Layout and sharing, with Chart | Table switch ("Adds a switch to show the readings as a table. The choice is remembered in this browser.") and then Table: change from average.
Open in History
-
Tapping a reading can now open Home Assistant's History panel around it, with every series of the chart. Set
point_actionwithaction: history. On a touch screen the hover readout gains an Open in History link; with a mouse, a click opens it straight away. (#127)type: custom:chartdeck-card style: line title: Freezer entities: - sensor.freezer_temperature point_action: action: history window: 2h
actionisnone(the default) orhistory. It is written as an object, like Home Assistant's own actions, sopoint_action: historyon its own is refused with a message saying how to write it.windowis how long a stretch to open, centred on the point: a number thens,min,hord(30min,2h,1d), at most 31 days (default2h). The stretch never runs past now. A grouped reading opens its whole group, so a day's column opens that day.- With a mouse, a click opens History at the reading nearest the pointer. A drag to zoom or pan isn't a click, and with zoom on a double-click still resets the zoom. On a touch screen a tap shows the readout as before, now with the link; with
tooltip: falsea tap opens History straight away. - Long-term statistics with no entity of their own (from
source: energy, say) are left out of the link. In small multiples each panel opens its own entity. - It works on the line, area and column charts.
- In the editor: Chart section, Axes and gridlines, with Tapping a point (Does nothing or Opens History there) and History window.
Keyboard
-
Line, area and column charts can now be read from the keyboard. Each chart is one Tab stop. The arrow keys move between readings and series, the reading in focus gets a ring and the hover readout, and screen readers hear it: "Inside, Fri 20 Nov 14:05: 21.0 °C". It is on by default;
keyboard_nav: falseturns it off. (#127)type: custom:chartdeck-card style: line title: Lounge and hall keyboard_nav: true entities: - sensor.lounge_temperature - sensor.hall_temperature
- Left and Right go to the reading before or after in the series in focus; the first press lands on the first series' latest reading. Up and Down go to the series before or after, at its reading nearest in time. Page Up and Page Down jump a tenth of the readings, Home and End go to the first and last on show, Enter opens the series' more-info dialog and Esc lets go.
- The chart shows a focus outline when reached by the keyboard, not when clicked. Synced charts follow the reading in focus, as they follow the pointer, and with
tooltip: falsethe ring and the spoken reading still work. - With zoom on, the keys move only between the readings on show; the overview strip and the reset button keep their own keys. Moving the mouse hides the ring, and the next arrow carries on from where the pointer was.
- Gaps and hidden series are skipped. Keys with Ctrl, Alt or Cmd are left to the browser. The arrows follow the time axis as drawn, so Right is later in every language, right-to-left ones included.
- Small multiples aren't read from the keyboard yet.
- In the editor: Chart section, Axes and gridlines, with Read values with the keyboard ("The chart is one Tab stop: arrow keys move between readings and series, Enter opens the series, Esc stops.").
Summary
-
Line, area and column charts now describe themselves in a sentence or two for screen readers, and can print it under the chart. "Rose from 18.1 °C to 22.0 °C over 6 h. Peak 23.1 °C at 14:10. Now falling." It is written from the readings on every such chart by default;
show_summary: trueshows it in small text under the chart too. (#127)type: custom:chartdeck-card style: line title: Living room summary: auto show_summary: true entities: - sensor.living_room_temperature
summaryisauto(the default),offto leave it out, or any other text, which is read out as written.show_summaryisfalseby default: screen readers hear the summary either way.- A change of less than a tenth of the series' spread reads "Ended about where it started". A peak or a low is named only when it differs from the start and the end. While the span runs to now, "Now rising", "Now falling" or "Now steady" is added, from the latest value against the value a tenth of the span before it.
- Times are clock times on a span of a day or less, and dates with times beyond. On a grouped column chart the peak is named by its group ("Wed, 18 Nov") and there is no "Now …".
- With several series each gets its own sentence after its name. Gaps are skipped, and a series with nothing recorded is left out.
- The line chart describes the whole period, also when zoomed in, and small multiples have none.
- In the editor: Chart section, Layout and sharing, with Summary for screen readers ("Empty or auto writes one from the readings; off leaves it out; anything else is read out as written.") and Show the summary under the chart.
Changed
- Line, area and column charts are now one Tab stop each. With
keyboard_navon by default, pressing Tab through a dashboard stops once on each of these charts, where it used to pass over them. This affects anyone who moves round a dashboard by keyboard; arrow keys only do something once the chart has focus, and a mouse click doesn't show the focus outline. To keep a chart out of the Tab order, setkeyboard_nav: false(see Keyboard). (#127) - Screen readers announce those charts differently. The plot was an image named "Line chart of Lounge, Hall". With the keyboard on, the plot area is now a group named "Line chart of Lounge, Hall. Arrow keys read the values, Enter opens the series, Esc stops.", and the drawing inside it is hidden so it isn't announced twice. Either way the chart is now described by its automatic summary, which screen readers read after the name.
summary: offleaves the summary out, andkeyboard_nav: falseputs back the image. Nothing changes on screen. (#127) - The editor's warning for an entity that isn't a number now suggests mapping its states. It used to say "Pick a sensor that reports a number, or read one of its attributes under its options." It now reads "Map its states to numbers under its options, read one of its attributes, or pick a sensor that reports a number.", pointing at States as numbers. (#127)
- The editor has new fields in places you know. Each entity's options gain States as numbers and Calculate from other entities, and Transform gains Rolling window. The line, area and column charts' Axes and gridlines gain Tapping a point, History window and Read values with the keyboard, and their Layout and sharing gain Chart | Table switch and the two summary fields; the line chart's Markers and extras gains the usual range. Cost and, on the line chart, Goal sit under the Chart section's folds, before the annotations. (#127)
- The tile card's feature list now offers Chartdeck chart on tiles with a number to draw, and on switches and plugs with a power or energy sensor (see Tile feature). Tiles you have are unchanged until you add it. (#127)
Upgrading
Nothing in your cards needs to change: no option was removed or renamed, and every card draws as before. If you'd rather a chart weren't a Tab stop, add keyboard_nav: false to it; if you don't want the summary read out, add summary: off.
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.4.0 once it has. The tile feature is in the same file, so Chartdeck chart is in the tile card's feature list as soon as the card is loaded.
If you install by hand, copy every file from the release into <config>/www/ side by side: chartdeck-card.js and one chartdeck-card.<language>-<hash>.js for each of the 19 translations. The language files have new names in this release, so the old ones can be deleted. See Installation.
New in the wiki:
- Chart pages: Duration curve, Time in each state, and the Tile feature
- Line chart sections: goal, usual range for the time of day, calendar events, rolling window, cost, table, summary, History and keyboard
- Column chart sections: cost, table, summary, History and keyboard; and on the area chart
- Scatter chart: fit line and now ring
- Options sections:
cost,summaryandshow_summary,table_toggle,point_action,keyboard_nav,state_map,formulaandvars, rolling window - Every style on Styles and in the
styleoption
Full changelog: v2.3.0...v2.4.0














