Kasa devices and Home Assistant - Integration now broken due to firmware update
Hello everyone,
I created this post to raise awareness around TP-Link's recent changes affecting Home Assistant users:
https://www.home-assistant.io/integrations/tplink/
Those who use Home Assistant consider it irreplaceable.
Arguably, Home Assistant offers the most complete feature and integration suite vs any competing power user home automation platform today.
It would be in the top right corner if there was a "Gartner Magic Quadrant for Home Automation Platforms".
Some of my personal use cases that were easily build-able because of Home Assistant:
-
I use Home Assistant + my Kasa devices + my continuous blood glucose monitor to wake me up in the middle of the night when my blood sugar levels go low (e.g. turn on my bedroom lamps and lights when my blood sugar is below safe levels).
-
I control all my house fans in the summer per-room with localized temperature sensors in each room of my house
-
I turn my RGB lights red or blue if my insulin is approaching an unsafe temperature (freezing damages insulin).
The recent firmware changes completely break the sole reason I bought my TP-Link Kasa devices.
I fell in love with the Kasa product line's quality, price-point, electrical testing certifications and the open integration with Home Assistant.
Amazon reviews, YouTube videos, podcasts and community posts gave me comfort to invest heavily into the Kasa ecosystem.
With Kasa, I felt confident I would have a rock solid device from a big brand to use with Home Assistant.
I was an early adopter of WeMo and have since passed them on as gifts to others - I can't ask for them back now.
The few WeMos I still have work perfect with Home Assistant.
I've never felt worried about a firmware update breaking how my WeMos integrate with Home Assistant as Belkin understands Home Assistant use cases and the values users get from Home Assistant.
Belkin was victim to typical IoT security anti-patterns (e.g. unsigned firmware updates), but over the years has subsequently hardened their WeMo offering and still allow local control.
Users like myself have invested hundreds into TP-Link products (and my recommendations to friends have resulted in them spending hundreds).
We also (in good faith) allowed cloud connectivity (providing TP-Link with analytics data). I am now blocking all of that cloud connectivity.
Here are some community posts. It's only a matter of time before this gets picked up by HackerNews or another big tech site.
-
https://community.home-assistant.io/t/tp-link-hs110-smart-plug-disappears-after-latest-firmware-update/244229
-
https://twitter.com/TPLINKUK/status/1328687659133399043
-
https://alerts.home-assistant.io/#tplink.markdown
-
https://community.tp-link.com/en/home/forum/topic/236268
I strongly encourage TP-Link to work with the Home Assistant community in good faith to resolve this problem.
Other vendors like Phillips, Belkin WeMo, IKEA, etc. all understand the value of power users pushing the home IoT space forward and have not disrupted the local control capabilities of their products.
Some recommendations:
-
Publish a secure local API for Kasa devices
-
Allow for users at their discretion to opt-in / enable legacy versions of the port 9999 based API / old local control mechanism in the meantime
-
-
Create a more secure implementation of the initial configuration mechanism (e.g. that does not use port 9999)
-
Publish firmware release notes as per industry generally accepted practices
-
Allow for opt-in beta testing of firmware
-
Publish CVEs for vulnerabilities discovered as per industry generally accepted practices
I hope this post raises some more awareness for us Home Assistant users now left with 15+ "broken" devices!
Thanks for reading this!
I've lost sleep over my now broken smart home and am trying to constructively work on a solution!
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
MikeMM wrote
I found that TP-link is not allowing local API after sending them MAC addresses anymore. They pretty much said 'look for github solutions'. I couldn't find anything that would work straight out of the box so I created my own repo. For anyone having the same issues you can check it out here:
https://github.com/michalmoczynski/homeassistant-tplink-integration
it's not local API - still using Kasa Cloud, but better than nothing.
More devices types will be added soon.
@MikeMM Awesome work on this! How is the latency vs the local API?
- Copy Link
- Report Inappropriate Content
@WirelessForEver unfortunately I have never had a chance to use a local API, as I only migrated to HA recently. For me it's 1s-1.5s delay between the request in HA and the light reaction. That may be longer if the token is out of date and needs to be requested as that's an extra call, but I will most likely automate refreshing the token.
It's also pretty early stage of the project (altho it is working pretty well so far) so there may be some updates to it.
- Copy Link
- Report Inappropriate Content
There has been some progress made on supporting the new protocol here:
- Copy Link
- Report Inappropriate Content
can you please also send me downgrade firmware of HS300? Thanks.
I've upgrade my HS300 to newest firmware and can not communictae with home assistant. It bothers me.
- Copy Link
- Report Inappropriate Content
Hello@monkchou HS110/HS100 UK V4 are the only models being affected so far, as statement here. Can you still control HS300 on Kasa APP in local network, and control HS300 when mobile phone is on LTE mobile network or non-local Wi-Fi? Please confirm HS300 is still working in Kasa app, then you could add it again in HA. I suggest that you could navigate in Home Assistant forum for some further help.
- Copy Link
- Report Inappropriate Content
@roryd I am in this exact situation. I just bought from ebay a few devices of which some had the v1.1.0 firmware :(
- Copy Link
- Report Inappropriate Content
Information
Helpful: 20
Views: 56188
Replies: 86