Ability to externally reuse the energy dashboard graphs

Hi there,

I’d like to have the ability to reuse the energy dashboard graphs (usage, production & forecast) externally. Possibilities that come to mind are embedding as a .png/svg or displaying the single graphs in an iframe.

Reason:
I have a MagicMirror-like display hanging in my kitchen which permanently displays stuff like our personal calendar, weather forecast & some basic data of our house as an overlay on our family pictures. I’d love to display the nice Homeassistant energy consumption/export chart on it, so my wife can see when to start the dishwasher/washing machine.

I’m pretty confident with python, so I might be able to create a pull request. However, I need some advice on where to start since the Homeassistant code base is quite large & unknown for me.

Thx!

You can use the cards in your dashboards. It’s not documented (as far as I know) but if you inspect the Energy dashboard you can see the card types. Just add these to your dashboard using manual cards:

type: energy-usage-graph
title: Energy Use
type: energy-solar-graph
title: Solar Graph
type: energy-distribution
title: Energy Distribution

Then I guess you could use the Cast integration to share them?

You could send a notification instead.

1 Like

It’s documented here: