zigate icon indicating copy to clipboard operation
zigate copied to clipboard

Error when clicking a lot on xiaomi switch button

Open greg95000 opened this issue 4 years ago • 1 comments

When I click on my xiaomi switch button to trigger an action If I'm too fast I get this error in my logs "Fast change detected, delay it for ...". When it happen there is no return to a normal state.

I found the lines to change.

https://github.com/doudz/zigate/blob/master/zigate/core.py#L2980

I tried to remove the condition and it works. Why do we use it? Can we remove it properly? I think the code is making some infinite loop on this condition with multiple thread and the state is never going back to the normal

greg95000 avatar May 02 '20 20:05 greg95000

Fast change detection is buggy, it's safe to disable it

doudz avatar May 03 '20 06:05 doudz