Sharing my sankey panel dashboard which contain vertical-stack with energy-date-selection, sankey, horizontal-stack with energy-flow-card-plus and power-flow-card-plus followed by markdown.
I’m happy with the actual state where I can see the energy going to house and also have the possibility to extend a bit the view about the house battery.
For anyone interested, the energy sankey card is now updated to support multiple batteries, graphical editor, and automatic configuration.

If you want a simple setup process and an intuitive view of bidirectional electricity flows, this might be for you.
Enjoy!
Hi, how did you manage to get the victron ui into the dahboard?
You just mention markdown-card.
My apology, it’s iframe
You can use the reconcile functionality GitHub - MindFreeze/ha-sankey-chart: A Home Assistant lovelace card to display a sankey chart. For example for power consumption
@MindFreeze
Thanks for your answer.
But I don’t understand. I’ve tried different variations, but I can’t seem to get it to work.
For example, if you want the children of Haus to always be equal to Haus, you have to add this in the Haus config
children_sum:
should_be: equal
reconcile_to: latest
Thank you for this wonderful card.
I’m wondering if, when there are multiple entities in a section and one or more of these entities has no children, the following section can reset its scaling to the parent section’s scale less the childless entities. Or have a section scale to its own state sum.
To explain, I have 2 cards:
When I combine these into a single card I get:
The issue is that on a Sunny day the grid exported value dominates the scaling in the 3rd (and following) sections and the relative visual scaling of consumed energy is lost.
The charts behaviour makes sense but can I override it in my scenario?
Thanks
No way to do this right now, I’m afraid. Supporting multiple scales would complicate the card significantly.
Best to have 2 charts. Overview which could include everything, and a detailed consumption view like you already have.
OK, thanks
Thank you, now I have it.
type: custom:sankey-chart
title: Energy Flow Vandaag
layout: horizontal
height: 200
unit_prefix: k
round: 0
convert_units_to: Wh
min_box_size: 1
min_box_distance: 5
show_states: true
show_units: true
energy_date_selection: false
show_names: true
show_icons: true
sort_by: state
sections:
- entities:
- type: entity
entity_id: sensor.sb3_6_1av_41_257_daily_yield
name: Zonne-Energie
icon: mdi:solar-power
color: var(–warning-color)
children:- sensor.dagelijks_thuisverbruik
- sensor.dagelijks_export_tarief_1
- sensor.dagelijks_export_tarief_2
- type: entity
entity_id: sensor.dagelijks_import_tarief_1
name: Net Tarief 1
icon: mdi:transmission-tower-import
color: var(–info-color)
children:- sensor.dagelijks_thuisverbruik
- type: entity
entity_id: sensor.dagelijks_import_tarief_2
name: Net Tarief 2
icon: mdi:transmission-tower-import
color: var(–info-color)
children:- sensor.dagelijks_thuisverbruik
- type: entity
- entities:
- type: entity
entity_id: sensor.dagelijks_thuisverbruik
name: Huidig Verbruik
icon: mdi:home-lightning-bolt
color: Red
children: - type: entity
entity_id: sensor.dagelijks_export_tarief_1
name: Export Tarief 1
icon: mdi:transmission-tower-export
color: Purple
children: - type: entity
entity_id: sensor.dagelijks_export_tarief_2
name: Export Tarief 2
icon: mdi:transmission-tower-export
color: Indigo
children:
- type: entity
Why do I only see the total consumption and not the current consumption of the day?
Kan Someone help me please
I can’t get a rest value…
This is my code
layout: horizontal
height: 200
unit_prefix: k
round: 3
convert_units_to: “”
co2_intensity_entity: sensor.co2_signal_co2_intensity
gas_co2_intensity: 2351.646
min_box_size: 3
min_box_distance: 5
show_states: true
show_units: true
sections:
- entities:
- type: entity
children:- sensor.p1_meter_energie_export_tarief_2
- sensor.p1_meter_energie_export_tarief_1
- sensor.dagelijks_thuisverbruik
entity_id: sensor.sb3_6_1av_41_257_daily_yield
color: var(–warning-color)
name: Zonne-Energie
icon: mdi:solar-power
- type: entity
children:- sensor.dagelijks_thuisverbruik
entity_id: sensor.p1_meter_energie_import_tarief_1
name: Dag Net
icon: mdi:transmission-tower-export
color: “#2cdfff”
- sensor.dagelijks_thuisverbruik
- type: entity
children:- sensor.dagelijks_thuisverbruik
entity_id: sensor.p1_meter_energie_import_tarief_2
name: Nacht Net
icon: mdi:transmission-tower-export
color: “#2c9dff”
- sensor.dagelijks_thuisverbruik
- type: entity
- entities:
- type: entity
children:
entity_id: sensor.p1_meter_energie_export_tarief_2
name: Nacht Net
icon: mdi:transmission-tower-import
color: “#fb2cff” - type: entity
children:
entity_id: sensor.p1_meter_energie_export_tarief_1
name: Dag Net
icon: mdi:transmission-tower-import
color: “#a42cff” - type: remaining_parent_state
children:- sensor.kwh_meter_energy_import
- sensor.dagelijks_overig_verbruik_correct
- sensor.kwh_meter_keuken_energy_import_3
entity_id: sensor.dagelijks_thuisverbruik
name: Thuis
icon: mdi:home-lightning-bolt
color: “#ffdc2c”
- type: entity
- entities:
- type: entity
children:
entity_id: sensor.kwh_meter_energy_import
name: A/C Woonkamer
icon: mdi:heat-pump
color: “#3eff2c” - type: entity
children:
entity_id: sensor.dagelijks_overig_verbruik_correct
name: Overig Verbruik
icon: mdi:home
color: “#75736d” - type: entity
entity_id: sensor.kwh_meter_keuken_energy_import_3
icon: mdi:faucet
color: “#f084f0”
name: Keuken
sort_by: state
- type: entity
- entities:
sort_by: state
sort_group_by_parent: true
energy_date_selection: true
type: custom:sankey-chart
min_state: 0
show_names: true
show_icons: true
title: Energy Flow
I am having some trouble applying styling on my sankey card. Can anyone help me with this?
- type: custom:sankey-chart
layout: horizontal
height: 500
show_names: true
show_icons: true
unit_prefix: k
round: 1
wide: true
co2_intensity_entity: sensor.electricity_maps_co2_intensity
gas_co2_intensity: 66.6
grid_options:
columns: full
sections:
- entities:
- type: entity
entity_id: sensor.total_daily_energy
color: "#3182b7"
name: Consumption
icon: mdi:transmission-tower
children:
- sensor.circuit_1_hot_tub_daily_energy
- sensor.circuit_5_hot_water_daily_energy
- sensor.circuit_3_dryer_daily_energy
- sensor.circuit_7_washer_daily_energy
- sensor.circuit_15_kitchen_rec_daily_energy
- Uncategorized
- entities:
- type: entity
entity_id: sensor.circuit_1_hot_tub_daily_energy
color: "rgb(255,0,0)"
name: Hot Tub
icon: mdi:hot-tub
- type: entity
entity_id: sensor.circuit_5_hot_water_daily_energy
color: "rgb(255,95,0)"
name: Hot Water Heater
icon: mdi:water-boiler
- type: entity
entity_id: sensor.circuit_3_dryer_daily_energy
color: "rgb(255,191,0)"
name: Dryer
icon: mdi:tumble-dryer
- entity_id: sensor.circuit_7_washer_daily_energy
color: "rgb(50,168,82)"
name: Washer
icon: mdi:washing-machine
- entity_id: sensor.circuit_15_kitchen_rec_daily_energy
color: "rgb(50,168,82)"
name: Kitchen
icon: mdi:chef-hat
- type: remaining_parent_state
entity_id: Uncategorized
name: Everything Else
color: "#3182b7"
card_mod:
style: |
ha-card {
background: rgba(115, 115, 115, 0.25);
border-radius: 10px;
border-width: 0px;
}
Hi,
Just recently stumbled on this card, and really like the card and its possibilities.
So far i tried the autoconfig for the power chart card, and I noticed that it does display both Solar PV converters as input, but it doesn’t show the input from the GRID in the chart with autoconfig.
I guess i should be able to create a chart completely manual with al bits I want in there, but was still wondering why only grid import isn’t showing up in the autoconfig chart.
Tnx.
I guess the grid numbers for Dutch Setup’s aren’t very easy.
There are 2 numbers (day and night delivery) that need to be taken in, and i have 2 solar systems.
in the auto generated yaml it is doing a lot with addition and subtraction of entities. very hard to follow for me.
I created a view a bit simpler by myself and it sort-off shows the basics.
Now i want to see if I can create a live view of the Power (W) instead of the energy (kWh) of the whole day.
But since i have 2 solar systems, and 6 seperate identities (power_in and power_out) for the 3 phases, i can’t come up with a nice visualization.
My DSMR meter also has identities for the power_returned and power_deliverd as a sum of all 3 phases. But i can be returning 5000W in total while consuming 3500W on Phase1, but i can’t get my head around some kind of lineair flow on this.
sometimes if i use some identities in the next step as children the numbers don’t match up.
so maybe someone already tried to visualize this? I am interested in examples.
tnx!
Hi,
I have been battling trying to achieve this. Can you please share the code?
Thanks
Ok I was wrestling a bit to make it calculate the price from kWh. The github wasn’t too clear with this (probably cuz they don’t have an example), but to convert your energy units to price, don’t do convert_units_to: cost (which I had done and wasted hours wondering why it didn’t work); instead do this - convert_units_to: monetary






