Water flow sensor with ESPhome as "simple" water meter?

Guess you could start here:

The esp will need the flow rate to sum it up for you but obviously you don’t need to expose the flow rate to ha if you don’t want :non-potable_water: