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

HackerBundle_Code chapter15-case_study_iot iot_light_demo.py #9

Open
Marcseb opened this issue Oct 25, 2023 · 0 comments
Open

HackerBundle_Code chapter15-case_study_iot iot_light_demo.py #9

Marcseb opened this issue Oct 25, 2023 · 0 comments

Comments

@Marcseb
Copy link

Marcseb commented Oct 25, 2023

Hi,
something may have changed in the Tapo API because the script in subject (running under the virtual environment py3cv3) does not work anymore.
Doing the following command that ran two months ago:
python my_iot_light_demo.py --ip-address 192.168.1.139 -e [email protected] -p mypassword --type plug

I am now getting the return:
Traceback (most recent call last):
File "/home/username/DEV/RP4CV/HackerBundle_Code/chapter15-case_study_iot/my_iot_light_demo.py", line 38, in
device.handshake()
File "/home/username/.virtualenvs/py3cv3/lib/python3.10/site-packages/PyP100/PyP100.py", line 129, in handshake
encryptedKey = r.json()["result"]["key"]
KeyError: 'result'

Has someone encountered the same issue, and found a solution ?
Thanks in advance

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

1 participant