-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding Tapo P115 fails with Server response doesn't match our challenge #133164
Comments
Hey there @rytilahti, @bdraco, @sdb9696, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) tplink documentation |
Could you post more logs including the earlier log message which includes |
I'm receiving the same error message when trying to setup a new P115 plug using the updated Tapo app with third party compatibility enabled. I have multiple working TP-Link Kasa plugs but this is my first TP-Link Tapo plug. Everything works in both Kasa and Tapo apps for iPhone. I can sucessfully add Tapo cameras (C120 & C325WB) in HA via the TP-Link Smart Home integration, but none of the new P115s will work even thou they are detected (have also tried to add them manually via IP). When I connected the new P115 plugs to my Tapo app via bluetooth on my iPhone it did successfully complete a firmware upgrade process, current version is 1.1.3 Build 240523 Rel.175054 |
Digging through the logs in HA there is nothing else with the IP nor DISCOVERY. Do I need to enable some other debug? |
My previous understanding was that you should be seeing those as long as the debug mode was enabled on the integration page (and that you had restarted homeassistant after turning it on), but if not, you can modify your homeassistant logger configuration to include |
This is all I'm seeing now after enabling debug and restarting HA
|
How did you provision the device? It says |
Its being discovered. I also tried doing directly with add device and then entering IP address. Results the same. Same issue on #113137 but no clear resolution on that. I did try rebooting the device by pulling power and that did not help. |
I had a similar issue with one of my smart plugs. Try removing it from the Tapo app and then completing an hard reset by holding the power button on it for 10 seconds until it blinks a green flashing light. Once it has done this, re-add it to tapo app and then try adding it to HA again. I think on my plug it hadn't synced the username/password correctly and doing the hard reset seemed to resolve this. |
I just did this on 1 of 3 new plugs and it fixed my problem, same prompt for username & password but it worked this time, thanks for the 101 suggestion! |
Odd, its not working for me. It never blinked green only blue? Remove from app, it resets on its own. Hold down for 10 seconds and it blinks blue fast then goes to orange/blue. Re-set up in app, same error in home assistant after. It fails so fast its almost like its not even trying to hit Tapo cloud auth before it fails. |
Looks like blue is correct for the p115: https://www.tapo.com/uk/faq/30/ mine was the p100. |
My experiences were different, but all sucessful. I do not have the Matter (BETA) installed but still have the Third-Party Compatibility On in the Tapo app, I haven't tried turning it off yet). Plug 1 = I removed from Tapo app, held the button for 10 secs and it powered up my device (e.g. reset to on). It popped up in my app to add, but I ignored and setup manually via Bluetooth instead. During setup it detected a previous configuration and asked if I wanted to reuse or discard. I chose discard and completed setup normally. When I returnned to Home Assistant I had to enter email address and password (not username) and it worked! Plug 2 = Similar process but never mentioned previous config or disgard, and honestly I didn't notice any green lights, just blue & orange under my finger. When I returnned to Home Assistant I had to enter email address and password (not username) and it worked! I just clicked add on the detected things, not via Integration or IP like others have suggested. Plug 3 = Similar process, but this time no discard option either and I wasn't prompted for username & password in Home Assistant. This time I just clicked add and it asked me to confirm the area. I'm good to go! |
Are these 115s or another model? |
Ok so I got 1 working using the methods that @dhilltx pointed out!
Here is the interesting thing. When setting these up in the app. When it discovers them on its own, it shows an image of a European style plug either P105A or TP10 NOT the P115. I think that perhaps its discovering them as a wrong device in Tapo app and apply some sort of other config?! Possible GDPR protection maybe or something? When telling it the specific model its the correct image during setup. That's the only thing I can think of. |
I can confirm I saw a foreign recepticle icon in the app auto detection also, glad you are up and running! |
Same issue except with a bunch of P100's. This fix worked perfectly as described above.
Home Assistant then allowed plugs to join with no user/password errors. |
i tried these steps and had no luck with my HS200 & HS220 |
I have the same Issue sadly.
No luck so far, I still get that weird Error... And can't get my 4 Plugs to work... |
I did the same and I can't integrate my tapo plug (P115M) with home assistant. |
Did you manually hit the plus sign and choose the exact model of your plug and connect to it that way? Do not use the auto discovery to add it. |
I got it to work! - Though I'm not sure what fixed it. I haven't changed anything at all, haven't reset my Password, haven't reinstalled anything and so on. The only thing I changed: I always added my Mail-Adress in HA "Non-Case-Sensitive" (because it always worked that way) After I tried it Case-Sensitive (like it was shown in the Tapo App): Worked instantly... Very weird. |
This is a very good observation. For most of the devices, the username/email address is hashed when sent to the device, so the casing matters and So to anyone who is getting this error, please make sure that your e-mail address uses the same casing as your account does. |
where in HA did you make it "Non-Case-Sensitive" ? |
for me it has no importance. |
I have the same issue with P110M in AU. Firmware is 1.2.3 and listed as compatible but fails authentication every time I try to add it. Is anyone working on this issue and the camera issues with the same sort of behaviour? |
was able to get my kasa devices working in HA by putting the first letter of my email in caps |
I tried with the capital first letter of email as this has worked before.....but its not working now for me. |
I logged out of both Tapo and Kasa aps on my iPhone and logged back in. I did a hard reset of the device and re-added to Tapo app. I then let HA discover the device and connected it without issue using my email address and password all lower case as per the Tapo app account. So there ya go....clear as mud. The only thing I suggest is that maybe after doing the install in Tapo and updating firmware.....remove the device and re-add it to the Tapo app and then try HA. |
Just wanted to thank you for posting this! I previously connected my first of two P115 plugs without any issue a month ago. Of note, that FW was on 1.1.2 Build 231215 Rel. 114615 and I did NOT allow a FW upgrade. I just now tried to install my second plug. I connected it to the Tapo app and updated the FW to 1.1.3 Build 240523 Rel. 175054. Then I was met the same blockade that everyone else here is reporting: Invalid authentication: Server response doesn't match our challenge on ip 192.168.x.xxx. Removing the device and immediately auto-adding it back didn't work. I'm not sure if the FW update caused this hurdle. I previously did NOT have the Tapo Labs 3rd-Party compatibility turned on for the first plug and it worked fine. I turned it on while going through the madness of trying to get the second plug working. But this by itself was insufficient to get the integration to work. Capitalizing the username email also did nothing. I used your Plug 1 technique and added it back manually with bluetooth and all of a sudden the integration worked. |
Thanks for your insights to find out potential reasons for this issue. @sdb9696 updated the documentation in home-assistant/home-assistant.io#37091 that will hopefully help others when encountering this issue :-) |
The problem
Receiving an error when attempting to add P115 Plug. I have other models working fine.
Invalid authentication: Server response doesn't match our challenge on ip
This issue has the same error as #132526 which was opened for cameras.
DEBUG
What version of Home Assistant Core has the issue?
core-2024.12.2
What was the last working version of Home Assistant Core?
core-2024.12.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
tplink
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tplink/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: