Help with connecting to Kasa TP-Link Wi-Fi Plug

I am just starting out. I have HA running on rPI 4B and trying to add this Kasa device to be used by HA. It appears that it is not recognized by HA (I don’t see it in the configuration menu). Do I need to edit the yaml file to allow the device to be seen by HA?

I have used the Kasa App to configure this device.

Thank you.

The Kasa integration can be installed with the UI. Depending on how your network is setup, you may need to use configuration.yaml to add the device.

The Kasa Home Assistant documentation outlines all the device types it’s compatible with.

So; I went to Intergrations -> Switch -> TP-Link Kasa Smart -> Plugs -> HS103 which is my device. I can control the switch via the Kasa App and turn it on/off. Also; both the rPI (HA) and the HS103 are on the same local network. The rPI is connected via Ethernet cable and the HS103 via Wi-FI.

Should I expect that the HS103 should be discovered by HA? I have restarted HA several times.

Thanks

Hi,

HA will discover your tp-link devices but only after you manually provide the starting configuration in your configuration.yaml or, like i do, via an include of an separate yaml. You first need to either set static IP for your devices or reserve the IP in your DHCP server. The configuration for HA needs to be specific IP addresses for your devices.

eg: configuration.yaml
!include tplink.yaml

eg: tplink.yaml

discovery: true
light:
  - host: 192.168.2.14
  - host: 192.168.2.15
switch:
  - host: 192.168.2.13

Then after you restart HA should discover the devices & allow you to continue with the integration setup via the UI.

Hope that help.
Cheers
Nick

1 Like

That worked great! Thanks

1 Like