TP-Link offers way to add local API back

This is exactly what I did with a new plug the other day, configured it without Internet access and then blocked Internet access in my router before connecting back to the Internet. Works fine so far.

No, you don’t need to hit their cloud when provisioning for the first time.
See my other post in this thread for description of what I did.
wilhelmstroker also verified he did same as I did

1 Like

I’ve got two smart plugs :

  • HS110, hardware 2.1, firmware 1.5.10 -> works well since a long time
  • HS110, hardware 4.1, firmware 1.1.0 -> suddenly stopped working a few days ago

Should I try to find that mythical “beta firmware” ?

Seem like it’s confirmed on this Github issue. There are lots of comments with details and versions.

No, still broken for one plug out of 4

1 Like

Hello Everybody especially @system I have good news.
I can verify that I have regained local control of my HS100 (UK) V4 (firmware 1.1.0) plug by using the python-kasa library.

i.e. From command line on my laptop (debian 10) I can toggle this plug on/off and obtain its state info. This give us a path to updating to HomeAssistant TP-LINK plugin to incorporate the capabilities of the python-kasa lib (or perhaps spinning up new plugin) See my post over on this other thread.

Hey all,

Looking to get a few energy monitoring plugs. Tried Tuya Convert, no go. Now looking at this.

So I should stay away from the TP link as well? none of this works anymore?

Thanks

I can confirm that the python-kasa library at githib (https://github.com/python-kasa/python-kasa) works to control my local tp-link kasa switches (HS-103 and HS-105 US). Looks like we just need a way to integrate the python-kasa library back into Home Assistant to regain control of these switches.

2 Likes

Tuya Convert works well, but a fair few Tuya devices are no longer ESP8266-based, which means they cannot work with Tasmota. Can recommend some UK ones that work for me, if that helps, and the process to convert them is very straightforward. Oh, and with the bonus that once converted, you know they’ll never get killed in the future :slight_smile:

What does this mean?

TP-Link: Hi, the previous affected firmware 1.1.0 for HS110-UK-v4 had been deleted from the cloud server, and currently, no more new plugs could be blocked with the home integrations such as Home Assistant. And We are 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. Thank you very much.

1 Like

This part is especially confusing. Does one developer for, say, HA, need to register, or does every HA user who wants local control need to register?

1 Like

Hi, Why don’t you make it more clear?
I have reached to them many times and they kept telling me only HS110/HS110(UK V4 would be affected and my US plugs would still work.
I did not believe it at first but I do now.
I also noticed that they have stopped releasing the beta firmware and please add that too!!!
So it would save us more time.

I recently (March 2021) ordered two HS200 (US) switches from Amazon. Version levels are:
Hardware = V3
Firmware = 1.1.3, next upgrade:1.1.4

Everything works as expected in Home Assistant. Although this conversation is centered on HS100, it has brought me to ask: Will this firmware upgrade break my HA config/automatons?

Likewise:

HS200 (qty 3) HW=V1, FW=V1.2.5, next upgrade: 1.2.6
HS100 (2) HW=V1, FW=V1.2.5, next upgrade: 1.2.6

Will any of the above firmware upgrades break my HA config/automatons?

For completeness:

KP400 (1) HW=V1, FW=1.0.15 (no upgrade available)
HS105 (2) HW=V1, FW=1.5.6 (no upgrade available)

Update 2021-04-05 (I now see this updated from February)

In the latest Kasa firmware release, we upgraded the local communication authentication method for the two smart sockets HS100(UK)4.1 and HS110(UK)4.1 ONLY (Other models and hardware versions would not be affected) to prevent local communication security risks. As a result, some third-party smart home software and platforms (such as Home Assistant) that use local APIs can no longer communicate with our devices.

…that answers my question above…

I’ll admit that this thread is difficult to follow. To the extent this link is of no help, please delete.

On Friday I started to move my 11 Kasa devices off of the cloud using this procedure: https://www.tp-link.com/us/support/faq/2707/

The “local only” devices work perfectly fine with Home Assistant. (Static IP addresses assigned at router.)

The only issue now is that there is no access to these devices with voice via Amazon Alexa. I hope I can solve this by re-installing Alexa Media Player via HACS.

8 Likes

Thank you tarheelz for this. This got me going and since I use Google Home I just exposed the switches to it and I can turn them on and off with Google voice commands.

1 Like

I have a:

KP400(US)by TP-Link
Firmware: 1.0.15 Build 200825 Rel.111911

And as of a few days ago, no matter what I do, I cant get it to work with HA anymore. All my other Kasa’s work fine though.

I have another KP400(US) that is on firmware Firmware: 1.0.6 Build 200821 Rel.090909 which is still working.

Could my issue be related to this? I know its not one of the 2 affected models but since its running a newer firmware than the one that is sitll working, i am suspect of it.

that solution worked for me.

HS110 hw 1.0 fw 1.2.5

not upgrading the firmware just in case

You can use the hue emulation feature in HA to make available your light and/or switch entities on your local network in a way that Alexa discovers them (without ANY additional skills - including Philips Hue). This will give you voice control of on/off/dimming (but no color) for your devices. If you happen to have an Echo Plus (1st or 2nd gen) or an Echo Show 10 1st gen, you will even have local voice control over these devices.

I believe this is one of the best kept secrets of the Alexa ecosystem. I learned about this feature four years ago when I setup my first Echo (Dot) to allow voice control of my extensive X10 setup. Just successfully tested the local control feature earlier this week as I do have an Echo Plus 1st gen in my collection of Alexa devices. Neither Nabu nor any other cloud or subscription services are required.

1 Like

HI all I am now having a similar issue on my HS200 sires devices. I can only control them with HA if I have an internet connection. This started after updating the firmware.

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.