Record and display time dd:mm:ss a helper is in ON state with ability to reset (for solar pump and boiler monitoring)

I monitor the time my solar pump and my boiler come on.
I would like to track the cumulative time they have been ON
For the oil boiler, I would like to estimate oil consumption (i have a tank sensor too, but would like to compare).
For this, I have created a helper which is set to ön"whenever my shelly measures a more than 5 watts going to the pump.

I have been unsuccessful in managing to measuring the time it has been set to on (cumulated since last oil fill) and display this on my dashboard.

In addition, I would like to be able to reset the counter with a button press on the same dashboard.

I have tried various solutions but I no luck so far.

Many thanks!

History Stats - Home Assistant

thanks but this requires me to give 2 of the following, start, end and duration.
I want it to start now and continue (ie no end or duration) unless I reset using a button or toggle to reset.

Make the history stats entity start at midnight and end now. Then make a trigger based template entity that adds the value right before midnight. If you want it to reset, add that as a trigger for the template sensor.