Skip to content

v2.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 11:59

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, ¢/kWh and öre/kWh are 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: statistics drew 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)

    Three duration curves: a week of solar output with "Above 2 kW for 9% of the time" marked on the curve; solar and house load as two curves with their marker sentences listed under the chart; and a compact one with the names over the plot

    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.
    • markers labels 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 (default false) 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, formula and state_map work 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.

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)

    Three charts of time in each state: a thermostat's heating, idle and off hours stacked per day with the hours printed on each slice; two entities side by side per day as a share of the time; and today grouped by hour in minutes

    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_by is auto (the default), hour, day, week or month. 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 no period the 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: percent scales each column to 100 % of the time that was recorded, so today, still running, reaches the top too.
    • states shows 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 (default false) prints the time on each slice with room for it. state_colors sets a colour for any state, as on the state timeline.
    • Several entities each get their own column in every group. Per entity, attribute reads an attribute such as a thermostat's hvac_action, and when leaves 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 source must be history.
    • 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 cost with 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)

    Three cost charts: daily import cost stacked by tariff band (standard, off-peak and peak) with a key under the names; today's running cost from a half-hourly price; and daily cost read from long-term statistics with each column's value printed above it

    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
    • price is 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.
    • tariff periods run from from to to every day in Home Assistant's time zone, past midnight when to is earlier, and follow clock changes. Where two overlap the first listed wins; times outside every period take price. split: true (default false, column chart only, on a chart that isn't stacked) stacks each column by band, with a key under the names; a period without a name is named by its price, and time outside every period is "Standard".
    • currency is 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) unless decimals is set. The value axis numbers stay plain; the names row and hover readout read in money.
    • A meter (state class total_increasing or total, 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: false leaves a series out of the cost and draws it as usual, and cost: { price: sensor.export_rate } gives it its own keys. With source: energy, cost: true uses 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 both cost and a transform, and other styles refuse cost.
    • 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 goal with a target. 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)

    Three goal charts: November's import running ahead of a 300 kWh target with a red projection to 378 and "On pace for 378 kWh · 26% over"; a week paced on its recent rate, in green under target; and today's solar against a 5 kWh target to reach

    type: custom:chartdeck-card
    style: line
    title: November import
    entities:
      - sensor.grid_import_energy
    goal:
      target: 300
      period: month
      direction: below
      project: linear
    • target is a number or an entity whose state is the target, such as an input_number. period is day, week, month (the default) or year.
    • direction: below (the default) means good is staying under the target, as for energy used; above means 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; recent at 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: cumulative with 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.offset still work: a finished period says "Ended at 287 kWh · 4% under" and has no projection. The value axis starts at 0 unless y_min is 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 formula and vars, 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)

    Three formula charts: lounge and outdoor temperature with their difference as a dashed third line; the hourly cost of power times price; and the hourly mean difference between two rooms as columns, followed by bars from a formula's current value, one of them unavailable

    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, and min(…), max(…), abs(…) and round(x) or round(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 as Formula uses "c": add it to "vars" with the entity it reads.
    • Names read the entity's state; on and off read as 1 and 0, so power * switch works. 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.
    • entity is 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 a name.
    • The unit is unit when 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, so import - export on 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 transform applies 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.

Rolling window

  • A series can now be drawn as its mean, median, lowest or highest over a trailing window. Set transform: rolling and a transform_window on 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)

    Four rolling-window charts: an office CO2 sensor's two-hour rolling mean with the readings faint behind it; mean, median, lowest and highest over six hours as four lines; a rolling mean broken where the readings have a gap; and columns of a three-hour rolling highest

    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_window is needed: a number then s, min, h or d (30min, 2h, 1d), up to 7 days. The window trails, so the value at 14:00 with 2h covers 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_stat is mean (the default), median, min or max. 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 (default false) 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's hvac_action, a mode, an enum sensor. The bar, gauge or line is drawn at the number, and the card still shows the word. (#127)

    A step line of a hall thermostat's heating over the last 24 hours, at 100 while heating, 20 while idle and 0 while off, and a bar of the same entity reading "Idle"

    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 attribute when 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, on and off on 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.

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)

    Three line charts with the usual range shaded behind each line: a temperature with dots on a warm spell above the band; one against the same weekday over eight weeks with a narrower 25 to 75 percentile band; and two series over three days, each with its own band and dots outside it

    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_days is every_day (the default) or same_weekday; normal_range_weeks is 1 to 12 (default 4). normal_range_low and normal_range_high are 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 (default true) draws the dotted median; normal_range_marks (default true) puts one dot on each stretch outside, at its furthest reading, in normal_range_color (default amber). 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, a cost or a goal (see Fixed); an entity with cost: false on 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: calendar and 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)

    Three line charts with calendar events: a day with a shaded all-day span and dashed lines for the school run and the dentist; a week with a trip and a day off shaded; and a power chart with one timed event shaded and labelled Away

    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
    • entity is needed and must be a calendar.* entity. match keeps 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. color is a palette name or CSS colour (default purple). shade: true (default false) 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: linear and now_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)

    Three scatter charts of heat pump power against outside temperature, each with a straight fit line, a ring labelled Now, and "−0.21 kW per °C · R² 0.93" under the chart; the second adds the kitchen temperature as a second series with its own line

    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
    • fit is none (the default) or linear: 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 (default false) 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)

    Tile cards with a Chartdeck chart under each: a kettle plug with a filled sparkline of its power, a bedroom temperature as a bar with a target mark, an office as hourly columns and a sparkline, a sparkline with a gap in its history, and an unavailable entity drawn faded

    type: tile
    entity: switch.kettle_plug
    features:
      - type: custom:chartdeck-feature
        style: sparkline
        entity: sensor.kettle_power
        hours: 24
    • style is sparkline (the default), column (one column per hour for two days or less, one per day beyond) or bar (the current value between min and max, with target as a mark). hours is how far back, above 0 and at most 168 (default 24). fill: false leaves the sparkline unfilled; aggregate (default auto) sets how columns combine, and automatic shows how much a meter rose in each column and the average for anything else.
    • entity is optional: the tile's own entity when left out. attribute, min, max, target, unit, decimals, color, severity and the three actions mean what they do on the card; limits and band starts can be entities, and unit converts.
    • The colour is the band the value is in when severity is set, else color, 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: true and 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)

    Charts switched to tables: a line chart of two rooms as hourly rows with each value and its change from the average; daily import as rows by day; and a minute-by-minute table, with a line and a column chart below left on Chart

    type: custom:chartdeck-card
    style: column
    title: Daily import
    group_by: day
    table_toggle: true
    table_change: true
    entities:
      - sensor.grid_import_energy
    • table_toggle is false by default. table_change (default true, 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_toggle stay 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_action with action: history. On a touch screen the hover readout gains an Open in History link; with a mouse, a click opens it straight away. (#127)

    Hover readouts on a line, a column and an area chart, each ending in an Open in History link under the readings

    type: custom:chartdeck-card
    style: line
    title: Freezer
    entities:
      - sensor.freezer_temperature
    point_action:
      action: history
      window: 2h
    • action is none (the default) or history. It is written as an object, like Home Assistant's own actions, so point_action: history on its own is refused with a message saying how to write it.
    • window is how long a stretch to open, centred on the point: a number then s, min, h or d (30min, 2h, 1d), at most 31 days (default 2h). 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: false a 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: false turns it off. (#127)

    A line chart of two rooms reached by the keyboard: a focus outline round the plot, a ring on the hall's latest reading and the hover readout showing both values; a column and a stacked area chart below

    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: false the 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: true shows it in small text under the chart too. (#127)

    Charts with their summary printed under them: a line that fell from 18.9 to 17.8 °C over 24 hours with its peak and "Now falling"; a two-series area chart with a sentence per series; a compact column chart named by day; and a chart with its own text

    type: custom:chartdeck-card
    style: line
    title: Living room
    summary: auto
    show_summary: true
    entities:
      - sensor.living_room_temperature
    • summary is auto (the default), off to leave it out, or any other text, which is read out as written. show_summary is false by 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_nav on 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, set keyboard_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: off leaves the summary out, and keyboard_nav: false puts 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:

Full changelog: v2.3.0...v2.4.0