pysonofflan
pysonofflan copied to clipboard
Unexpected error in shutdown_event_loop(): gather() got an unexpected keyword argument 'loop'
- pySonoffLAN version: pySonoffLANr3
- Python version: 3.10.6
- Operating System: Kubuntu 22.04
Description
When using state, on or off commands, I get an error when it is finishing and the command does not return
What I Did
pysonofflanr3 --host 192.168.1.58 --api_key
this is no longer maintained. I have a project built on this which works - https://github.com/dauheeIRL/SonoffSimpleLAN
- pySonoffLAN version: pySonoffLANr3
- Python version: 3.10.6
- Operating System: Kubuntu 22.04
Description
When using state, on or off commands, I get an error when it is finishing and the command does not return
What I Did
pysonofflanr3 --host 192.168.1.58 --api_key on 2023-03-02 18:37:09,566 - info: Initialising SonoffSwitch with host 192.168.1.58 2023-03-02 18:37:09,734 - info: Service type _ewelink._tcp.local. of name eWeLink_10000be334._ewelink._tcp.local. added 2023-03-02 18:37:09,738 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,738 - info: unsolicited update received from switch: off 2023-03-02 18:37:09,738 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,738 - info: State: OFF 2023-03-02 18:37:09,738 - info: None: Connected event, waiting for disconnect 2023-03-02 18:37:09,947 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,947 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,947 - info: State: ON 2023-03-02 18:37:09,947 - error: Unexpected error in shutdown_event_loop(): gather() got an unexpected keyword argument 'loop' ^C Aborted!
I have the same problem and passed it by using the latest one in repository.
Just clone repo and run python setup.py install