Lost communication with TP Link Kasa Plugs after firmware update
See original GitHub issueWORKAROUND
https://www.tp-link.com/us/support/faq/2707/
The problem
Lost communication with all TP Link Smart Plugs. Smart Lightbulbs still working as expected. However all works fine on TP Link Kasa App, so I know it’s on the network and working correctly.
Environment
- Home Assistant Core release with the issue: 0.117.5
- Last working Home Assistant Core release (if known): 0.117.5
- Operating environment (OS/Container/Supervised/Core): Container
- Integration causing this issue: TP Link Kasa
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/tplink/
Problem-relevant configuration.yaml
tplink:
discovery: false
light:
- host: 192.168.1.188
switch:
- host: 192.168.1.181
- host: 192.168.1.176
Traceback/Error logs
2020-11-11 10:18:36 WARNING (SyncWorker_0) [homeassistant.components.tplink.common] Unable to communicate with device 192.168.1.181: Communication error
2020-11-11 10:18:36 WARNING (SyncWorker_0) [homeassistant.components.tplink.common] Unable to communicate with device 192.168.1.176: Communication error
Additional information
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:99 (15 by maintainers)
Top Results From Across the Web
new plug won;t update or remote - TP-Link Community
Trying to activate remote and I get error- "Your Device Has No Internet". Trying to update firmware the app tells me is available...
Read more >Firmware update to 1.1.0 broke my local automation
I purchased a pair of HS100 Kasa plugs from Amazon explicitly because I would be able ... Firmware update to 1.1.0 broke my...
Read more >What should I do if my Kasa device (smart plug ... - TP-Link
Step 3. Update the firmware of the Kasa device. Step 4. Ensure Kasa APP is up to date in the APP store or...
Read more >Smart plugs turning themselves on shortly after 7am with no ...
To help exclude the issue, please remove some settings on kasa app besides Schedule: Away Mode/ Scene/ Smart Action and see device turn...
Read more >HS100 stopped working after firmware upgrade - Smart Home ...
It is suggested to try a different wall socket and reset again. If plug itself has no Led at all, it could be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Based on @chriswheeldon work here - https://gist.github.com/chriswheeldon/3b17d974db3817613c69191c0480fe55 and some earlier protocol sniffing I had been doing, I’ve extended python-kasa to support the new protocol. I’ve contributed it as their pull request 117.
With this, Home Assistant should just work with plugs that are set up in “Local” mode (where you configure them from an app without a cloud account connected) and auto discovered. Plugs that are connected to an authenticated cloud account, or those which are configured statically, will need some changes in Home Assistant to support passing a username and password into the Discover.discover call, or the SmartPlug constructor.
Of course, if they’re now downgrading devices, I could have saved myself the effort!
I also suffered from this firmware update breaking my home automation setup last week. Over the weekend I have managed to make some progress on reverse engineering the updated protocol in order to restore interoperability. I can now handshake with my HS110 and issue an encrypted request to get info. Summary:
Here is a proof of concept showing how to handshake and send a request to the device. FWIW It seems fairly unreliable: I get a 403 response to the request for system info about 50% of the time. Would be interesting to try and determine why that is…
https://gist.github.com/chriswheeldon/3b17d974db3817613c69191c0480fe55
@plasticrake would be wonderful to get this integrated into tplink-smarthome-api