heythisisnate / nodemcu-smartthings

Connect wired contact sensors and/or motion sensors to SmartThings using a NodeMCU ESP8266
MIT License
64 stars 33 forks source link

Debounce the GPIO #16

Closed Sparticuz closed 4 years ago

Sparticuz commented 7 years ago

Would it be possible or practical (or even necessary) to debounce the status' in software. Maybe only allow open/closed every X milliseconds? I just got my ESP8266 hooked up, getting the status of 6 sensors! But during testing, Sometimes the jumpers would close,open,close,...etc... Resulting in 3 or 4 API calls. I realize this should probably never happen in production. Just wondering if it's worth looking into. 2017-06-11