opened 04:20PM - 17 Aug 23 UTC
### The problem
Greetings.
Upgrading from 2023.7.1 to 8.0, the pulse_meter f…unction seems to have broken/changed. The below now causes the counter to go crazy and increment at a high rate endlessly. Removing the internal_filter causes the initial count after reset to be a randomly high number. The pulse count afterwards counts, though is several orders of magnitude higher than actual. Removing the debounce filters also causes endless increments.
I have a separate ESP8266 on an identical but separate water meter running the same code that no longer reports its count. The sensor shows as "unknown".
Please let me know how I can help.
### Which version of ESPHome has the issue?
2023.8.0
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2023.8.2
### What platform are you using?
ESP8266
### Board
_No response_
### Component causing the issue
_No response_
### Example YAML snippet
```yaml
sensor:
- platform: pulse_meter
pin:
number: GPIO5 #D1
mode:
input: true
name: "Pulse Meter"
unit_of_measurement: "gal/min"
internal_filter: 50ms
internal_filter_mode: EDGE
accuracy_decimals: 1
timeout: 10sec
icon: "mdi:gauge"
filters:
- multiply: 0.0748052
- debounce: 50ms
total:
name: "Total"
accuracy_decimals: 3
unit_of_measurement: "gal"
device_class: water
state_class: total_increasing
filters:
- multiply: 0.0748052
- debounce: 50ms
```
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_