Utility meter YAML or Intermittently displaying helper

Hi. So I’ve got a sensor from ESPHome that displays my daily kWh consumption from my inverter.
This number is updated as I consume power throughout the day and resets to zero at midnight.
I’d like to add up the daily max values using the utility meter helper. The only issue is that it’s adding up the delta of each new number reported during the day. Which obviously adds up to more than the actual final total.

Is there a way around this using YAML for the utility meter helper?

Alternatively I was thinking I could use another helper that just displays my consumption sensor’s value at 23:59 and I point the utility meter helper at that. But I also don’t know what kind of helper can do that.

Any help would be appreciated, thanks!

So you want a running total that does not reset daily?

Simple, feed your ESP sensor that resets daily to a Utility Meter with no reset cycle and do not use delta values. This will ignore the resets to zero of the source sensor and just keep counting up.

Ok thanks let me give that a go. The reason I didn’t try that was I thought it would still add up the number every time it changes. So as it increases throughout the day it would keep adding the new number to the previous number(s). But maybe I misunderstood!

It only does that if you set delta values to true. So don’t do that.