esphome / esphome/issues

Pulse Meter Sensor - wrong pulse counting

Open
#4,040 8 comments 0 reactions 0 assignees View on GitHub
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

![grafik](https://user-images.githubusercontent.com/11608896/212552946-d087d0b2-e57e-4b08-9638-6fba4373ff01.png)
![grafik](https://user-images.githubusercontent.com/11608896/212552960-cd279b01-daa1-4eed-9fb4-e98eea2cc3c6.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.