Closed barryflower closed 4 years ago
If you clone this repo, run python3 setup.py sdist && pip install dist/sonoff-python-0.1.tar.gz
it'll work fine. I think the developer has fixed the issue in-repo but hasn't pushed a release up to PyPi.
Thanks Xiol. That worked!
Hi, great initiative. WOuld be good to get it a little more robust. In running your suggested code after install using:
which is successful and then if I run the following test code:
I get the following error:
I have tried uninstalling the package and linking directly tothe sonoff.py file which partially works , (i.e. it can read the available devices and get their states) but I then get an error from websocket as per the following when the code tries to change the switch state:
Appreciate your help as this is a really useful tool/concept and if I can get it working will help me a lot!
Cheers Barry