Is it somehow possible to get that energy consumption kWh to a template in HA?
That graph is calculated from the long term statistics data in the recorder database. It is not exposed as an entity. So you would have to create your own SQL sensor to use the values elsewhere.
It would be much easier for you to create a daily utility meter helper from the sensor you feed the energy dashboard.
1 Like
Thanks for the info, but I need the exact number, because utility meter wont count when HA is rebooting. Also its messing up data when I restore backup but this statistic is exactly right compared with my electricity bill, no matter what I do with my HA.
Then you will have to create an SQL sensor.
1 Like