Hi, so im lost on where to start. I have a fixed displacement pump that i control with a switch in home assistant. I want to have a sensor that tracks the duration the pump has been in “on” and then convert based on a known volume to time ratio, and display in volume (gal). I then want to be able to have a gauge in lovelace that shows total volume pumped to date, with reset as well as a volume pumped during the last run time. Anyone able to help?
History sensor? → History Stats - Home Assistant
The thing I’m not sure I would trust is a pumps specification being all that precise.
Is there no other option to directly measure the volume?
I do this for my heating oil tank. Fortunately, an oil burner is calibrated to use a specific volume of fuel per hour, so although not perfect, run-time gives a usable indication of how much fuel has been used.