core: Tp-link Kasa devices stopped working
The problem
Hi,
I have been using Tp-link Kasa integration for a long time. It has suddenly stopped working.
What version of Home Assistant Core has the issue?
2023.8.4
What was the last working version of Home Assistant Core?
Not Sure
What type of installation are you running?
Home Assistant OS
Integration causing the issue
TP-Link Kasa Smart
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: config_entries.py:1250
First occurred: 31 August 2023 at 16:46:45 (175 occurrences)
Last logged: 08:23:19
Config entry 'Living Room Lights KS220M(US)' for tplink integration not ready yet: Unable to connect to the device: 192.168.1.63:9999: [Errno 104] Connect call failed ('192.168.1.63', 9999); Retrying in background
Config entry 'Master Bedroom 2 KL125(US)' for tplink integration not ready yet: Unable to query the device 192.168.1.33:9999: Connection lost; Retrying in background
Config entry 'Living Room Lights KS220M(US)' for tplink integration not ready yet: Unable to query the device 192.168.1.63:9999: [Errno 104] Connection reset by peer; Retrying in background
Config entry 'Fan HS103(US)' for tplink integration not ready yet: Unable to query the device 192.168.1.96:9999: [Errno 104] Connection reset by peer; Retrying in background
Config entry 'Master Bedroom 2 KL125(US)' for tplink integration not ready yet: Unable to query the device 192.168.1.33:9999: [Errno 104] Connection reset by peer; Retrying in background
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 4
- Comments: 20 (9 by maintainers)
@home-assistant close
This should be fixed in the latest HA release 2024.02
I have the same problem as you (@sweharris), but I believe the issue is different from this issue’s OP. I have created a new issue for this: #103977
I’m seeing a similar issue, but I don’t know if it’s the same. I recently updated my docker container from 2023.10 to 2023.11.2 and now the Kasa integration broke. The devices are in “Failed setup, will retry” state.
I can see, in the debug logs, that get_sysinfo is being successful (I’ve masked some data)
I can also see UDP traffic being successful:
(yeah, the timestamps are different 'cos I captured them at different times).
So I’m not sure if I’m seeing the same problem or if this is new.
With https://github.com/python-kasa/python-kasa/pull/528 I’m able to break UDP and/or move the device to the edge of wifi range and still connect the devices successfully
Still no luck with this. Some of the devices came back on their own last week intermittently and now back to none of them working.
In both cases, nothing changed except HA updates being applied to latest versions as applicable.