TP-Link Kasa HS103 Stopped working with 2023.11

Hi All,

I am running the homeassistant/home-assistant docker image. I recently was upgraded to 2023.11 (using latest tag) and my TP-Link Kasa HS103 switch stopped working, unavailable. I attempted to re-setup the integration but it was always giving me cannot connect to host during the setup flow regardless of whether I specified the host or left it blank to auto-discover. I have no tplink section in my configuration. I downgraded my image to 2023.10 and was able to get it set up again. I would like to stay on the latest tag instead of hardcoded to 2023.10. What has changed with the Kasa integration?

My switch still supports local connection as it is on an old firmware version: HS103 firmware version 1.0.3

No problem in my case.

Hmm looks like python-kasa was bumped from 0.5.3 to 0.5.4 in the latest release: Bump python-kasa to 0.5.4 for tplink by rytilahti · Pull Request #103038 · home-assistant/core · GitHub

It looks like version 0.5.4 introduced some changes to the way devices are discovered and connected to. I’ll open an issue on the python-kasa repository. Possibly related to Add support for discovery from within a docker container · Issue #517 · python-kasa/python-kasa · GitHub

@EndUser Are you running in homeassistant in docker, and if so, what image version are you running?

I use HA Yellow Box.

  • Core2023.11.1
  • Supervisor2023.10.1
  • Operating System11.1
  • Frontend20231030.1

Created the issue here: Discovery/Connect broken when upgrading from 0.5.3 -> 0.5.4 · Issue #543 · python-kasa/python-kasa · GitHub

Seems like HA Yellow Box uses Home Assistant OS which isn’t running in docker. Just based on the code changes and your setup I wouldn’t expect you to see any issues. Thank you for the clarification!

I can report that I’m having the same issue with 2023.11 and adding a Kasa smart switch HS 103

I am running the OS in a virtual machine And cannot connect to the device when entering the host information.

Would love to have a fixed since I use these for Holiday lights.