I have installed a solar collector on my rooof. The temperature of the water in the boiler (which go to the waterheater for my shower) and the solarcollector are measured. In case the solarcollector temperature is higher than the water temperature the pump is started.
Because the solarcollector is a little too small, the pump is switch on and off. What I would like to report in homeassistant is the total running time every day. So I need to add up the running times (status is on) and reset to zero at midnight.
How do I get the on and off times and add up the times and how do I do a reset at midnight