Card guide Home Assistant custom cards
Sankey Chart Card for Home Assistant
A Sankey diagram for Home Assistant: a box for each sensor, and bands between them sized by how much is flowing. Most people use it to split the house's power or energy into circuits and appliances, with an Other band for whatever isn't measured.
What it is
Sankey Chart Card draws a Sankey diagram: a column of boxes for each stage, and bands between them whose thickness is the amount flowing. Point it at the house's power sensor and its circuits or appliances, and you can see which load is taking the biggest share.
Every example below is the same custom:sankey-chart. You list nodes, give each one a section number (0 on the left, counting across), and draw links between them. Any entity with a numeric state works, so the same card handles power, energy, water or gas. You can also build the chart in the card editor by dragging nodes and links on the preview.
A few node types do the arithmetic for you. remaining_parent_state shows whatever a parent reports that its children don't account for, which is where the Other band comes from. remaining_child_state goes the other way and adds up its children, so a circuit you don't meter can still have its own box. And filters with multiply: -1 turn the negative half of a signed sensor into a flow of its own, which is how one battery or grid sensor becomes Battery charging or Grid export.
The shots show live power at one moment around midday. Pointed at kWh sensors, the card also shows totals over a period: time_period_from: now/d for today, or energy_date_selection: true to follow the Energy dashboard's date picker. convert_units_to then turns those kWh into cost or carbon. Those views need a history of long-term statistics, which our test install doesn't have, so they aren't pictured.
Home Assistant's own Energy Sankey and Power Sankey cards draw a similar chart from your Energy dashboard settings. Reach for this one when you want to choose the entities and the grouping yourself.
It installs from the Home Assistant Marketplace, or through HACS on versions before 2026.11.
What it gives you
Shot on Home Assistant 2026.10.1. Stock is Home Assistant with no theme installed; a theme changes how these look, not what they do.
Where the power goes
custom:sankey-chart The home's total on the left, split into the appliances you meter, with a remaining_parent_state node collecting the rest as Other.
Seen on An energy dashboard
Show the YAML
type: custom:sankey-chart
grid_options:
columns: 12
show_names: true
height: 260
nodes:
- id: sensor.home_power
section: 0
name: Home
- id: sensor.aircon_power
section: 1
name: Aircon
- id: sensor.pool_pump_power
section: 1
name: Pool pump
- id: sensor.hot_water_power
section: 1
name: Hot water
- id: sensor.fridge_power
section: 1
name: Fridge
- id: home_other
section: 1
type: remaining_parent_state
name: Other
links:
- source: sensor.home_power
target: sensor.aircon_power
- source: sensor.home_power
target: sensor.pool_pump_power
- source: sensor.home_power
target: sensor.hot_water_power
- source: sensor.home_power
target: sensor.fridge_power
- source: sensor.home_power
target: home_other
sections:
- {}
- min_width: 170 Solar split
custom:sankey-chart Where the panels' output is going right now: into the house, the battery or the grid. The battery and export bands come from signed sensors flipped with a filter.
Seen on An energy dashboard
Show the YAML
type: custom:sankey-chart
grid_options:
columns: 12
show_names: true
height: 260
nodes:
- id: sensor.solar_power
section: 0
name: Solar
color: var(--warning-color)
- id: sensor.home_power
section: 1
name: Home
- id: sensor.battery_power__charging
entity_id: sensor.battery_power
section: 1
name: Battery charging
color: var(--success-color)
filters:
- multiply: -1
- id: sensor.grid_power__export
entity_id: sensor.grid_power
section: 1
name: Grid export
color: var(--info-color)
filters:
- multiply: -1
links:
- source: sensor.solar_power
target: sensor.home_power
- source: sensor.solar_power
target: sensor.battery_power__charging
- source: sensor.solar_power
target: sensor.grid_power__export Circuits and devices
custom:sankey-chart Three columns: home, circuits, then appliances. The circuits have no sensor of their own. Each one is a remaining_child_state node that adds up the appliances under it.
Seen on An energy dashboard
Show the YAML
type: custom:sankey-chart
grid_options:
columns: 12
show_names: true
height: 300
nodes:
- id: sensor.home_power
section: 0
name: Home
- id: circuit_outdoor
section: 1
type: remaining_child_state
name: Outdoor
- id: circuit_climate
section: 1
type: remaining_child_state
name: Climate
- id: circuit_kitchen
section: 1
type: remaining_child_state
name: Kitchen
- id: circuit_other
section: 1
type: remaining_parent_state
name: Other
- id: sensor.pool_pump_power
section: 2
name: Pool pump
- id: sensor.hot_water_power
section: 2
name: Hot water
- id: sensor.aircon_power
section: 2
name: Aircon
- id: sensor.fridge_power
section: 2
name: Fridge
- id: sensor.dishwasher_power
section: 2
name: Dishwasher
links:
- source: sensor.home_power
target: circuit_outdoor
- source: sensor.home_power
target: circuit_climate
- source: sensor.home_power
target: circuit_kitchen
- source: sensor.home_power
target: circuit_other
- source: circuit_outdoor
target: sensor.pool_pump_power
- source: circuit_outdoor
target: sensor.hot_water_power
- source: circuit_climate
target: sensor.aircon_power
- source: circuit_kitchen
target: sensor.fridge_power
- source: circuit_kitchen
target: sensor.dishwasher_power
layout: horizontal
sections:
- {}
- {}
- min_width: 150 Vertical layout
custom:sankey-chart The first chart with layout: vertical, flowing top to bottom. It suits a narrow column, and the card switches to it on its own when there isn't room across.
Seen on An energy dashboard
Show the YAML
type: custom:sankey-chart
grid_options:
columns: 12
show_names: true
layout: vertical
nodes:
- id: sensor.home_power
section: 0
name: Home
- id: sensor.aircon_power
section: 1
name: Aircon
- id: sensor.pool_pump_power
section: 1
name: Pool pump
- id: sensor.hot_water_power
section: 1
name: Hot water
- id: sensor.fridge_power
section: 1
name: Fridge
- id: home_other
section: 1
type: remaining_parent_state
name: Other
links:
- source: sensor.home_power
target: sensor.aircon_power
- source: sensor.home_power
target: sensor.pool_pump_power
- source: sensor.home_power
target: sensor.hot_water_power
- source: sensor.home_power
target: sensor.fridge_power
- source: sensor.home_power
target: home_other The repository
- Author
- MindFreeze @MindFreeze
- Latest release
- v6.5.0 27 November 2026
- GitHub stars
- 688
- Install via
- HACS Free, MIT
Maintenance: Actively maintained by one developer, with a new release every few weeks. The open issues are almost all feature requests. Building the chart by dragging nodes on the editor preview needs Home Assistant 2026.2 or newer. It's listed in the Home Assistant Marketplace, so from 2026.11 it no longer needs HACS.
Built in instead: Home Assistant now has its own Energy Sankey and Power Sankey cards, plus water versions, which draw from your Energy dashboard settings with nothing to install. They show the sources and devices you've set up there. This card takes any numeric entity and any links you draw, so the middle columns can be circuits, rooms or anything else you choose.
Dashboards that use it
Frequently asked questions
Where does the Other band come from?
A node with type: remaining_parent_state. It shows whatever its parent reports that the other children don't account for, so it shrinks as you meter more appliances. Each parent can have only one.
Why does my battery or export flow show nothing?
The card treats negative values as zero. To show the negative side of a signed sensor, add a second node with its own id, point entity_id at the same sensor, and give it filters: [{multiply: -1}].
Can it show today's energy, or what it cost?
Yes, from kWh sensors with a state_class so Home Assistant keeps statistics for them. Set time_period_from: now/d for today, or energy_date_selection: true alongside an Energy date picker card. To show money or carbon instead of kWh, set convert_units_to with electricity_price and monetary_unit.
Why did my chart turn vertical on its own?
The default layout is auto. It switches to vertical when the card is narrower than the sections' minimum widths added up, which is 150 pixels each by default. Set layout: horizontal to keep it running left to right.
Why is a label cut off at the edge?
The card estimates how much room a label needs from its character count, so wide letters can run past the edge. A min_width on the last entry under sections gives it more room.
Do my sensors need to be in the Energy dashboard?
No. Only autoconfig reads the Energy dashboard. A chart you configure yourself takes any entity.
Still need a hand?
We answer most messages within one business day. If your question is about an existing order, have your order number ready. It speeds things up.
Contact us