KL125(US) goes unresponsive periodically (local only)
Hi,
My KL125s have been having intermittant problems. At first I noticed that they were going "unavailable" many times each day according to the Home Assistant Logbook. I started looking into it and noticed some other people having issues where if the Kasa product didn't connect to Kasa servers the device would attempt to reset itself which caused the "unavailable" status. My first attempt at fixing this was to re-provision some of the bulbs locally and outside of the Kasa app. I used kasa-python to do this. That seemed to fix the problem for a couple weeks, however it has started happening again. Many of the periods of unavailability are 5 seconds exactly, however I just had one this morning when shutting off the lights in a room that was 1:06, so it's inconsistant. What's weird is that it works 100% for a couple weeks then has frequent (like 10+ each day) status reports of "unavailable".
I reached out to @Wayne-TP after reading https://community.home-assistant.io/t/tplink-devices-constantly-disconnect-reconnect-but-only-when-i-block-them-solved/620727/15 and than https://community.tp-link.com/en/smart-home/forum/topic/638558, before I realized that "fix" reffered to the KP125, not KL125. The issue however seems to be the same in symptoms. Wayne suggested I start a new thread here. Thanks Wayne!
My enviroment is this:
Home Assistant Operating System (HAOS) is the primary controller
Network:
KL125 on seperate VLAN that has no direct access to internet. HAOS can open connections to the VLAN.
KL125 config:
- 2 of these are associated with the Kasa app and when "available" can be controlled either via the Kasa app or HAOS, even though they themselves are blocked from the internet. I assume the Kasa app supports a local connection when available.
- 1 of these is provisioned locally and not associated with the Kasa app.
Troubleshooting:
I've tried rolling back to a prior version of HAOS in case a recenty update caused the issue. That made no difference. I've also tried the suggestion to "unbind" within kasa-python that is suggested in the HA Community link above. That did not work:
Got error: SmartDeviceException("Error on cnCloud.unbind: {'err_code': -2001, 'err_msg': 'module not support'}")
I'm considering routing the servers the bulbs are attempting to a local server as it's my understanding they're just looking for a response, sort of a "ping" to check connectivity, however I'd prefer not to get into that as it seems this something that could be solved more elegantly.
Thank you so much!