Time horizon for Energy Flow sankey chart?

I’m just getting set up with the (new?) Sankey “Energy Flow” chart on the “Energy” tab of the “Energy” dashboard, and I’m trying to understand its logic and figure out how how to tune it to be useful.

I’ve got ~4 dozen partially-hierarchical devices that are reporting power and energy, and I’ve added them as devices to the dashboard. They are a complete hodgepodge, ranging from smart plugs to smart appliances to CT sensors in my breaker panel, to NUT on UPSs, etc. Some don’t even track energy so I’ve had to create integral helpers. So their definitions of “energy” – and in particular the time horizon over which power is integrated to compute “energy” – are wildly different. For example:

  • my smart power meter reports an ever-increasing number of kWh that presumably counts from when it was first installed (by a prior homeowner)
  • a simple smart plug I just added reports the energy since its last reboot – so basically zero now but will grow over time… but every few weeks/months it may reboot and start back over from zero
  • my breaker monitors reset their cumulative energy figure every 24 hours

I guess my first question is: with all of these incommensurate values in the entities, what is this graph actually showing me? I.e., are widths of the flows just the apples-and-oranges values taken blindly from the entities? (It doesn’t look like that’s the case!) Or does it reset every day? Or is it a rolling 24hrs? Or something else?

And second: is there any way to tune this behavior? Ideally I’d be able to adjust the time horizon (e.g., let me look at my energy flows over the past day… and then flip a switch to see the energy flows over the past month, etc. – with Home Assistant intelligently correcting for the occasional/unsynchronized counter resets) so that I can really understand “where my electricity is going”. Is there any way to do something like this?

Thanks!

There is a time period selector sticky at the bottom, which precisely does what you are looking for. All energies in the energy tab are with respect to the time period of this selector.

Thank you! For some reason that sticky wasn’t showing, but it seems fixed now.

And I guess the graph is just smart enough to handle the periodic resets?

Yes it is.

1 Like