Three months ago I started with HA and I’m glad to say that it’s a great tool for my smart home. Now I started with my new dashboard and wanted to create some cards with some energy consumption values in it.
That worked well till I got to energy consumption values from the past. I wanted to get values from the last hour, last day, last week and so on.
I have used the statistic-card to get those values in a card, but I wanted to have them as an entity to put them as a secondary_info in an entity-card (YAML). How does that work?
You have to create your sensors and set it in apex-chart. This work for me.
My Data are shown for today, yesterday (complete week), month and year. In my configuration are three ways. Grid consumption, Mini - PV and energy in and out from my batteries.
Read this: