Skip to content

✨ New Features & πŸ› Bug Fixes

Choose a tag to compare

@cataseven cataseven released this 25 Oct 21:00
· 7 commits to main since this release
8739cff

⚠️ Behaviour changes

  • Data labels on a stacked: true bar chart are now centred inside each segment in white or dark text (picked against the segment colour) instead of sitting above the bar in the entity colour, and a segment too short to hold its number shows no label. Labels on bars and lines that are not stacked are unchanged.
  • ref_op: divide / reverse_divide with an energy, gas or water meter as ref_entity and aggregate_func: change, diff, sum or delta now divides the two totals of each period instead of dividing every reading by the meter's running value. A period whose divisor is 0 or has no data stays empty, and price_entity multiplies the main entity only. As with add / subtract, a statistic_id-only series in this setup renders empty. Dividing by a level (an input_number, a constant, a measurement sensor), multiply and every level aggregation behave exactly as before. Under an auto_scale_rules step with group_by: raw such a row now renders empty with a console warning, the same as an explicit group_by: raw.
  • Pie labels drawn outside the ring (slices under 5 % of the total) no longer follow pie_label_color. They use the theme's text colour β€” dark ink in a light theme, where they used to be white on white β€” or the new pie_label_outside_color when it is set; give that option the same value as pie_label_color to keep the previous look. Labels inside the slices are unchanged.
  • ⚠️ Live updates now reach every card through Home Assistant's subscribe_entities channel β€” for administrators too β€” instead of the admin-only subscribe_trigger. The chart, state row, annotations and reference entities update exactly as before; the limit of 64 live entities per card is gone (a card with more than that no longer listens to every state change of the installation); a Home Assistant too old to know the command (before 2022.4) falls back to the previous general listener. Nothing to configure; hard-refresh once after updating.

✨ New in this release

β˜€οΈ solar_forecast β€” the Energy dashboard's solar forecast as a row of the card (#420)

If your Energy dashboard shows a solar forecast (Forecast.Solar, Solcast, Open-Meteo Solar Forecast …), the card can now draw that same forecast as a row of its own β€” put solar_forecast: true on a row instead of an entity, no template sensor or attribute array needed. The points are the hourly kWh values the forecast integration gives the Energy dashboard, Sum and kWh are the defaults, so group_by: date turns a week or month card into one bar per day; by default every solar source with a forecast is added up and solar_forecast_source picks one source by its energy statistic. A rolling window stretches to the last forecast hour, and with energy_date_sync, the date picker or graph_start add show_full_period: true to stay on the selected period. In the editor the row lives under per-entity β†’ Advanced β†’ Solar Forecast (Energy Dashboard), with the Entity picker optional while the toggle is on.

type: custom:statistics-graph-chart-card
graph_start: day
show_full_period: true          # keep the hours after now on the chart
entities:
  - entity: sensor.pv_energy_today
    aggregate_func: change
    graph_type: bar
  - solar_forecast: true        # all solar sources with a forecast, summed
    # solar_forecast_source: sensor.pv_a_energy   # or one source only
    graph_type: line
    line_style: dashed

🏷️ show_in_compact_legend β€” leave an entity out of the compact legend (#425)

Entities that only exist to feed the state row β€” say the two show_graph: false totals next to a three-slice pie β€” no longer have to appear in the compact legend under the chart: set show_in_compact_legend: false on the entity and that legend skips it, while the state row, tooltip, graph and the per-entity statistics legend stay exactly as configured. Nothing changes unless you set it (the default is true); it accepts {{ }} templates like the other show toggles, comparison ghosts follow their main entity unless their own compare block sets it, and the editor offers it as Show in Compact Legend in the per-entity Graph tab, next to Hide on Load. An entity left out can still be hidden and revealed by clicking its state row.

chart_mode: pie
show_legend: true
entities:
  - entity: sensor.grid_import
  - entity: sensor.solar_used
  - entity: sensor.battery_out
  - entity: sensor.house_total
    show_graph: false              # value in the state row only
    show_in_compact_legend: false  # and not in the compact legend either

🎨 pie_label_outside_color β€” a colour of their own for the pie labels outside the ring (#428)

A pie slice under 5 % of the total is too small to hold its number, so the card writes that label outside the ring, at the end of a short leader line. Until now that label used the same colour as the labels inside the slices β€” white by default, or whatever pie_label_color says β€” so a dark pie_label_color picked for light slices made the outside labels disappear on a dark card, and in a light theme the default white outside labels vanished against the card background. These labels now have a colour of their own: leave pie_label_outside_color empty and they use the theme's text colour, like the centre total, so they are readable on the card in both light and dark themes without any configuration; or set any CSS colour or var(--…) theme variable. The labels inside the slices, the leader line (still in the slice colour), the 3D effect and the Bar style are unchanged. In the editor the field is Outside Label Color in the Pie block of the Chart tab, next to Slice Label Format.

chart_mode: pie
pie_label_format: percentage
pie_label_color: "#1a1a1a"                            # dark numbers inside light slices
pie_label_outside_color: var(--primary-text-color)   # optional β€” empty already means the theme text colour
entities:
  - entity: sensor.heat_pump_energy
  - entity: sensor.oven_energy
  - entity: sensor.standby_energy                     # a 3 % slice β€” labelled outside the ring

〽️ name on a moving average β€” call the line what you like instead of MA168 (#434)

A moving average with show_label: true prints MA plus its period at the end of its line β€” MA7, MA26, MA168 β€” which says how many buckets it averages, not what it means to you. Each item under moving_averages now takes a name: when show_label is on, the line carries that text instead, in the same place, colour, size and halo as before and still kept inside the plot. name only changes the wording β€” show_label still decides whether a label is drawn at all, so a name without it stays invisible, a blank name falls back to MA<period>, and items without a name keep their MA… tag exactly as before. The average itself, its colour and width, the tooltip and the legend are unchanged. In the editor the field is Name in each Moving Averages row of the per-entity Graph tab, between Color and the Label switch; its placeholder shows the automatic MA<period> text, so leave it empty to keep that.

entities:
  - entity: sensor.outdoor_temperature
    group_by: hour
    moving_averages:
      - period: 24
        color: "#ffffff"
        show_label: true            # reads "MA24"
      - period: 168
        color: "#f1c40f"
        show_label: true
        name: "Weekly trend"        # reads "Weekly trend" instead of "MA168"

🧱 stacked per entity β€” plain lines next to stacked bars on one card (#432)

stacked: true used to be all or nothing: every line, area and bar of the card joined a stack, so room temperatures drawn next to stacked valve positions were piled on top of each other too. Each entity now takes its own stacked. Leave it out and the entity follows the card exactly as before. stacked: false on a stacked card takes that entity out of every stack β€” it is drawn as on a card that is not stacked: a plain line or area, or a bar from the zero line in a slot of its own beside the stacked columns, with its own Y range, all four bar corners rounded and its data labels above the bar. stacked: true on a card without the toggle stacks that entity with the other entities that also set it, grouped by stack_group, Y axis, graph type, grouping and invert as always, while everything else keeps drawing unstacked. Comparison ghosts follow their main entity, the tooltip's per-group totals only add up the entities that are actually stacked, the grand Total still adds up every visible entity, and a stack_group without stacking β€” on the card or on the entity β€” still does nothing. The key accepts {{ }} templates like the card-level stacked. In the editor it is the Stacked dropdown (Inherit / On / Off) on the per-entity Graph tab; the Stack Group field sits next to it and appears while the entity is stacked, and Inherit writes nothing to the YAML.

stacked: true
show_y2_axis: true
entities:
  - entity: sensor.living_room_temperature
    stacked: false                 # plain line on the left axis
  - entity: sensor.bedroom_temperature
    stacked: false
  - entity: sensor.living_room_valve
    graph_type: bar
    y_axis: secondary              # the valves stack on the right axis
  - entity: sensor.bedroom_valve
    graph_type: bar
    y_axis: secondary
  - entity: sensor.bathroom_valve
    graph_type: bar
    y_axis: secondary

🏠 use_only_area_name β€” just the room name under each value (#436)

include_area_names puts the area after the entity's name β€” Multisensor Temperature Β· Master Bedroom. When every sensor on the card stands for one room, that entity name is noise: all you want to read under the value is the room. use_only_area_name: true shows each entity's Home Assistant area alone β€” the value on top, Master Bedroom below it β€” in the state row, legend, tooltip, statistics, exports and the pie, ranking and other summary charts. The area comes from the entity itself or, when it has none, from its device; an entity without an area keeps its normal name, an explicit name: is never touched, and a comparison ghost reads Master Bedroom (previous period). The area is the whole label, so the Attribute names options do not change it (for Current temperature Β· Master Bedroom combine use_only_attribute_name with include_area_names); entities without an area still follow them. In the editor it is the Area names only toggle next to Area names; the two are alternatives β€” switching one on turns the other off β€” and in YAML use_only_area_name wins when both are set. Off by default, so nothing changes until you ask for it.

use_only_area_name: true
entities:
  - entity: sensor.bedroom_multisensor_temperature   # label: Master Bedroom
  - entity: sensor.theatre_rack_temperature          # label: Theatre Room (the area of its device)
  - entity: sensor.garage_temperature                # no area β†’ keeps its own name

πŸ›  Fixes & reliability

  • πŸ”’ Data labels on stacked bar charts now sit inside their own segment β€” with stacked: true every value was printed at the height its bar would have on its own, so the top entity's number landed inside the bottom segment and neighbouring numbers overlapped where two segments meet. Each label is now centred in the segment it belongs to, in white or dark text picked to stand out against that segment's colour, and a segment too short to hold its number shows no label; labels on stacked lines now follow the stacked line too, while bars and lines that are not stacked look exactly as before (#426)
  • βž— A daily COP from two energy meters now shows the real ratio. With ref_op: divide and aggregate_func: change (or diff, sum, delta), the card divided every small step of the main meter by the reference meter's running reading and added the results up. Heat output Γ· electricity used therefore showed a number unrelated to the real COP: far too low with a lifetime meter, too high with one that resets at midnight. When the reference is an energy, gas or water meter, the card now totals both meters per period first and then divides them. Each day reads exactly that day's heat Γ· that day's electricity, a day without electricity stays empty, and the state row shows today's COP so far. The same now holds wherever a whole period becomes one number: pie, radial bar, polar area, radar, ranking and waterfall charts, the heatmap and calendar cells and the state row's % share divide the period's totals instead of adding up the daily ratios (a weekly radial bar of a daily COP reads about 3.5, not 24), and a period without any electricity shows 0 instead of the heat meter's reading (#427)
  • 🌐 No more failed translations/<lang>.js request in the browser console on every dashboard load β€” with a Home Assistant language other than English the card first asked for a per-language translation file that no release has ever contained, and only after that request failed did it load translations.js. Everything was translated correctly, but Firefox logged "Loading module from source … failed" and Chrome "Failed to load resource: 404" every time a dashboard opened, once per language in use, on every install β€” HACS or manual. The card now loads translations.js straight away, once per page however many cards and languages it holds, and asks for a per-language file only when translations.js itself is missing, so a normal install makes no failing request at all. Nothing changes on screen and there is nothing to configure; hard-refresh once after updating. English dashboards never loaded a translation file and still do not, and a card with no translations.js next to it still works in English and says so once in the console (#429)
  • πŸ”’ Dashboards opened by a user who is not an administrator no longer write Error handling message: Unauthorized to the Home Assistant log β€” to follow new readings live, the card asked Home Assistant for a kind of update (subscribe_trigger) that only administrators may request. For every other user Home Assistant refused it and logged that error once per card on every dashboard load, after which the card quietly switched to a much heavier way of listening that made the server push every state change in the whole installation to the card. History, charts and update_interval refreshes were never affected, and live updates did keep arriving through that heavier route. The card now follows its entities the way the Home Assistant frontend itself does (subscribe_entities, allowed for every user): the log stays clean, the server only sends the entities the card actually shows, and the old limit of 64 live entities per card is gone. Live values, the state row, annotations, reference entities and price refreshes behave exactly as before (#435)
  • πŸ” Legend statistics and Min/Max labels now follow a zoom. After a brush zoom, a pinch, a pan, the zoom buttons or a zoom received from a synced card, the show_in_legend row (min, avg, max, sum, last) is recalculated from the range on screen β€” as the Y axis already was and as the docs have always said β€” and show_extrema labels mark the lowest and highest point in view instead of vanishing when the whole-period extreme lies outside it. Stepping back out (double-click, double-tap or the reset button) restores the whole-period numbers. Before, a zoomed energy line that ran from 6.1 to 9.4 kWh still read MIN 0.00 / MAX 11.40 / LAST 11.40, and a zoomed hourly bar card kept the 48-hour total as its SUM. Deliberately unchanged: the state row (primary_state_as) keeps showing the whole-period figure and the legend's live value is still the entity's state right now (#433)