Open facetheheat opened 2 years ago
That's exactly the reason why I asked to review if it is possible to rewrite the library to connect to routers via API rather than SSH.
The problem is not related with timeout, but with strange behavior of Keenetic routers when they output a login prompt, but in fact do not accept any input for a couple of seconds after that. This causes the library to fail to authenticate since it outputs the credentials instantly when the prompt appears.
@facetheheat can you check your issue with 0.1.2 version?
Yep. Tested with 0.1.2 and all works fine
Hi there, Thanks for useful module. I've the Keenetic Peak KN-2710 with latest firmware v3.7.4 and Home Assistant server connected via wifi. I've enabled HA core plugin to connect in keenetic – keenetic_ndms2. And it won't to connect(mostly). Sometimes it connects well. I've started research this issue and found this module – it used in HA plugin. I've tried to reproduce the issue with this module.
$ cat ndms_list.py
$ while true; do python3 ndms_list.py; done
I've tried to increase connection timeout, but nothing changed.