Thanks for linking to the post about pulse counter vs pulse meter. After reading that post a number of times and the ESPHome documentation about those sensors, I still don’t see significant differences between those two sensors. As you had previously mentioned compared to Pulse Meter, Pulse Counter seems to have more flexibility with its configuration variables. In the end, aren’t both of those sensors just outputting pulses/minute? Then, by using filters one can convert the pulses per minute to other units such a gallons, liters, kW, etc?
It seems you were right in that I only needed one of the sensors. Based on a post in another thread (Water usage sensor - #3 by mightybosstone) this is the code that I’m currently using.
- platform: pulse_counter
name: "Water Rate"
id: water_rate
pin:
number: GPIO4
mode:
input: true
pullup: true
update_interval: 10s
count_mode:
rising_edge: DISABLE
falling_edge: INCREMENT
unit_of_measurement: "gal/hr"
accuracy_decimals: 3
filters:
- debounce: 1.0s
- lambda: return (x / 13.36898395721925) * 60;
total:
name: "Water Tot al"
unit_of_measurement: "gal"
id: water_total
accuracy_decimals: 3
device_class: water
state_class: total_increasing
filters:
- multiply: 0.0748
Now I plan to confirm the readings from the sensor matches the readings on the face of my actual water meter.