Calculate cumulative total sensor from daily total sensor

Same here for PV energy meter. I do have a total, but it is reporting every 1kwh, so I got false looking graphs in case of cloudy or mixed weather.

I was thinking of creating a template sensor with condition but I am not sure how to increment the value ( as reference one is resting to 0 every day )