Energy & power flow with generation and battery monitoring - live sankey charts

Energy Sankey is a HACS frontend component, creating a visual sankey diagram showing the flow of electrical power & energy.

  • Live updating
  • supports flow in/out of grid
  • supports generation
  • supports batteries (including multiple batteries)
  • width of lines indicates amount of electricity
  • Separate cards for instantaneous power and daily total energy
  • dynamic scaling
  • graphical editor
  • automatic configuration based on HA energy dashboard settings
  • works even if you have partial monitoring installed

Other sankey cards are available, but the aim here is an easy to understand consistent visual look, specifically for electrical energy, with the layout and colors mirroring the built-in HA energy distribution card. No fuss and no complicated setup or yaml.

Most users should be able to add the card and immediately get a view of their energy/power flow.

Thanks for recent help from community members who’ve beta tested this! Enjoy!

https://github.com/davet2001/energy-sankey

2 Likes

Did you hard code those colours or use the frontend variables?

I’ve changed some of my energy colours using themes to make it clearer:

If you did hard code them you may want to use these variables instead:

  ### Energy Panel Colours ###
  energy-grid-consumption-color-0: '#e45e65'
  energy-grid-consumption-color-1: '#039bef'
  energy-grid-consumption-color-2: '#0da035'
# energy-grid-return-color-0
# energy-battery-in-color-0
# energy-battery-out-color-0
  energy-solar-color-0: '#e0b400'
# energy-gas-color-0
# energy-water-color-0

I used the frontend variables for the sources (grid, generation, discharging batteries). The flow out to consumers (grid, charging batteries, appliances) is a blended colour depending on where the energy came from.

It falls back to hardcoded colours if it can’t find the official ones for any reason.

1 Like