Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to Tapo P110 #134

Closed
Alfredsche opened this issue Nov 26, 2023 · 15 comments
Closed

Cannot connect to Tapo P110 #134

Alfredsche opened this issue Nov 26, 2023 · 15 comments

Comments

@Alfredsche
Copy link

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
Copy link

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

@baishi
Copy link

baishi commented Nov 27, 2023

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

@sjparle
Copy link

sjparle commented Nov 27, 2023

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
Copy link

+1

@V01ee
Copy link

V01ee commented Nov 27, 2023

+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
Copy link

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

@R4ykoo
Copy link

R4ykoo commented Nov 28, 2023

+1 same problem with the firmware update

@Blafy
Copy link

Blafy commented Nov 28, 2023

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

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

@weaster007
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

langstroth2 commented Dec 3, 2023

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
Copy link
Contributor

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

@Alfredsche
Copy link
Author

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

@V01ee
Copy link

V01ee commented Dec 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests