How to create yearly record of EV energy used on Zappi Charger

I thought this would be straight forward, but I cannot seem to get anything to work. I would like to create an entity / cost tracker … which shows my cumulative spend on EV charging over the year. I have a MyEnergi Zappi Charger installed, and integrated with Home Assistant, and can see that there is an entity for “Octopus Energy Cost Tracker zappi_cost_tracker” which shows a graph (as attached) across the year … but cannot figure how to create a sum entity … to just add all this up.
I did create a helper utility meter entity … but, not sure if I did it right … as just shown “unknown”
Any help greatly appreciated

Try a statistics graph card instead of the history panel, that should present the total in the way that you are interested in.

I don’t really want a graph … just a single entity showing the cost value, example:

image

Utility meter should be helpful then, you can give some more details what you did if you can’t get it to work.

The other way you could do something is to make a template entity that calls recorder.get_statistics, collects the entire usage over the interested window, and returns the sum.

That would allow it to populate retroactively on existing data, instead of starting counting from today.

Apologies … from what you have said … I actually think my “utility meter” entity is actually working, but I was expecting it to “sum” for the whole year … but it seems to only be “sum” from when it was created

image

That template entity you suggested, would it be possible to explain a little more?