Hi!
I am noticing a flapping input during push-button long-press when using the AC optocoupler addon in this configuration:[Blockierte Grafik: https://smarthome-forum.eu/index.php?attachment/283-4xwhite-led-strip-shelly-png/]The problem goes away if I use the same push-button in a DC configuration without the AC optocoupler.
This seems to be a common problem..
I can work around the the issue in software by configuring a debounce filter with approximately 80ms delay (delayed_off: 80ms when using the esphome firmware).
At a first glance I suspected it to be related to a single diode that rectifies only the positive half-waves of the AC-input. But in this case I'd expect a debouncing filter of approximately 20 ms should be enough.
Any hints about the real reason of this effect?
Is there a simple and clean workaround?
(E.g. by adding a small capacitor (dimensioning suggestions?) after the AC isolator?)
Cheers,
--leo
P.S.: Unfortunately I don't have neither an oscilloscope nor some caps here for further testing.