Hello @123 ,
I’m not sure if utility meter can really help. I’ve looked into Get sum for today, yesterday, last x hours from a sensor, too. It has the similar question where utility meter doesn’t help. As far I understand the utility meters track a sensor over a defined time resetting it to 0 once this time elapses. Than start tracking again.
My setup in the configuration.yaml works differently: the daily temperature is feeded into the statistics sensor that only can store three values. This means the the oldest is always kicked out at the sum of tree is the value of the sensor. This was i get the rolling sum of rain over the last tree days.
My only issue is that when I am forced to restart HA the value of the daily rain is restored and this triggers the adding of the value from previous day again. This is what I want to prevent. Basically, what i need is a manual trigger once a day and not automatic update every time daily rain sensor changes value.
Would the suggestion above work with the service input_number, something like here: Calculate cumulative total sensor from daily total sensor - #6 by matys ? Of course I would need to apply this to the statistics sensor and not the daily rain yesterday sensor as I want that the statics are only updated at midnight.
I hope this makes any sense and I am not talking rubbish here 
Cheers,
Zavjah