Configuration
Every option, what it does, and how to use it. Required fields are marked with *.
Card options
Top-level card configuration — type, chart variant, title, and the entities list.
type: custom:energy-breakdown-card
title: Energy Breakdown
chart_type: donut
entities:
- entity: sensor.solar_energy_today
- entity: sensor.grid_energy_today
- entity: sensor.battery_energy_todaycustom:energy-breakdown-cardbar (stacked progress bar) or donut (ring chart).Legend & tooltip
Toggle and position the legend, tooltip, total, and icons.
Desktop: hovering a segment opens a tooltip near the cursor that tracks the cursor and disappears on leave.
Mobile: tapping a segment opens the tooltip and pins it; tapping the same segment again fires its tap_action (or more-info); tapping outside dismisses it.
chart_type: donut
show_legend: true
legend_position: right
show_tooltip: true
show_total: true
show_legend_value: true
show_legend_percentage: true
show_icons: truebottom or right. Donut only — bar chart always renders the legend below.Data shaping
Sort, group, and format the values that feed the chart.
Use max_items together with group_others to keep the chart readable when you have many low-magnitude sources.
sort: true
max_items: 5
group_others: true
decimals: 1
unit_of_measurement: kWhmax_items is set, bundle the remaining entities into a single Other segment. Set to false to drop them entirely.Chart appearance
Tune the visual proportions of each chart variant.
donut_thickness applies only to chart_type: donut; bar_thickness only to chart_type: bar. section_radius works on both.
chart_type: bar
bar_thickness: 24
section_radius: 12Energy dashboard sync
Optionally bind the card to the Home Assistant energy dashboard, so values follow the dashboard's selected date range.
With energy_date_selection: true, the card pulls statistics growth for each entity over the selected period (today, week, custom range) instead of using the entity's current state.
Each Home Assistant energy dashboard exposes its own collection. By default the card binds to the active dashboard's collection. Set collection_key to follow a specific dashboard — keys follow the pattern energy_<dashboard_url>.
type: custom:energy-breakdown-card
energy_date_selection: true
collection_key: energy_living_room
entities:
- entity: sensor.solar_energy
- entity: sensor.grid_energy
- entity: sensor.battery_energytrue, values come from the energy dashboard's selected date range (statistics growth). When false, the entity's current state is used directly.energy_living_room). Useful when multiple energy dashboards exist. Defaults to the active dashboard's collection.Entity options
Each item in the entities array supports the options below.
If you only specify entity, the card pulls the friendly name, unit, and icon from Home Assistant and assigns a color from a built-in palette that recognizes common names like solar, grid, and battery.
entities:
- entity: sensor.solar_energy_today
name: Solar
color: "var(--energy-solar-color)"
icon: mdi:solar-power
- entity: sensor.grid_energy_today
name: Grid
color: "#488fc2"
- entity: sensor.battery_energy_today
name: Battery
icon: mdi:home-battery
multiplier: 0.001 # Wh -> kWhvar(...)). Defaults to a smart palette based on the entity name (solar, grid, battery, …).more-info for the entity.Actions
Per-entity click handlers. Use these to open more-info, navigate, call services, or fire scripts.
Each entity supports the standard Home Assistant action objects. The default tap_action opens the entity's more-info dialog.
On touch devices, the first tap on a segment opens the tooltip. The second tap on the same segment fires its tap_action.
entities:
- entity: sensor.solar_energy_today
tap_action:
action: navigate
navigation_path: /lovelace/energy
hold_action:
action: more-info