Tasmota switching via Gpio14

I have configured several Sonoff devices with tasmota to use gpio14 as a switch, and it works great. However, I have one switch that’s really touchy and can end up triggering the relay multiple times when you switch it. Does anyone know if there’s a way to, upon the first-detected toggle, ignore subsequent toggles for, say, 1/2 a second?

Maybe there’s another way to solve this issue that I haven’t thought of. I’d rather do it on the tasmota side than attempt anything in home assistant.

Watch DrZzs youTube Video he point down the right track

I already subscribe to his channel, but I don’t recall this. Can you point me to a particular video?

After much googling, my solution was to use the tasmota command “SwitchDebounce”. It takes an integer value from 40 to 1000, and means the minimum number of milliseconds between registering a state change in the switch.

Default value is 50. I set mine to 500. Problem solved. It was a relatively new command, and most of my other devices are still on Tasmota 5.12, so I had no idea about it until now. Super useful!

1 Like