fishbigger / TapoP100

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

Handshake failed on P100 with latest firmware (1.4.10) #67

Closed FeverBeaver closed 2 years ago

FeverBeaver commented 2 years ago

Hello,

Got a pair of P100 working fine with older FW (1.2.something from the top of my mind.

I've updated the firmware to latest, and protocol seems to have changed: now the response in PyP100 does not seem to contain JSON, and getting key fails. Expanding response (r) gives a HTML document:

<HTML>
<HEAD>
<TITLE>Forbidden</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Forbidden</H1>

So here we go. Does anybody have an idea? How could I investigate to help going further?

fran0254 commented 2 years ago

were you able to solve it?

FeverBeaver commented 2 years ago

I now know this is not hardware-related. I did reset the plug, still no joy. My test program (Python x64 3.7, Windows 7) works. My test program, copied to a Raspi, works.

I feel dumb.

On my "more elaborate" script, it fails. I'll have to dig why, especially because my calls to TapoP100 are strictly identic.

Thanks.