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

Tapo P100 connection issue #18

Open
sachinpatil280 opened this issue Jan 17, 2024 · 1 comment
Open

Tapo P100 connection issue #18

sachinpatil280 opened this issue Jan 17, 2024 · 1 comment

Comments

@sachinpatil280
Copy link

Hi, I tried running the your code with my username, password and IP.
Device Type: Tapo P100
Hardware version: 2.0
Firmware Version: 1.2.1

I am getting below response:

Traceback (most recent call last):
File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\power_control.py", line 7, in
p100.handshake() # Creates the cookies required for further methods
^^^^^^^^^^^^^^^^
File "C:\Users\xviewla\OneDrive - Konecranes Plc\Desktop\CodeBase\TapoP100-main\PyP100\PyP100.py", line 136, in handshake
encryptedKey = r.json()["result"]["key"]
~~~~~~~~^^^^^^^^^^
KeyError: 'result'
Session: <bound method Response.json of <Response [200]>>
Session: {'error_code': 1003}

Process finished with exit code 1

@almottier
Copy link
Owner

almottier commented Jan 23, 2024

Hello,
It looks you are still using the original code and not the one from this fork. There is no line 136 in PyP100.py

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

2 participants