TP-Link offers way to add local API back

This solved for me too. I think this is ideal fix for nabu casa users who have google assistant integration. Follow the link from @tarheelz unlink your lights from your Kasa account and put them on guest. Then delete and reinstall home assitant integartion fro TP Link Kasa. Not full control both by HA and google home voice within house.

@system Hello, can you read this thread created by @MCLF

Does this mean tp-link HS110 V4 1.1.0 have a chance to work with Home Assistant again?
Thank you for your help:

Feedback from TPLINK

TP-Link: Good day. Since the beta firmware has been stopped pushing already, there is no more beta available now. And We're also planning to push a more secure cloud API in the future before upgrading a more secure local communication authentication method on all Kasa devices. At that time, other third-party platforms/applications can register a developer account on our official website and integrate with us through our more secure APIs. If possible, Please wait for a while for the later official firmware. For more details, please refer to this link: https://community.tp-link.com/en/smart-home/forum/topic/239364 Thanks for your understanding and support.

What a shameful company, I will never buy from them again.

1 Like

awesome! this works for many of my tp-link devices.

the following models and versions all are now working.

Model: KL130, Hardware Version: 1.0, Software Version: 1.8.11
Model: HS105, Hardware Version: 1.0, Software Version: 1.5.6
Model: HS105, Hardware Version: 4.0, Software Version: 1.0.2
Model: HS200, Hardware Version: 2.0, Software Version: 1.5.5

the following require a cloud account and no longer work.

Model: KP400, Hardware Version: 1.0, Software Version: 1.0.15
Model: HS107, Hardware Version: 1.0, Software Version: 1.0.10

note that most of these devices were upgraded after i re added them using a private account (no account).

@tarheelz thank you for your perseverance and being motivated to mention this idea. theres too much info about what isnt working, and only your one single post about what dos work.

thanks

I just built a house and had 72 TP-Link Kasa switches installed. Some single pole, 3-way, and dimmers. All 72 have worked flawlessly in HA without the cloud (I have them on a separate VLAN blocked from WAN). They are also crazy fast! I have a few automated to turn closet lights on when the closet door is opened (binary sensor using ESPHome). They turn on so fast that the wife thinks that someone left the closet light on.

I’m just using this code in my configuration.yaml.

tplink:
  discovery: false
  switch:
    - host: 192.168.2.83
    - host: 192.168.2.125
    - host: 192.168.2.133
    - host: 192.168.2.249
.........
2 Likes

Thanks for this post, definitely saved me some time. I just bought an outdoor 2 outlet Kasa EP40 today, only to get it on my network and realize that the Home Assistant TP-Link Kasa integration wasn’t seeing it. My first clue should have been that the only way the Kasa app would let me get the device on the network was to sign up for an account. I found a few options to skip the account setup, but ultimately forced me to create a cloud account to configure that device type. Once I had it on the network, I tried the Home Assistant integration, but it didn’t find any devices. At first I assumed it was because I run a separate IOT VLAN, but then started reading through all of these threads to see they seem to be pulling away local access options.

On the bright side, I was able to specify the integration and host in the configuration.yaml as suggested by @bphillips921 which is working for now. I am a bit concerned about whether it will continue to work, but it’s the only Kasa device I have and for $20 I’ll just leave it integrated until it breaks. Hopefully TP-Link comes through on this, but I won’t likely buy any more until I know for sure.

If it helps anyone, my device info shows

  • Model EP40
  • Hardware Version 1.0
  • Firmware Version 1.0.2

configuration.yaml

tplink:
  discovery: false
  strip:
    - host: 192.168.5.186

Hmm, interesting :wink:

Just make sure I understand: if you had your plugs in the Kasa app, you probably first removed them from there so they would be disconnected from the TP-Link cloud, right ?

Then, you say you put them in a separate VLAN such as to block them from the internet. I get that, but I am not familiar with setting up VLANs :upside_down_face:… How do you configure this VLAN ? I guess this is router specific (I am on an Ubiquiti EdgeRouter), just trying to understand the general approach!

EDIT: got it working :smiley: As all my plugs had already static addresses, I just tried your method with one plug and it worked! Didn’t need to deregister it from the Kasa app, nor to set up a VLAN. Now I may still want to go the VLAN way and to dump the Kasa app to avoid trouble, I guess…

1 Like

They were all new plugs/witches that hadn’t been adopted yet. I’m sure you could factory reset each switch by holding down the small horizontal button on the bottom left.

I use a Unifi Dream Machine Pro, I set up the VLAN in there with the help of that community. I’m far from an expert, although it wasn’t too tough. Just make sure it’s a “Corporate” VLAN so the devices can talk across VLANs. Then I set some firewall rules under Firewall>LAN IN to block traffic on the VLAN. My VLAN is called “NOT” and my HA IP is 192.168.1.100, here are the rules I set

3 Likes

Thnx :smiley: Will give it a shot!

And many thanks for finding this out… :+1: :clap:

I submitted a PR to make cross-network discovery work, but so far it’s been ignored.

Just curious if you use your TP-Link stuff with a voice assistant like Alexa or google home?
I assume if the devices are prevented from connecting to the internet the voice assistant skills will not work. Thx

I use the Google assistant integration in HA to control the tp-link lights. It works great!

1 Like

Do you use the same header of “switch” for your dimmers?

Nope, adding a dimmer would look like.


  switch:
    - host: 192.168.2.83
    - host: 192.168.2.125
    - host: 192.168.2.133
    - host: 192.168.2.249
  dimmer:
    - host: 192.168.2.100
1 Like

@tarheelz thank you very very much for sharing. Almost wrapped plug and sent it back to the store, it stopped working with HA today…
Now, in local mode it works with HA!!!

1 Like

So your TP-Link Kasa 3-way switches work with the config as well??? I’ve held off on getting the 3-way switches thinking they wouldn’t work without the Kasa app.

Yep, the 3 ways work too

1 Like

Awesome, thanks!
Sorry, one last question. I’m assuming you assigned the i.p. addresses through the Kasa App first, then removed them from app? Sorry if that’s a dumb question, didn’t think there was an alternate way to initially assign them an i.p.

I used the app to adopt the switches. I just used the IP address that the router gave the switches. I got into the router to get the IP addresses. Then I set the IP to static in the router. I didn’t delete the switches from the app.

Being new to Home Assistant I came across this problem with some of my TP-Link plugs especially the KP105 HW ver1. It could not be seen by HA through the TP-Link intergration. I then came across this thread and I did not really find a solution here. I started looking through the TP-link site and found that a lot TP-link equiptment could be controlled through SmartThings. I gave it a try even though it said it did not actually support the KP105. Made a SmartThings account linked my Kasa account to it and now all my TP-link equiptment can be seen and controlled in HA with SmartThings.
Here is the link I followed for instructions on how to do it. I hope it helps other people also.

https://www.tp-link.com/uk/support/faq/2556/