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

TCP Error #316

Open
1 task done
jhk1620 opened this issue Oct 19, 2023 · 11 comments
Open
1 task done

TCP Error #316

jhk1620 opened this issue Oct 19, 2023 · 11 comments
Labels

Comments

@jhk1620
Copy link

jhk1620 commented Oct 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Getting the error with Kasa Led lighting.

TplinkSmarthome.API] TCP 999.999.9.99:9999 Error: TCP Timeout after 15000ms
999.999.9.999999 {"system":{"get_sysinfo":{}}}
at Timeout._onTimeout (/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)

What, if anything, has recently changed?

None

Version

v7.0.1

Node Version

v7.0.1

Homebridge Version

v4.50.6

Which OS/Platform?

Linux

Relevant log output

TplinkSmarthome.API] TCP 999.999.9.99:9999 Error: TCP Timeout after 15000ms
999.999.9.999999 {"system":{"get_sysinfo":{}}}
    at Timeout._onTimeout (/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:564:17)
    at processTimers (node:internal/timers:507:7)

Configuration

{
    "platform": "TplinkSmarthome",
    "name": "TplinkSmarthome",
    "addCustomCharacteristics": true,
    "_bridge": {
        "port": ,
        "username": ""
    },
    "deviceTypes": [
        "plug",
        "bulb"
    ]
}
@jhk1620 jhk1620 added the bug label Oct 19, 2023
@anthonymkz
Copy link

I am also having this issue with two of my HS210 switches

@anthonymkz
Copy link

Just an update, I was getting this error after about 20 minutes every time I started the plugin. I changed my Timeout to 30 and wait time to 150 in Advanced Settings of the config and so far so good. Not sure which (or both) helped, but I'll update if the error returns.

@jhk1620
Copy link
Author

jhk1620 commented Dec 19, 2023 via email

@anthonymkz
Copy link

You have your settings at UDP not TCP. I would have specified this but your original post says TCP. I haven't gotten this error again since making these changes.

@jhk1620
Copy link
Author

jhk1620 commented Dec 19, 2023 via email

@anthonymkz
Copy link

anthonymkz commented Dec 19, 2023 via email

@jhk1620
Copy link
Author

jhk1620 commented Dec 19, 2023 via email

@jhk1620
Copy link
Author

jhk1620 commented Dec 19, 2023 via email

@jhk1620
Copy link
Author

jhk1620 commented Dec 21, 2023 via email

@wdbrady
Copy link

wdbrady commented Dec 23, 2023

It does not seem to have any functional impact, but is filling up the logs. Maybe add an option to throttle back the logging on these events could be added? I have observed the same issue with the devices appearing dropped from the network, but they do seem available when I trigger the events.

@iceycake
Copy link

I just updated homebridge and the plugs and the smart plug firmware and ran into the exactly issue. In the advanced setting, default is using TCP as transport. Since the timeout error is TCP, I changed to UDP for transport and everything is back as good as old days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants