Statistics reset

I’ve got a temperature sensor in a greenhouse and I’m monitoring min and max temperatures.

Is there a way to reset this, either every night at midnight or manually with a button?

I have max age set to 24 hours and the sampling size set to 288 as the sensor updates every 5 minutes.

There may be a better way, but you could write the min and max values to an input number every time they change and at midnight.