-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost communication with TP Link Kasa Plugs after firmware update #43088
Comments
Same thing happened to me this morning |
It's bizarre. I've even just moved them to running local with static IP's, still nothing. Light bulb is still working flawlessly though, so weird. |
I'm having the same issue as well on some of my HS110 switches.. Seems to be these don't work, firmware reported in HA; Firmware: 1.0.4 Build 191111 Rel.143903 I've hit the update firmware in the app, some updated, but im not sure which ones - however looking at a device that has issues it says it's on Firmware Version 1.1.0 (hardware version 4.1) and not 1.0.4 as reported in HA. So it looks like a firmware upgrade borked something. The ones that work are on hardware version 2.1, firmware 1.5.10. |
I wonder if TP Link have pushed a firmware update overnight, which has borked some devices... |
Just done a simple nmap on the devices, the ones that work have port 9999 open, the ones that don't have port 80 open. I don't know if this was the case when they were both working. Starting Nmap 7.70 ( https://nmap.org ) at 2020-11-11 11:23 GMT Starting Nmap 7.70 ( https://nmap.org ) at 2020-11-11 11:23 GMT |
Same issue here. TP Link Smart Plug HS110, HW Version 4.1, Firmware Version: 1.1.0, running the latest home assistant release. Using NMAP I see that port 80/TCP is open. My second TP Link smart plug - HS100, HW Version 2.1, FW version 1.5.10 is working perfectly via HA. Using nmap I see that port 9999/TCP is open |
That seems to match up with my devices too. Like you though, I couldn't say if that was the case before we started having problems. |
I'm seeing this on HS100 devices as well as HS110. Tried restarts, removing integration and re-adding but obviously nothing working. 4 of my 8 devices are working, seems consistently the same devices, but I can't find any difference between those and the missing ones. |
What is the firmware version for your devices that are working vs the ones not? Im thinking maybe TP Link has pushed a FW update that broke the integration. |
HS110 working - one on 1.2.6 and one on 1.5.10 HS100 not working - 1.1.0 |
Glad to hear it's not just me 😅 been tearing my hair out this morning thinking it was an issue on my network! Here's hoping it's a simple/easy fix! |
Seems like the v1.1.0 firmware may be the culprit. My HS110 on V1.1.0 is the one not working as well. |
I thought I had broke my DNS again 😂 Interestingly it seems the Hardware Version may play into the Firmware Version. I have a few HS110 plugs:
Guess it's time to add these to the growing list of devices I don't allow access to the internet 😞 EDIT: Updated with status of disconnected plugs |
Also worth noting that the "broken" plug wouldn't connect in Kasa until I updated the app. |
Same symptoms here. One HS110 with HW 2.1 and FW 1.5.7 still working, but another HS110 with HW4.1 and FW1.1.0 stopped working last night. |
The "broken" devices have a responsive web server on port 80, which claims to be "Server: SHIP 2.0" |
Same symptoms & w/ same timeframe also. 6x UK HS100's Working without issue via Kasa app. |
Interestingly enough, mine still work (both via HA and app): Looking through here, it seems the issue only/mainly affects hardware version 4.1? |
I think it's just the firmware version 1.1.0 that is causing the problem. |
Any way to revert back to the older firmware? |
I can confirm the same has happened here too, all firmware version 1.1.0. |
All of my normal switches (HS200)s are offline, but my dimmers (HS220) are online. Sometimes I will get a couple of the HS200s back after an update to HA comes out, but as soon as it needs to be reset after the update I get only the dimmers back. |
As I rely on this integration working to automate my “dumb” dehumidifier, I’ve created a workaround via Alexa to control it. I’ve created a helper toggle that is used in a binary sensor value template exposed to Alexa. Then Alexa controls the tp link plug via the Kasa skill when the state of that binary sensor changes. It works the same way and with no real delay, but it’s the long way around and I’ve lost the current and wattage reporting capabilities of the native integration. |
@rytilahti or @TheGardenMonkey, any chance either of you could have a look into this? Thanks. |
See the linked python-kasa issue, and also python-kasa/python-kasa#42 . It is all very unclear, but from the looks of it (and due to that changelog entry mentioned in the issue) it may be that tplink is blocking this access on newer firmwares. Only thing I can do is to recommend not updating the devices nor connecting them to the cloud, if not necessary. T here were some previous reports that some devices will lose the local access when connected to the cloud, although https://www.tp-link.com/de/support/faq/2707/ is still up. Potentially relevant issue (if the device still works when configured statically): python-kasa/python-kasa#105 Reading through the comments wrt. port 80 being open, see python-kasa/python-kasa#113 (comment) |
All of my I have a few other models I should plugin and check, but everything (27 devices in total) is working as expected. I usually just purchase my switches on amazon but I don't know how to get a V4 specifically to help troubleshoot. |
Potentially related, if someone wants to take a look into potentially downgrading to a previous firmware version (although I'd guess that downgrades are not allowed): https://pceasies.com/blog/2017/12/17/updating-tp-link-smart-plug-firmware-hs110/ |
Having issues as well |
The TPLink integration will switch to using python-kasa/python-kasa#117 has gone a bit stale, but it does provide a path forward to support the new encryption protocols. It needs a champion to finish the work who has one of the affected devices to test with. |
I get this error once per day: Logger: homeassistant.components.tplink.coordinator Error fetching 192.168.55.111 data: Unable to connect to the device: 192.168.55.111 |
Address Resolution Protocol (ARP) is how Ethernet converts an IP address to the MAC address that is used on the LAN. I discovered my HS103 does not respond to ARP queries, so Windows can't figure out where to try to send a packet, gives "Destination Host Unreachable" errors and just stops without sending anything out. In Windows, adding an ARP entry is long and convoluted, must be run in an administrative command window, and yet doesn't solve the problem: Adding a permanent ARP cache entry has been a useful work-around in Linux. There, with the ARP issue wallpapered over, Linux can successfully ping the plug. The command is simpler, too: TP-Link support has been responsive in getting me through the "local only" setup described here, which does work if you're patient enough. When the instructions say "may take a few minutes", they really mean it. Don't interrupt it, thinking that it must be hung up. I will lobby with them that the ARP issue is a network bug (not a "security feature") and should be fixed. plug version info: |
I'm not longer actively working on this. I found the Kasa plugs with the new firmware to be somewhat unreliable - they would reboot at seemingly random times during the night, and when they rebooted they'd come back on with their output off. So, I've removed them from my setup in favour of Zigbee based plugs. Happy to provide what help I can to get this moving along though. |
@SimonWilkinson I’m interested to know what zigbee plugs or strips you’ve transitioned to using. |
I went to a Smartthings Zigbee plugs as they have energy monitoring. I couldn’t find anything else in the UK. I use them with zigbee2mqtt via a conbee. |
For energy monitoring I’m using a mixture of the SmartThings Smart Plug and the Aurora AOne double socket (which requires installation) For just turning things on and off, the IKEA Tradfri plug works a charm. |
I love the Tradfri sockets. Has anyone in this thread that is surely to be closed any moment now for off topic chatting found a good zigbee power strip with 3+ outlets? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I found the solution to integrate my HS100 in HA again. Local setup worked after resetting the Kasa HS100 and following this guide from TP-Link: https://www.tp-link.com/us/support/faq/2707/ Initially I setup a Cloud account, which caused the problems after updating HA. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Just to add I've had my Kasa plugs and bulbs for a couple of years now and only just got round to installing HA. I've used the Kasa app (Android) in the past to update to latest firmware and checked again and it says they're the latest. It detected them fine and have had no issues with them. KL110B HW1.0- Firmware 1.8.11 (UK models possibly. Bought in UK at least) Also, the note about the plugs rebooting at times. I had that early on, particular late and night and all the plugs would switch off and back on again. Since firmware updates I've not had that problem since. I'm pretty happy with them really. Power monitoring on the plugs would be nice but can't have everything. Not about to bin them over that. A lot of this could be hardware specific though. p.s. the workaround link is dead. Or maybe they think it's fixed? https://www.tp-link.com/us/support/faq/2707/ |
Add me to the mix. I have both single and 3 way wall switches, plugs, and various bulb |
Try powerc
Try powercalc https://github.com/bramstroker/homeassistant-powercalc it will allow you to build “virtual sensors” based upon known factors regarding various brands of devices. |
What's the status of Kasa devices in homeassistant? I bought some plugs and switches and I can control them directly using python-kasa by using their IP addresses. But discovery doesn't work so I have to add them one by one by their IP address. Is there another way of doing this? |
@pfps That's off-topic on this issue (which has dozens of participants now getting notified...), so let's keep it off from this. Briefly answering your question, there's no way to do that without editing the source (the upstream lib allows defining the target network so modifying the discovery could work, but it's broadcast so the network needs to be directly connected). |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
WORKAROUND
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
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: