Open welborn opened 1 month ago
Additional info:
Confirmed all firmware on all bulbs are up to date.
Confirmed that all bulbs appear online in firewall and that all IPs are static and unchanging.
Confirmed signal strength for all bulbs - bulb with the lowest signal (laundry room bulb) gives me the least problems
Hey there @rytilahti, @bdraco, @sdb9696, mind taking a look at this issue as it has been labeled with an integration (tplink
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
tplink documentation tplink source (message by IssueLinks)
Im experiencing the same issue with both my kasa k125 bulbs. I have 4 and they take turns dropping from home assistant but work perfectly fine from the kasa app.
I too have been experiencing issues with the KL125 bulb. since I went from 2024.10.0 to 2024.10.3. Long latency, sometimes minutes for the build to receive. Other times Home Assistant says the bulb and its' sensor is "unavailable", even though the bulb is connected to the network. Other times Home Assistant will show the state of the bulb as off, but it actually on.
Same problem here, have had this issue for a couple of months now. My KL125 bulbs as well as my KL400 light strip constantly appear disconnected on home assistant for seemingly no reason, becoming 'online' and 'offline' at random times for a random duration, despite being connected to their own wireless access point and ssid. The issue has remained even after switching to other access points, setting static addresses, and resetting the lights themselves.
It sounds like your event loop might be blocked or something also is causing the instability.
See the section on Sluggish performance or increased CPU usage
Capture a callgrind when the problem is happening and post it here. The call grind will only show traces of the source code so there is minimal privacy concerns about posting it (unless you are worried about someone knowing which integrations are running)
I can tell you that a fresh reboot does not fix the issue and when I attempt to use the lights the CPU spikes briefly to 100% and returns to it's normal 6 to 7% on my system. The Memory spikes from around 75% to around 95% and does not return to a baseline of 75%.
I have 4 KL125 with the same issue. Most of the time the unavailable is less than 10 minutes in HA but available on the Kasa app.
I have several KL125 bulbs with the same issue. They seem to not stay offline for too long (a minute or two) before they come back online in HA. Whole offline in HA they are still working through the app. They don't all go offline at the same time either, and seems to be random.
I also have a few of those KL125 and I experience the same issue
I have 11 kasa KL125 bulbs and since 2024.10.2 (I skipped 2024.10.0 and 2024.10.1 releases) they've been going offline in HA. In the app they are always online and consistently immediately responsive. The fact that the app works instantly on all bulbs that show offline in HA tells me that this is definitely a HA integration thing.
One person in another thread mentioned changing IPs in dhcp, but I've since migrated all to static IPs.
This is what I see in home assistant. Again, all of these have solid signal to the access point, and are available in the kasa app and instantly respond to changes from kasa.
Some of the behavior I see when using the homeassistant is:
When turning on or off a group of 4 bulbs I see the following behavior
Code for my toggle call
light.office_lights is a group entity containing office light 1-4
Adding log entries - I see a bunch of this over and over with all of my bulbs:
more logs from logbook
Originally posted by @welborn in https://github.com/home-assistant/core/issues/128040#issuecomment-2422964545