Hello all,
I have connected a reed switch to two different GPIO to have both a binary_sensor
and a pulse_meter
, as I wanted to troubleshoot strange pulse/min nb I was getting.
The original issue is resolved (although unclear what happened, I didn’t change anything) but I discovered a new, smaller one: pulse_meter
is counting slightly more pulses than binary_sensor
.
binary_sensor
is perfectly correct after 10000 pulses, when comparing with the meter.
pulse_meter
has 13 pulses too much. That’s 0.1% error, so it’s no big deal, but since the binary_sensor
is perfectly correct, I feel like there’s an easy software solution to this and I want to research it.
Currently my main suspect is the fact that the meter wheel sometimes leaves the reed switch closed for a longer period of time when the meter wheel stopped with the magnet facing the reed switch.
Any reason this could cause the pulse_meter
to count two pulses instead of one?
I checked, there was roughly 20 instances where this happened within these 10000 pulses. This doesn’t really align with the 13 additional pulses unfortunately.
Any other idea what could cause the pulse_meter
to count one pulse too much?