Foxess show energy fed back to the grid total

Hi all.

I have the FOXESS integration and setup a template so my HA dashboard shoes me live, what I am feeding back to the grid from my Solar panels. I’m wondering how I can get this to show me a total for the day, week and month perhaps.

Can anyone help please?

thanks.

If you get data in W or kW, you first need a Riemann sum integral to get Wh or kWh. Be sure to use the left method:

When you have Wh or kWh sensors the Utility meter is your friend to get daily/weekly/monthly/yearly values: