Skip to content
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

TP-Link devices sporadically unavailable after some time #122802

Closed
dinan5 opened this issue Jul 29, 2024 · 20 comments
Closed

TP-Link devices sporadically unavailable after some time #122802

dinan5 opened this issue Jul 29, 2024 · 20 comments

Comments

@dinan5
Copy link

dinan5 commented Jul 29, 2024

The problem

Hello - Can we please re-open this issue? after a power cycle of 6 plugs, the messages subside for a few hours but then reappear sporadically. No where near the volume previously, but still occurring none-the-less.

What version of Home Assistant Core has the issue?

2024.7.3

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

Logger: homeassistant.components.tplink.coordinator
Source: helpers/update_coordinator.py:344
integration: TP-Link Smart Home (documentation, issues)
First occurred: 3:38:06 PM (1 occurrences)
Last logged: 3:38:06 PM

Error fetching xx.xxx.xxx.193 data: Unable to connect to the device: xx.xxx.xxx.193:9999:

Example YAML snippet

No response

Anything in the logs that might be useful for us?

What additional log data do you need?

Additional information

No response

@home-assistant
Copy link

Hey there @rytilahti, @bdraco, @sdb9696, mind taking a look at this issue as it has been labeled with an integration (tplink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tplink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tplink Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tplink documentation
tplink source
(message by IssueLinks)

@OldManOfTheSea69
Copy link

OldManOfTheSea69 commented Jul 30, 2024

I have also started to experience a similar problem. It appears to be associated with the device receiving a different ip address via DHCP. Example below which shows the error containing the old ip address and Tapo showing the new ip address. I’ve tried all of the normal restarts but I don’t really want to delete and re-add all of my Tapo devices and recreate all of the automations etc.
IMG_2181
IMG_2182

@sdb9696
Copy link
Contributor

sdb9696 commented Jul 30, 2024

@dinan5 what model of plugs are these? Regarding the logs can you enable debug logging for the integration and upload them.

@githubrdonefun
Copy link

This is also happening to me. It asks me to authenticate to the cloud service again if I restart. Logging in fixes it temporarily.

@home-assistant home-assistant bot changed the title TP-Link Smart Home - Error fetching xx.xxx.xxx.xxx data: Unable to connect to the device: xx.xxx.xxx.xxx:9999: TP-Link devices sporadically unavailable after some time Aug 1, 2024
@s55ma
Copy link

s55ma commented Aug 1, 2024

same ...

@Ali229
Copy link

Ali229 commented Aug 2, 2024

Not sure if I have the same issue but I have LB110 bulb that stops being available both on home assistant and Kasa app. I also have two Smart Plugs - no problem with them.

@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@rytilahti
Copy link
Member

rytilahti commented Aug 16, 2024

@OldManOfTheSea69

I have also started to experience a similar problem. It appears to be associated with the device receiving a different ip address via DHCP. Example below which shows the error containing the old ip address and Tapo showing the new ip address. I’ve tried all of the normal restarts but I don’t really want to delete and re-add all of my Tapo devices and recreate all of the automations etc.

That might be a completely separate issue, but is your homeassistant configured to use both of the networks? If so, the discovery should automatically update the IP address to the config entry. You can manually trigger the discovery by going to the add integration page, start adding a new tplink device, and leaving the host field empty. It will automatically run discovery on all configured network interfaces.

@github-actions github-actions bot removed the stale label Aug 16, 2024
@ronyoung
Copy link

ronyoung commented Aug 18, 2024

I am experiencing my TP-Link devices going up and down like an old man socks every 20-30 seconds. This has been going on for a couple of days for unknown reasons. All I get in the logs are each one of the TP link devices is "unavailable" .
Is there anything that I need to do like uninstall the TP link integration or something else that would stop this sporadic behavior?

@Happyrobot33
Copy link

I will concur that I have been having the same issue, sockets will just randomly kick themselves as unavailable. However the interesting part is that they also become unavailable in the kasa app, so it maybe be a TP link issue? unless something with the integration is making it drop that connection to tplink too

@ronyoung
Copy link

This afternoon I did a factory reset of my Home Assistant Green and restored from a backup 5 days ago which I perceived was before I tried something that essentially bricked HA.

While HA now runs faster, the TP-Link devices are still randomly becoming unavailable. Unlike Happyrobot33 above, the devices that are currently not working in HA still work with the Kasa app on my phone.

Help!

@andreabafile
Copy link

andreabafile commented Aug 24, 2024

To me this issue is happening almost every time I reboot HA.
The only solution found is to unplug the Tapo devices and replug them. Then they're immediately available again.
It's driving me crazy.
To be clear, on the Tapo app everything is working fine.

image

@NuGundam
Copy link

I have been getting the same issue too, it's been driving me nuts because I have motion sensors tied to a lot of the switches and randomly they fail to turn on or off. Wifi signal is good, factory reset them all at least twice, and moved them to a different AP.

@palros
Copy link

palros commented Sep 4, 2024

I am new to HA and the only thing i cant get to work is my Tapo plugs. They simply will not show up, even if i give the IP address. I even bought a HUB to see if that was the issue. It simply will not detect and i have 11 tapo devices.

@rytilahti
Copy link
Member

So there are probably different problems reported in this issue. Anyway, stability issues with devices that require authentication should be fixed in the next release (the update cycle does not contact the cloud anymore, #124930). Feel free to test the beta release and report back if this is now fixed.

@Happyrobot33
Copy link

So there are probably different problems reported in this issue. Anyway, stability issues with devices that require authentication should be fixed in the next release (the update cycle does not contact the cloud anymore, #124930). Feel free to test the beta release and report back if this is now fixed.

What is mentioned in that PR actually sounds almost exactly like the issue ive been having so hopefully that fixes it

@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@AV0uu
Copy link

AV0uu commented Sep 19, 2024

Unfortunately the issue was not resolved with the latest update. Kasa devices, especially the in-wall outlets are constantly going offline.

@github-actions github-actions bot removed the stale label Sep 19, 2024
@yuisheaven
Copy link

I did not have any problems at first but when re-initializing my devices because I was swapping to a multi-account environment, the Tapo and Kasa Hubs also updated their firmware and since then, nothing is working reliable anymore. I am having multiple disconnects daily and for multiple hours.
Looking at the logs and my router, the devices are even in the wifi when stating not reachable, so it doesnt seem to be a pure wifi problem.
I assume that it might have to do with some kind of rate limit though as I feel like the Tapo Hub and Kasa Hub only make those reliability problems as long as my home assistant tp-link integration is running. I had it disabled today and had no issues with the Hubs..
I'll try to see if it really is that way or if that's just because the Tapo App won't notify me when the Hubs go offline

@sdb9696
Copy link
Contributor

sdb9696 commented Sep 26, 2024

This is issue is quite old and the original reporter has not responded to the request for more information. Since it was raised, a fix has been released to stop querying for the latest device firmware which was a major cause of stability issues. I will close this issue and request that anyone still having issues with device connections raise a new issue and fill in the issue template with as much info as possible, including debug logs. Many thanks.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests