fishbigger / TapoP100

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

error code 1003 on handshake - P110 on firmware 1.3.0 buld 230905 rel 152200 - python 3.10 on windows #136

Open dauheeIRL opened 8 months ago

dauheeIRL commented 8 months ago

Hi,

in PyP100.handshake() after the following code: r = self.session.post(URL, json=Payload, timeout=2) error_code is returned as 1003

in ERROR_CODES dict -1003 is for bad JSON format

got any ideas? I'm assuming its a firmware update as all plugs stopped working on the same day approx 2 weeks ago

also I would move up the try to just after the session post to properly capture the error

Thanks

AlexXZero commented 8 months ago

I found fixed version here: https://github.com/almottier/TapoP100/blob/main/PyP100/PyP100.py Also it looks like this repo has last update a year ago, so I'm not sure if it will be officially supported here.

BTW this issue looks like duplicate of https://github.com/fishbigger/TapoP100/issues/128

dauheeIRL commented 8 months ago

Thanks, really appreciated. That was it