Hello!
Ive bought a flow meter https://www.amazon.co.uk/gp/product/B073VJPQ9W/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1
It is basically gives a bunch of pulses for HA to count. I’ve seen a lot of people wanting to count liters per day/week etc. I need to count water contents of a tank from full to empty. So need to count the actual amount of liters used in a 700L tank. Then be able to hit a reset on the counter when the tank is manually filled.
Unfortunately the utility meter looks like it only resets on a schedule rather than reset button and I’m not sure if it counts pulse totals or an approximation per hour?
Anyone got an idea to count actual pulse totals from the flow meter, with manual reset on the counter?
It’s arriving today and I’ve set up the code in ESP home
sensor:
- platform: pulse_counter
pin: GPIO5
name: "Water Meter Encoder"
# filters:
# - lambda: return (x / 450) ; ??
update_interval: 10s
The ESP sensor shows up in HA states and is ready for another sensor to count the pulses.
The tech spec says its 450 pulses per Liter. Think I may be able to do the Liter conversion in the ESPHome sensor with the lambda filter there? Or I may just use a template sensor in HA.
The reset-able counter will be the hard bit.
Cheers.
J