fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
566 stars 138 forks source link

Cannot connect to Tapo P110 #134

Closed Alfredsche closed 8 months ago

Alfredsche commented 8 months ago

After firmware update it is not possible to connect to Tapo P110 pip install git+https://github.com/almottier/TapoP100.git@main updated, but login problem still persits. Firmware 1.3.0 Build 230905 Rel. 152200

realhuno commented 8 months ago

Yes, i can confirm. Not working anymore.... with node-red and the Tapo Api..... Unexpected Error Code: 1003

baishi commented 8 months ago

Exactly the same problem here, was working like a charm until Firmware 1.3.0 Build 230905 Rel.152200

sjparle commented 8 months ago

think I'm having the same issue, my program now fails on plug.handshake(), was working fine last week

plug.handshake() #Creates the cookies required for further methods
^^^^^^^^^^^^^^^^

File "C:\Users\sean\AppData\Local\Programs\Python\Python311\Lib\site-packages\PyP100\PyP100.py", line 129, in handshake encryptedKey = r.json()["result"]["key"]


KeyError: 'result'
Addams666 commented 8 months ago

+1

V01ee commented 8 months ago

+1 same problem here:

File "/usr/local/lib/python3.11/dist-packages/PyP100/PyP100.py", line 129, in handshake encryptedKey = r.json()["result"]["key"]


KeyError: 'result'
weaster007 commented 8 months ago

Same here, do you guys think this can be fixed?

R4ykoo commented 8 months ago

+1 same problem with the firmware update

Blafy commented 8 months ago

Same here, do you guys think this can be fixed?

Using the fix of @almottier, the issue is solved, see #128

weaster007 commented 8 months ago

Same here, do you guys think this can be fixed?

Using the fix of @almottier, the issue is solved, see #128

Thanks a lot with this: pip install --force-reinstall git+https://github.com/almottier/TapoP100.git@main It worked perfectly again.

Alfredsche commented 8 months ago

For me it is still not working after installing. Installating ended successful (pip install --force-reinstall git+https://github.com/almottier/TapoP100.git@main) but problem persists. I tried with Linux (Raspbian) and Windows 10. Failure message of Python script: Failed to initialize protocol AuthProtocol Traceback (most recent call last): File "C:\Users\AS\AppData\Roaming\Python\Python311\site-packages\PyP100\PyP100.py", line 32, in _initialize protocol.Initialize() File "C:\Users\AS\AppData\Roaming\Python\Python311\site-packages\PyP100\auth_protocol.py", line 110, in Initialize raise Exception("Failed to authenticate") Exception: Failed to authenticate Error: {'error_code': 1003} Failed to initialize protocol OldProtocol Traceback (most recent call last): File "C:\Users\AS\AppData\Roaming\Python\Python311\site-packages\PyP100\PyP100.py", line 32, in _initialize protocol.Initialize() File "C:\Users\AS\AppData\Roaming\Python\Python311\site-packages\PyP100\auth_protocol.py", line 244, in Initialize result = self._request_raw("handshake", {"key": public_key}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\AS\AppData\Roaming\Python\Python311\site-packages\PyP100\auth_protocol.py", line 173, in _request_raw raise Exception(f"Error code: {data['error_code']}") Exception: Error code: 1003

WouterGritter commented 8 months ago

Same here, do you guys think this can be fixed?

Using the fix of @almottier, the issue is solved, see #128

Thanks a lot with this: pip install --force-reinstall git+https://github.com/almottier/TapoP100.git@main It worked perfectly again.

Can confirm this works! Thanks a lot!

langstroth2 commented 8 months ago

Can confirm the fix works, thank you. I had to download and install the two updated code files manually on to the Pi - couldn't get pip to do the install.

realzoulou commented 8 months ago

Confirm also that https://github.com/almottier/TapoP100 (0.1.4) works

Alfredsche commented 8 months ago

Yes, now it is working for me, also. Thank you

V01ee commented 8 months ago

Same here, do you guys think this can be fixed?

Using the fix of @almottier, the issue is solved, see #128

Ty I confirm this works with the Firmware 1.3.0 Build 230905 Rel. 152200