Closed 400HPMustang closed 2 years ago
I'm getting the same thing.
Same here. Config runs two/three in row without any issues. Since yesterday I'm getting also TCP timeouts. Ironically just for one of my four HS100 plugs. I don't get it. 🤷🏻♀️
Any update about this? I deleted the plugin as it was unusable.
I haven't had any more instances of the timeouts in my logs that I've seen BUT since I posted this I've removed all but one TP-Link device from my home. I just have one plug left over in my setup.
Looks like this is obviously coming from https://github.com/plasticrake/tplink-smarthome-api. Someone already made a pull request with a potential fix, lets hope this solves the turning off and on again of your TP-Link accessories.
Also suffering from this issue, really hope what the pull request @Wiejeben mentioned would fix this issue. For my situation, it only occurs to one of my switches that could be in a wifi dead zone.
I've been kicking this problem around for a few days after I added an HS300 and everything started timing out. Looking though the debugging (which is mostly in the -api library) I see socket.connect calls being made but the callback never happens because, I assume, the connection is never completed by the HS300. It seems to happen when there's a lot of activity, so perhaps the tplink devices can only handle so many incoming connections at a time, and drop other on the floor if there's too many? I'm testing a hack in a copy of the code currently so see if forcing a one-at-a-time queue when calling devices improves reliability.
Another observation here is that the discovery timer is 10 seconds by default, but the connection timeout is 15 seconds; so when TCP starts acting up on a device, the discovery pings starts up more and more TCP connections because each discovery cycle generates an emeter update per plug (not sure why that code is there, but it is) and these can get stuck timing out. On the HS300 (what I have) this generates 6 sets of calls, one for each plug on the strip. This doesnt seem to be helping things recover. So maybe bumping the pollingInterval to something like 60 seconds might help things.
I wanted to add that I'm having the same problem. Can't seem to identify what leads up to the errors. I only have 2 total devices (both smart outlets) and am only having this problem with one of them.
Going to comment to bump this issue. Seems directly related to the HS300’s on my system. My activity log is littered with these errors. As of right now, I have determined that these errors eventually amass to a point where hoobs actually crashes and everything has to reboot. Has anyone figured anything out as to how to reduce these errors?
Going to close this out since I don't have any TPLink devices on my network anymore.
Expected Behavior
Lights should respond fairly quickly to home kit, turn off and on when triggered
Current Behavior
Lights are sluggish, slow to respond and/or just unresponsive all together
Steps to Reproduce (for bugs)
Add HS100 plugs or LB100 bulbs to Homebridge?
Versions
Configuration
Homebridge Log / Command Output