Pulse Meter Sensor - wrong pulse counting
- Dominant language
- No language data
- Stars
- 313
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### The problem
I configured the Puls Meter Sensor for a TCR5000 infrared device to count the revolutions of a water meter with a reflective area (nearly a half circle) on the 0.001 m^3 pointer (one complete turn are 10L or 0.01 m^3).
Due to the slow frequency of the sensor I'm only interessted in the total value.
I noticed radom counts and increasing of the total value. So I configured a binray_input sensor to track the switching of the infrared device and found no bouncing or random level change.
If have switch of any multiply filters and asume a increasing of the total value by 1 with every level change from OFF to ON of the sensor. But as you can see, there is a random increasing by 1,2 or 4.
### Which version of ESPHome has the issue?
2022.12.3
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2023.1.4
### What platform are you using?
ESP8266
### Board
Wemos Mini
### Component causing the issue
Pulse Meter Sensor
### Example YAML snippet
```yaml
binary_sensor:
- platform: gpio
pin:
number: GPIO15
inverted: true
mode:
input: true
name: "Water Sensor"
id: water_sensor
filters:
- delayed_on: 100ms
sensor:
- platform: pulse_meter
pin:
number: GPIO15
inverted: true
mode:
input: true
internal_filter: 100ms
internal_filter_mode: edge
device_class: WATER
name: 'Water Pulse Meter'
filters:
- multiply: 10
unit_of_measurement: "l/min"
icon: "mdi:water"
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 # 1l = 0.001 m^3
```
### Anything in the logs that might be useful for us?
_No response_
### Additional information


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.