Pulse_meter and Pulse_counter counting too many pulses

Note that there are issues with pulse_meter for almost 2 years now; pulse_meter seems to have broken with 2023.8.0 · Issue #4807 · esphome/issues · GitHub

The fix PR has been open for more than a year, so not sure when/if this will ever get fixed.

1 Like

After almost 24h it seems the meter is on par.

The meter seems to work fine. But i still have issue with the value being 0 after reboot (and i still haven’t figured out why it reboots at not fixed interval)…
I’ve set reboot_timeout: 0s on both api and mqtt section of the config file and the framework i’m using is type: esp-idf.
I haven’t set the preferences.flash_write_interval in the config file so it should default to 1 min.
sensor:

- platform: pulse_meter
    pin:
      number: GPIO16
      mode:
        input: true
        pullup: true
    internal_filter_mode: PULSE 
    internal_filter: 500ms
    #update_interval: 30s
    filters:
      - multiply: 10  # (10L/1 pulse)
    name: "Water Pulse Meter"
    #unit_of_measurement: "liter/min"
    icon: "mdi:water"
    id: water_pulse_meter
    total:
      name: "Water Meter Total"
      unit_of_measurement: "m³"
      id: water_meter_total
      accuracy_decimals: 3
      device_class: water
      state_class: total_increasing
      filters:
        - multiply: 0.01 # (10L/1 pulse)

Thanks for any suggestion:)