Cumulative Data as a Sensor

Hi all.
I have a few cases where i want to track data over the course of a a day or a month.

Lets use energy consumption as an example. I have a sensor in HA, coming from my Iotawatt, that shows how much energy is being consumed at any given point in time.
Id like to display how much energy has been used today/this week/this month.

For this particular example I could probably use PVoutput, or even EmonCMS, but I have other examples where the data only exists in HA.

Is there an easy way to do this ? I could probably roll my own thing, or even write something in appdaemon using mqtt, but is there a more native way ?

Yes there is:

And it works very well.

I looked at that already, and I am using it in a different case, but does that assume you already have a lifetime type sensor, and want to break it up?

In the case I’m speaking of, I only have a right now sensor, not the cumulative count.

This is power not energy. Very different things.

The IoTaWatt should have a cumulative energy sensor.