I use binary_sensor and pulse_meter for my gas meter. The gas meter gives me a pulse every 10 liters. I count these pulses with a binary_sensor to derive my hourly and daily energy counts. To get the actual power of my gas heating I use the pulse_meter. The inverted time difference between two falling edges is proportional to the power (energy / time).
My setup works perfectly for 99.9% of the time. But in rare cases there is an false extra pulse of the pulse_meter. Has anyone an idea what’s going wrong here?
I do not know your hardware. There are other threads here that deal with spikes; and discuss, in addition to pull up resistors, using capacitors. I use a pulse meter for wind and find spikes despite my pull up. Capacitors next.
My HA-Hardware is a RPi 4 with 8MB RAM. My gas meters reed contact input has an RC circuit of 4k7 / 20µF followed by an 74HC14 schmitt trigger to eliminate noise and glitches. I think the signal is okay. Otherwise I would see a binary_sensor state change . . .