Display total energy cost in a card

Hello everyone,

I want to show the total energy cost, which is already displayed in the energy panel, on a custom card.

I want to put this value into a card like it is displayed here.

How can I do it?

The energy dashboard does not expose any entities. You will have make your own.

I have this desire too but I’m struggling to make a sensor that sums it for the month.

Did you have any luck?

create a TEMPLATE with the calculation?
or a HELPER with the integral function?

I created a sensor doing the calculation but the values are not the same that in the energy dashboard :frowning_face:

I have done something similar with my gas meter monitoring…

See my most recent update on this thread… there is an explanation of what I did and some yaml that I created.

I hope this helps! :+1:t2:

Cheers,

Mike.

Hi David,

I have done something similar and noticed a small difference between the ‘official’ HA Energy dashboard costs, and my own, custom dashboard costs. It is only a few pence out over the course of a day, so I’m not that bothered about it.

I can’t explain why, as both the Official Dashboard and my custom dashboard are using the same sensor information. :man_shrugging:t2: Maybe a maths rounding error at a guess. :thinking:

Cheers,

Mike.

I wish there was a simple way for this. Where do I vote for the “Total Grid Cost” entity to be added? :slight_smile:

Hi @Muddy_Boots It’s working properly for me right now

1 Like