fishbigger / TapoP100

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

Some P100's can no longer be controlled by PyP100 #127

Closed StephenBerlin closed 11 months ago

StephenBerlin commented 11 months ago

I've seen the other issues posted in which people recently have had trouble connecting to their devices. My issue might be a little different, not sure.

I have several P100's. Some of them are hardware version 1.20.0 with up-to-date firrmware 1.4.18... other P100's are newer hardware 2.0 with up-to-date firmware 1.2.1. The former still work fine with PyP100. The latter no longer work. When I call plug.handshake(), I get this:

File "/home/stephen/.local/lib/python3.10/site-packages/PyP100/PyP100.py", line 129, in handshake encryptedKey = r.json()["result"]["key"] KeyError: 'result'

In my python script that uses the PyP100 module, nothing has changed... the only thing that's happened (I think) is the firmware on some devices was upgraded, likely the hardware 2.0 devices.

StephenBerlin commented 11 months ago

I should say, I can still control the devices just fine from the Tapo app.

StephenBerlin commented 11 months ago

Sorry, I see my error message is the same as another that was marked as a duplicate of 123. Please, please fix. Closing.