Skip to content

HackerBundle_Code chapter15-case_study_iot iot_light_demo.py #9

Description

@Marcseb

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 myemail@gmail.com -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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions