dash-button icon indicating copy to clipboard operation
dash-button copied to clipboard

Same event click intercepted multiple times

Open puppinoo opened this issue 5 years ago • 2 comments

Hi, Thanks a lot for this elegant solution. I'm testing the listen.py on my LEDE router and it seems to work fine (dont forget to add the new Amazon url: dash-button-eu-aws-opf.amazon.com in your dnsmasq or whatever you're using!). My only issue is that the click event is captured multiple times in a row at a very brief distance. I solved using a deltatime logic (ignore the new click if (actualtime-lasttime[mac_clicked]<=200ms) but itì's a pretty nasty hack. Is it just my issue? Can it be fixed?

Thanks. Pino.

puppinoo avatar Mar 14 '19 22:03 puppinoo

Well, forget about it. My 2 buttons seem dead now. I guess there is a counter or some kind of protection in the FW which is triggered after too many failed connections or some other unuasual behaviour. Basically now led stays solid blue and can't sniff any traffic so I guess they are dead. It was short but fun so thanks anyway.

puppinoo avatar Mar 15 '19 18:03 puppinoo

EDIT: Forget about forgetting! Basically my 2.4 ssid on my LEDE router had an option called WMM enabled ([PRO-TIP to tuya and similar owners testing on OpenWRT / LEDE FW]: ALWAYS disable this option on 2.4ghz ssid before you try registration!). It always gave issues with alll IOT registrations (tuya etc etc). I disabled the option and the buttons reset correctly.

puppinoo avatar Mar 15 '19 21:03 puppinoo