I have a sliding glass door in front of my engineering cabinet in my basement.
but as it works moslty of the time i cant see how this is making any avoidance.
can anyone help me out, what is wrong ?
here is also a screendump of the water at now, and at the moment im not using any water.
I am not clear on what the error is. Are you just getting spurious pulses?
I would go into fault finding mode. I would get the log screen up (in ESPHome dashboard ) and then turn a tap on. Check the log screen to see whether you get a pulse when you are expecting it.
If you are still getting pulses when the water is NOT running then I am assuming your wiring need to be checked. Is the wiring long? Is it screened? Have you used a capacitor to remove spikes? Turn off pull-up and try a different resistance. Try a different pin. They are not all the same
Do you have a leak! there is a lot of posts on pulse counter and meter you might want to check for all the knowledge
I also saw an impossibly large number of pulses when I was testing my setup. It usually happened near the end of a water run - within a few seconds of closing a faucet. I figured it had to do with the floating values so I added the same “pullup: true” but it didn’t fix it. I currently have it working with these additional lines. I haven’t messed with it once I got it working, so I’m not sure which of these actually fixed it. The only other difference from your code is that I’m using pin number GPIO5.
thank you i will try this out !
i just moved the glass slide door, and untill now no mistakes, tomorrow i will let it stay on and see oif any issues. can it be that the wifi is making some noice when sending trough a glass door and sent wrong numbers ?
I don’t think your wi-fi has anything to do with it. If you view the live logs I believe you’d see the large number of pulses being reported by the ESP itself, which is strictly coming from the ESP and/or the pin and pulse sensor, which has no relation to the wi-fi signal it is sending. Double-check your wiring connections to make sure they are tight.
What sort of pulse/flow sensor are you using? Please do report back your findings as it seems that there’s a lot of interest lately in reporting on water usage in HA and people are struggling to get it working. I wish we had something similar to the HA Blueprints for ESPHome!
It looks like the power supply could be the cause of the extra pulses. I also initially had issues with an esp32 I was using to connect to a BLE radon meter and found that it was very sensitive to what power supply I used.
i hvae one module, that is not making any noise at all, and i have tried change a charger from one of the other modules to the working one, and the working one is still not make any noice,
I have two LDR modules.
One have i soldering directly at the D1 MINI Shield (working one)
the other is solered to the D1 MINI directly and then a cable on 30cm connected to the LDR module and then set on the meter.