Closed Smoot178 closed 9 months ago
Hi, same here...
Same here (P115)
Solved in 2.13.0 with automatic retry
On 2.13.0 I'm seeing something very similar. When I upgrade from 2.11.0, two of my L530B lights show the error "Failed setup, will retry", with the hover text "not all arguments converted during string formatting". Other lights of the same model continue working just fine.
When I remove one of the non-functioning light devices and attempt to re-add it, I see this error in the debug log:
2024-02-04 11:04:25.383 ERROR (MainThread) [custom_components.tapo.config_flow] Failed to setup cannot connect
Traceback (most recent call last):
File "/config/custom_components/tapo/config_flow.py", line 192, in _get_first_data_from_api
(await tapo_client.get_device_info())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/api/tapo_client.py", line 92, in get_device_info
return await self.execute_raw_request(get_info_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/api/tapo_client.py", line 78, in execute_raw_request
return (await self._protocol.send_request(request)).map(lambda x: x.result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/protocol/klap_protocol.py", line 49, in send_request
response = await self._send_request(request, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/protocol/klap_protocol.py", line 59, in _send_request
new_session = await self.perform_handshake()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/protocol/klap_protocol.py", line 104, in perform_handshake
seeds = await self.perform_handshake1(new_local_seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plugp100/protocol/klap_protocol.py", line 176, in perform_handshake1
"Server response doesn't match our expected hash on ip %s but an authentication with blank credentials matched"
TypeError: not all arguments converted during string formatting
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/tapo/config_flow.py", line 119, in async_step_user
device_data = await self._get_first_data_from_api(tapo_client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tapo/config_flow.py", line 199, in _get_first_data_from_api
raise CannotConnect from error
custom_components.tapo.errors.CannotConnect
Device info:
Puzzlingly, the lights that continued working show exactly the same device info as above.
Software info:
Has anyone had any success with this? I'm not able to add any of my P100 or P110 and just get "Invalid authentication: Server response doesn't match our challenge on ip" any time I submit my login details when getting to add a device
Same issue here. It was fine intiially, but after I switched the device's WiFi network and changed its name, I am no longer able to set up the device again.
have the same problem, getting error message:
Invalid authentication: Server response doesn't match our challenge on ip 192.168.1.xxx
Budgiebrain994I also have the same problem as you. did you solve it?
Budgiebrain994I also have the same problem as you. did you solve it?
Yes, I solved this issue.
I reset my Tapo/TP-link password in their app, and used the new password to log in through Home Assistant again. (I had to delete and re-add the integration.) It worked.
Also, don't let the auto-discovery system add your device! Go manually into TP-Link, scroll down and tap "add device". On the setup page, don't add a host, just tap Submit and use those ones discovered.
Also, don't let the auto-discovery system add your device! Go manually into TP-Link, scroll down and tap "add device". On the setup page, don't add a host, just tap Submit and use those ones discovered.
This is what worked for me. Don't do any of the "easy" add options, going into Add Device > Plugs > selecting P100M and letting it search for the plug worked every time.
For me nothing but changing the password on Tapo app worked. To make it easier, and not to re-configure all devices after changing password, I just set the new password to the same old password in Tapo app. This somehow (maybe because Tapo server invalidates all active sessions after changing password) made the HA integration work again without need to re-configure older devices.
Hmm, I've just set up Home Assistant for the first time (coming from just using Google for controlling my devices which they all worked fine with). All my bulbs are generating this same error and none of the fixes suggested here seem to work (although I'm not sure how to stop the auto-discovery mentioned above yet). I have a mix of 510 and 530 bulbs. My TP-Link plugs all worked fine, but they're the older Kasa branded devices so that's probably why.
Edit: Came back a few days later and now all devices are connecting fine. I changed nothing so maybe just a caching issue with the bulbs/cloud after changing the password?
@p-afraz suggestion above was the winner for me. Changed password from current to current allowed HA to immediately Add my TP115 outlets. Didn't need a reboot or anything. Thanks.
Home Assistant Core 2023.12.3, Supervisor 2023.12.0, Operating System 11.2, Frontend 20231208.2 Tapo Controller 2.12.2 Tapo S500D 1.1.0 Build 230906 Rel. 141935
Unable to add my first Tapo device. Receiving log entry:
Also seeing the following: