plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
469 stars 69 forks source link

Constant Errors ECONNRESET #246

Open TransRapid opened 2 years ago

TransRapid commented 2 years ago

Is there an existing issue for this?

What happened?

Constant errors in log for power strip despite things working.

What, if anything, has recently changed?

Nothing network wise has changed, and nothing I am aware of has changed since the issue began.

Version

7.0.0

Node Version

14.18.3

Homebridge Version

1.4.0

Which OS/Platform?

Linux/Pi

Relevant log output

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20) {
errno: -104,
code: 'ECONNRESET',
syscall: 'read'

Configuration

Default config.
plasticrake commented 2 years ago

You said nothing recently changed, but you are on v7.0.0 of this plugin which was just released... What happens if you go back to v6? Does that fix the issue?

TransRapid commented 2 years ago

Let me try that. I recall already seeing the error prior, which is why I said nothing had changed.

josh-berlin commented 2 years ago

@plasticrake @TransRapid I am getting similar errors on v7. I tried downgrading to 6.4.0 and the errors are still showing up:

[2/7/2022, 6:05:14 PM] [TplinkSmarthome] [MyQ] {"errno":-54,"code":"ECONNRESET","syscall":"read"}

I also have the default configuration, running homebridge v1.4.0 on my macbook, node version v17.4.0.

TransRapid commented 2 years ago

Yes. Downgrading didn't change or resolve the issue. It seems it's only with the larger power strip.

josh-berlin commented 2 years ago

Oh interesting. I don't have a smaller power strip to test with.

plasticrake commented 2 years ago

Can you tell me what you mean by "constant errors"? Is it every 10 seconds? A few times a day?

josh-berlin commented 2 years ago

I can reproduce this by opening the native Home app to the room where the plug is located. Each time, a new ECONNRESET error shows up in the logs.

plasticrake commented 2 years ago

@jab2109 What model device is this? You said this issue only recently started happening?

josh-berlin commented 2 years ago

@plasticrake Kasa Smart Plug Power Strip HS300. I just set the device up within the last week or so and this issue has been happening since I set it up.

plasticrake commented 2 years ago

@jab2109 I have that same device and I don't have this issue. Can you open a bug report to provide details specific to your issue? It would also be helpful to run homebridge in debug mode and provide the logs for that. I would also try using node v16. The odd-number versions of node are not recommended for production use.

TransRapid commented 2 years ago

HS300 here too. I have a couple HS303 and don’t get that for those devices. It only comes up with the HS300, and my suspicion is that it has something to do with energy monitoring or reporting.

plasticrake commented 2 years ago

@TransRapid Didn't see a response to my question: Can you tell me what you mean by "constant errors"? Is it every 10 seconds? A few times a day?

3ne commented 2 years ago

Having the same issue for quite some time now, I would say a year. I never made an issue since the plugs seem to still work. Configuration is default. Debug attached. New Document.txt

3ne commented 2 years ago

@TransRapid Didn't see a response to my question: Can you tell me what you mean by "constant errors"? Is it every 10 seconds? A few times a day?

It’s random but when it happens it’s every minute or so

plasticrake commented 2 years ago

@3nd if you just see these errors a few times a day that is pretty much normal. These are wifi devices that may go offline temporary due to interference etc. Also when reading power consumption it seems to be an intensive process for these devices and it is slow. And for the power strips with 6 outlets, it requires 6 separate commands to read the values for each outlet, and if the entire device is unresponsive at the time all 6 will cause an error. If you aren't seeing any actual issues with the devices you can ignore the occasional error.

3ne commented 2 years ago

@3nd if you just see these errors a few times a day that is pretty much normal. These are wifi devices that may go offline temporary due to interference etc. Also when reading power consumption it seems to be an intensive process for these devices and it is slow. And for the power strips with 6 outlets, it requires 6 separate commands to read the values for each outlet, and if the entire device is unresponsive at the time all 6 will cause an error. If you aren't seeing any actual issues with the devices you can ignore the occasional error.

Thank you for confirming my suspicions, as I noted I never made an issue since the plugs worked completely fine in the Home app. I'll continue ignoring the error...it does trigger my OCD tho 😁

mven commented 2 years ago

Hi - I'm also experiencing this error. Pasting a snippet of my logs below (DEBUG mode on) and a cursory look points to a socket error. The interesting thing is that the iOS Home app does show if a device is on/off, I just I can't toggle them myself.

Loading logs using native method...
File: /homebridge/homebridge.log

alias":"Office Desk Lamp","status":"new","description":"Smart Wi-Fi LED Bulb with Color Changing","mic_type":"IOT.SMARTBULB","mic_mac":"E848B8554F38","dev_state":"normal","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"active_mode":"schedule","is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"light_state":{"on_off":1,"mode":"normal","hue":0,"saturation":0,"color_temp":2700,"brightness":100},"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":50},{"index":1,"hue":0,"saturation":100,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":100,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":100,"color_temp":0,"brightness":100}],"err_code":0},"host":"192.168.1.116","port":62968,"defaultSendOptions":{"timeout":15000}})
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [Office Desk Lamp] device sysInfo set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Device First Online: [Office Desk Lamp] bulb [8012213D83E6F211EEFAC9EE4D6732C21E556C81] 192.168.1.116 62968
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Adding: [Office Desk Lamp] bulb [8012213D83E6F211EEFAC9EE4D6732C21E556C81]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] Existing Accessory found [8012213D83E6F211EEFAC9EE4D6732C21E556C81] [2b4fc73f-ad68-46e3-8c26-9816bbe599d8] category: LIGHTBULB
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Name]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Name] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [On]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [On] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Brightness]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Brightness] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Color Temperature]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Color Temperature] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Hue]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Hue] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Saturation]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Saturation] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicProps [Consumption]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Office Desk Lamp] setCharacteristicUpdateCallback [Consumption] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] client.startDiscovery(): socket:message From: 192.168.1.195 25289 Message: {"system":{"get_sysinfo":{"sw_ver":"1.0.7 Build 211009 Rel.172044","hw_ver":"1.20","model":"KL125(US)","deviceId":"801271A9E8A2734DD542E942AC0352CC1DA4E819","oemId":"E260847F622C8C11C5CD258C3D0BA048","hwId":"B4AA8A24294C772C6D70D0AFB805FF38","rssi":-48,"latitude_i":360843,"longitude_i":-1153258,"alias":"Living Room floor lamp","status":"new","description":"Smart Wi-Fi LED Bulb with Color Changing","mic_type":"IOT.SMARTBULB","mic_mac":"E4C32A824850","dev_state":"normal","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"active_mode":"schedule","is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"light_state":{"on_off":0,"dft_on_state":{"mode":"normal","hue":0,"saturation":0,"color_temp":2700,"brightness":75}},"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":75},{"index":1,"hue":0,"saturation":100,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":100,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":100,"color_temp":0,"brightness":100}],"err_code":0}}}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] device.constructor({"client":"not shown","_sysInfo":{"sw_ver":"1.0.7 Build 211009 Rel.172044","hw_ver":"1.20","model":"KL125(US)","deviceId":"801271A9E8A2734DD542E942AC0352CC1DA4E819","oemId":"E260847F622C8C11C5CD258C3D0BA048","hwId":"B4AA8A24294C772C6D70D0AFB805FF38","rssi":-48,"latitude_i":360843,"longitude_i":-1153258,"alias":"Living Room floor lamp","status":"new","description":"Smart Wi-Fi LED Bulb with Color Changing","mic_type":"IOT.SMARTBULB","mic_mac":"E4C32A824850","dev_state":"normal","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"active_mode":"schedule","is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"light_state":{"on_off":0,"dft_on_state":{"mode":"normal","hue":0,"saturation":0,"color_temp":2700,"brightness":75}},"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":75},{"index":1,"hue":0,"saturation":100,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":100,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":100,"color_temp":0,"brightness":100}],"err_code":0},"host":"192.168.1.195","port":25289,"defaultSendOptions":{"timeout":15000}})
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [Living Room floor lamp] device sysInfo set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Device First Online: [Living Room floor lamp] bulb [801271A9E8A2734DD542E942AC0352CC1DA4E819] 192.168.1.195 25289
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Adding: [Living Room floor lamp] bulb [801271A9E8A2734DD542E942AC0352CC1DA4E819]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] Existing Accessory found [801271A9E8A2734DD542E942AC0352CC1DA4E819] [9165f9ab-be24-44da-ba4a-572e83f7dcac] category: LIGHTBULB
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Name]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Name] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [On]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [On] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Brightness]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Brightness] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Color Temperature]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Color Temperature] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Hue]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Hue] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Saturation]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Saturation] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicProps [Consumption]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Living Room floor lamp] setCharacteristicUpdateCallback [Consumption] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] client.startDiscovery(): socket:message From: 192.168.1.202 21005 Message: {"system":{"get_sysinfo":{"sw_ver":"1.0.4 Build 210705 Rel.190840","hw_ver":"1.0","model":"KP405(US)","deviceId":"80066DBA128692EACBC1D1E262E01B6C1EE7ECFD","oemId":"E9165433D6D94C1965BE3679A3229F2A","hwId":"5EFDF205FE8736717A16344F608DD9E4","rssi":-40,"latitude_i":360843,"longitude_i":-1153258,"alias":"String lights outlet","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"10:27:F5:9C:7E:82","updating":0,"led_off":0,"relay_state":0,"brightness":75,"on_time":0,"icon_hash":"","dev_name":"Kasa Smart Wi-Fi Outdoor Plug-In Dimmer","active_mode":"schedule","next_action":{"type":1,"id":"00E1310510E7323013E728B313E46929","schd_time":59400,"action":3,"dimmer":{"on_off":1,"brightness":75,"transition_period":1000}},"preferred_state":[{"index":0,"brightness":100},{"index":1,"brightness":75},{"index":2,"brightness":50},{"index":3,"brightness":25}],"ntc_state":0,"err_code":0}}}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] device.constructor({"client":"not shown","_sysInfo":{"sw_ver":"1.0.4 Build 210705 Rel.190840","hw_ver":"1.0","model":"KP405(US)","deviceId":"80066DBA128692EACBC1D1E262E01B6C1EE7ECFD","oemId":"E9165433D6D94C1965BE3679A3229F2A","hwId":"5EFDF205FE8736717A16344F608DD9E4","rssi":-40,"latitude_i":360843,"longitude_i":-1153258,"alias":"String lights outlet","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"10:27:F5:9C:7E:82","updating":0,"led_off":0,"relay_state":0,"brightness":75,"on_time":0,"icon_hash":"","dev_name":"Kasa Smart Wi-Fi Outdoor Plug-In Dimmer","active_mode":"schedule","next_action":{"type":1,"id":"00E1310510E7323013E728B313E46929","schd_time":59400,"action":3,"dimmer":{"on_off":1,"brightness":75,"transition_period":1000}},"preferred_state":[{"index":0,"brightness":100},{"index":1,"brightness":75},{"index":2,"brightness":50},{"index":3,"brightness":25}],"ntc_state":0,"err_code":0},"host":"192.168.1.202","port":21005,"defaultSendOptions":{"timeout":15000}})
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] plug.constructor()
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] device sysInfo set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] plug.dimmer brightness set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] plug.dimmer.emitEvents() brightness: 75 lastState: {"brightness":-1}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] plug sysInfo set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] plug.emitEvents() inUse: false relayState: false lastState: {"inUse":false,"relayState":false}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [String lights outlet] plug.dimmer.emitEvents() brightness: 75 lastState: {"brightness":75}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Device First Online: [String lights outlet] plug [80066DBA128692EACBC1D1E262E01B6C1EE7ECFD] 192.168.1.202 21005
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Adding: [String lights outlet] plug [80066DBA128692EACBC1D1E262E01B6C1EE7ECFD]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] Existing Accessory found [80066DBA128692EACBC1D1E262E01B6C1EE7ECFD] [cca6b083-d6be-40f1-b025-6c5c7010a852] category: LIGHTBULB
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicProps [Name]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] setCharacteristicUpdateCallback [Name] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicProps [On]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] setCharacteristicUpdateCallback [On] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicProps [Brightness]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [String lights outlet] setCharacteristicUpdateCallback [Brightness] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] client.startDiscovery(): socket:message From: 192.168.1.197 10944 Message: {"system":{"get_sysinfo":{"sw_ver":"1.0.7 Build 211009 Rel.172044","hw_ver":"1.20","model":"KL125(US)","deviceId":"80123AAB28A92212C85CF43FF387621C1DA305E4","oemId":"E260847F622C8C11C5CD258C3D0BA048","hwId":"B4AA8A24294C772C6D70D0AFB805FF38","rssi":-50,"latitude_i":360843,"longitude_i":-1153258,"alias":"Master Bedroom Table Lamp","status":"new","description":"Smart Wi-Fi LED Bulb with Color Changing","mic_type":"IOT.SMARTBULB","mic_mac":"E4C32A822D38","dev_state":"normal","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"active_mode":"none","is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"light_state":{"on_off":0,"dft_on_state":{"mode":"normal","hue":0,"saturation":0,"color_temp":2700,"brightness":17}},"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":50},{"index":1,"hue":0,"saturation":100,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":100,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":100,"color_temp":0,"brightness":100}],"err_code":0}}}
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] device.constructor({"client":"not shown","_sysInfo":{"sw_ver":"1.0.7 Build 211009 Rel.172044","hw_ver":"1.20","model":"KL125(US)","deviceId":"80123AAB28A92212C85CF43FF387621C1DA305E4","oemId":"E260847F622C8C11C5CD258C3D0BA048","hwId":"B4AA8A24294C772C6D70D0AFB805FF38","rssi":-50,"latitude_i":360843,"longitude_i":-1153258,"alias":"Master Bedroom Table Lamp","status":"new","description":"Smart Wi-Fi LED Bulb with Color Changing","mic_type":"IOT.SMARTBULB","mic_mac":"E4C32A822D38","dev_state":"normal","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"active_mode":"none","is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"light_state":{"on_off":0,"dft_on_state":{"mode":"normal","hue":0,"saturation":0,"color_temp":2700,"brightness":17}},"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":50},{"index":1,"hue":0,"saturation":100,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":100,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":100,"color_temp":0,"brightness":100}],"err_code":0},"host":"192.168.1.197","port":10944,"defaultSendOptions":{"timeout":15000}})
[2/12/2022, 10:14:21 AM] [TplinkSmarthome.API] [Master Bedroom Table Lamp] device sysInfo set
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Device First Online: [Master Bedroom Table Lamp] bulb [80123AAB28A92212C85CF43FF387621C1DA305E4] 192.168.1.197 10944
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] Adding: [Master Bedroom Table Lamp] bulb [80123AAB28A92212C85CF43FF387621C1DA305E4]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] Existing Accessory found [80123AAB28A92212C85CF43FF387621C1DA305E4] [3e6b200f-40c5-49ce-9631-7a25a1e5a99f] category: LIGHTBULB
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Name]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Name] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [On]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [On] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Brightness]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Brightness] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Color Temperature]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Color Temperature] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Hue]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Hue] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Saturation]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Saturation] 
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicProps [Consumption]
[2/12/2022, 10:14:21 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] setCharacteristicUpdateCallback [Consumption] 
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] get [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicValue [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] get [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicValue [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] get [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] getCharacteristicValue [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] get [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getCharacteristicValue [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] getValue: Invalid Watts: undefined
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] get [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getCharacteristicValue [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] getValue: Invalid Watts: undefined
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Name]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [On]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Brightness]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Color Temperature]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Hue]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Saturation]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] get [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getCharacteristicValue [Consumption]
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] getValue: Invalid Watts: undefined
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] executing deferred getSysInfo count: 2
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [String lights outlet] device.getSysInfo()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [String lights outlet] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.202:21005).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.1.202:21005).getSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TplinkSocket(TCP).createSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TplinkSocket(TCP).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","port":21005,"host":"192.168.1.202","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket: socket:send payload.length 33
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket: socket:send attempting to connect. host:192.168.1.202, port:21005
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] executing deferred getLightState count: 5
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Office Desk Lamp] device.getSysInfo()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Office Desk Lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.116:62968).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.1.116:62968).getSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TplinkSocket(TCP).createSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TplinkSocket(TCP).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","port":62968,"host":"192.168.1.116","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket: socket:send payload.length 33
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket: socket:send attempting to connect. host:192.168.1.116, port:62968
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Office Desk Lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.116:62968).send({"payload":"{\"smartlife.iot.common.emeter\":{\"get_realtime\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Living Room floor lamp] executing deferred getLightState count: 5
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Living Room floor lamp] device.getSysInfo()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Living Room floor lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.195:25289).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.1.195:25289).getSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [3] TplinkSocket(TCP).createSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [3] TplinkSocket(TCP).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","port":25289,"host":"192.168.1.195","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [3] TcpSocket: socket:send payload.length 33
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [3] TcpSocket: socket:send attempting to connect. host:192.168.1.195, port:25289
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Living Room floor lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.195:25289).send({"payload":"{\"smartlife.iot.common.emeter\":{\"get_realtime\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Master Bedroom Table Lamp] executing deferred getLightState count: 5
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Master Bedroom Table Lamp] device.getSysInfo()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Master Bedroom Table Lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.197:10944).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.1.197:10944).getSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [4] TplinkSocket(TCP).createSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [4] TplinkSocket(TCP).send({"payload":"{\"system\":{\"get_sysinfo\":{}}}","port":10944,"host":"192.168.1.197","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [4] TcpSocket: socket:send payload.length 33
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [4] TcpSocket: socket:send attempting to connect. host:192.168.1.197, port:10944
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Master Bedroom Table Lamp] device.send()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.1.197:10944).send({"payload":"{\"smartlife.iot.common.emeter\":{\"get_realtime\":{}}}","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket: socket:error Error: connect ECONNREFUSED 192.168.1.202:21005
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.202',
  port: 21005
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket#destroy(), 
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TplinkSocket(TCP).send() Error: connect ECONNREFUSED 192.168.1.202:21005
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.202',
  port: 21005
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TCP 192.168.1.202:21005 Error: connect ECONNREFUSED 192.168.1.202:21005
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.202',
  port: 21005
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [String lights outlet] device.send() Error: connect ECONNREFUSED 192.168.1.202:21005
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.202',
  port: 21005
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.202","port":21005}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [String lights outlet] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.202","port":21005}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket: socket:close, hadError:true
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [1] TcpSocket: socket:close error
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket: socket:error Error: connect ECONNREFUSED 192.168.1.116:62968
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.116',
  port: 62968
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket#destroy(), 
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TplinkSocket(TCP).send() Error: connect ECONNREFUSED 192.168.1.116:62968
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.116',
  port: 62968
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TCP 192.168.1.116:62968 Error: connect ECONNREFUSED 192.168.1.116:62968
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.116',
  port: 62968
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.1.116:62968).getSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [5] TplinkSocket(TCP).createSocket()
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [Office Desk Lamp] device.send() Error: connect ECONNREFUSED 192.168.1.116:62968
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.116',
  port: 62968
}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [5] TplinkSocket(TCP).send({"payload":"{\"smartlife.iot.common.emeter\":{\"get_realtime\":{}}}","port":62968,"host":"192.168.1.116","timeout":15000})
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [5] TcpSocket: socket:send payload.length 55
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [5] TcpSocket: socket:send attempting to connect. host:192.168.1.116, port:62968
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.116","port":62968}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.116","port":62968}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.116","port":62968}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.116","port":62968}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome] [Office Desk Lamp] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.168.1.116","port":62968}
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket: socket:close, hadError:true
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [2] TcpSocket: socket:close error
[2/12/2022, 10:14:22 AM] [TplinkSmarthome.API] [3] TcpSocket: socket:error Error: connect ECONNREFUSED 192.168.1.195:25289
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.195',
  port: 25289
}
plasticrake commented 2 years ago

@mven This doesn't sound like the same issue please open a bug report here with more detail that includes model info

TransRapid commented 2 years ago

@TransRapid Didn't see a response to my question: Can you tell me what you mean by "constant errors"? Is it every 10 seconds? A few times a day?

At least if not more than every 10 minutes.

[2/14/2022, 10:49:55 AM] [TP-Link Kasa.API] TCP 192.168.1.xxx:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [2/14/2022, 10:49:55 AM] [TP-Link Kasa.API] [Scanner] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [2/14/2022, 10:49:55 AM] [TP-Link Kasa] [Scanner] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [2/14/2022, 10:49:55 AM] [TP-Link Kasa] [Scanner] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [2/14/2022, 10:49:55 AM] [TP-Link Kasa.API] TCP 192.168.1.xxx.9999 Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:640:26) at Socket.emit (node:events:520:28) at TCP. (node:net:687:12) [2/14/2022, 10:49:55 AM] [TP-Link Kasa.API] [Blank1] device.send() Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:640:26) at Socket.emit (node:events:520:28) at TCP. (node:net:687:12) [2/14/2022, 10:49:55 AM] [TP-Link Kasa] [Blank1] {} [2/14/2022, 10:49:55 AM] [TP-Link Kasa] [Blank1] {}

AirBerlin7421 commented 2 years ago

I do also get the same issue with the HS300, ECONNRESET. I noticed though that when the errors started to pop up a few days ago the time between action happening when on the HomeKit app and the smart power strip receiving the signal increased. Any idea?

scottrus commented 2 years ago

I have the HS300 with HomeBridge v1.4.0 and plugin version v7.0.1. I can reliably trigger this error by doing the following:

  1. Configure the 6 outlets into a group
  2. Toggle the group on/off

Usually one or two plugs in the group will fail and the error pops up.

[3/15/2022, 5:12:28 PM] [TplinkSmarthome.API] [Sara Plug 4] device.send() Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
[3/15/2022, 5:12:28 PM] [TplinkSmarthome] [Sara Plug 4] set [On]
[3/15/2022, 5:12:28 PM] [TplinkSmarthome] [Sara Plug 4] Error: read ECONNRESET
[3/15/2022, 5:12:30 PM] [TplinkSmarthome.API] TCP 192.168.1.232:9999 Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
[3/15/2022, 5:12:30 PM] [TplinkSmarthome.API] [Sara Plug 2] device.send() Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
[3/15/2022, 5:12:30 PM] [TplinkSmarthome] [Sara Plug 2] set [On]
[3/15/2022, 5:12:30 PM] [TplinkSmarthome] [Sara Plug 2] Error: read ECONNRESET
[3/15/2022, 5:12:30 PM] [TplinkSmarthome.API] TCP 192.168.1.232:9999 Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
[3/15/2022, 5:12:30 PM] [TplinkSmarthome.API] [Sara Plug 4] device.send() Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
scottrus commented 2 years ago

Review of the bug indicates this is likely a transit error due to wifi or slow devices. Maybe a simple retry mechanism would improve reliability?

maxlapides commented 2 years ago

I am unfortunately also experiencing this issue with my HS300

ShahrumAmiri commented 2 years ago

I'm receiving this same exact error too with only one plug on my HS300. Have there been any fixes or more debug work?

wsd11 commented 2 years ago

I'm still seeing the bug as well, specifically with the HS300 power strip. The errors don't seem to affect calls that turn on outlets, but Scenes seem to have issues. The affected outlets do seem to respond to direct control via HomeKit, though.

OldWorldRaiders commented 2 years ago

I am also getting this with my HS300 strip. I saw there was mention of "eve app" for monitoring, but this is a TP Link. Would that have anything to do with it?

[9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [PC] device.send() Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [Ring] 404 from endpoint https://api.ring.com/clients_api/ring_devices [9/6/2022, 3:14:16 PM] [Ring] Session hardware_id not found. Creating a new session and trying again. [9/6/2022, 3:14:17 PM] [Ring] Found the following locations: [9/6/2022, 3:14:17 PM] [Ring] locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf - Champaign [9/6/2022, 3:14:18 PM] [Ring] Configuring 1 cameras and 2 devices for location "Champaign" - locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory 18ffac73-b2ae-4ad8-a1a2-770e0ae4446a lpd_v2 Front Door [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory e7e92543-5bf2-44a2-a457-6cdc774ff335 chime_pro Living Room [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET',[9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [PC] device.send() Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [Ring] 404 from endpoint https://api.ring.com/clients_api/ring_devices [9/6/2022, 3:14:16 PM] [Ring] Session hardware_id not found. Creating a new session and trying again. [9/6/2022, 3:14:17 PM] [Ring] Found the following locations: [9/6/2022, 3:14:17 PM] [Ring] locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf - Champaign [9/6/2022, 3:14:18 PM] [Ring] Configuring 1 cameras and 2 devices for location "Champaign" - locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory 18ffac73-b2ae-4ad8-a1a2-770e0ae4446a lpd_v2 Front Door [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory e7e92543-5bf2-44a2-a457-6cdc774ff335 chime_pro Living Room [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthom[9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: connect ECONNRESET 192.168.1.46:9999 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) { errno: -104, code: 'ECONNRESET', syscall: 'connect', address: '192.168.1.46', port: 9999 } [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.1.46","port":9999} [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome.API] [PC] device.send() Error: TCP Socket Closed. segment:0 hadError:false at Socket. (/var/lib/homebridge/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:127:19) at Object.onceWrapper (node:events:642:26) at Socket.emit (node:events:527:28) at TCP. (node:net:709:12) [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [TplinkSmarthome] [PC] {} [9/6/2022, 3:14:16 PM] [Ring] 404 from endpoint https://api.ring.com/clients_api/ring_devices [9/6/2022, 3:14:16 PM] [Ring] Session hardware_id not found. Creating a new session and trying again. [9/6/2022, 3:14:17 PM] [Ring] Found the following locations: [9/6/2022, 3:14:17 PM] [Ring] locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf - Champaign [9/6/2022, 3:14:18 PM] [Ring] Configuring 1 cameras and 2 devices for location "Champaign" - locationId: 94759e8e-0245-4444-93a2-fdc88b9f8fcf [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory 18ffac73-b2ae-4ad8-a1a2-770e0ae4446a lpd_v2 Front Door [9/6/2022, 3:14:18 PM] [Ring] Adding new accessory e7e92543-5bf2-44a2-a457-6cdc774ff335 chime_pro Living Room [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"}e.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:32 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [Bose PC Speakers] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [Bose PC Speakers] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] TCP 192.168.1.46:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome.API] [14TB HDD Server] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [9/6/2022, 3:16:36 PM] [TplinkSmarthome] [14TB HDD Server] {"errno":-104,"code":"ECONNRESET","syscall":"read"}

TransRapid commented 1 year ago

Still having the issue here, any way to suppress this so it isn't eating up log space?

[12/10/2022, 3:29:52 PM] [TP-Link.API] TCP 192.168.1.122:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [12/10/2022, 3:29:52 PM] [TP-Link.API] [Seagate] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link.API] TCP 192.168.1.122:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [12/10/2022, 3:29:52 PM] [TP-Link.API] [Seagate] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"} [12/10/2022, 3:29:52 PM] [TP-Link] [Seagate] {"errno":-104,"code":"ECONNRESET","syscall":"read"}

spad13 commented 1 year ago

Still no fix? Plugin worked great until I added a Kasa Smart Plug Power Strip HS300. Multiple ECONNRESET errors in Homebridge log, several times a day since last year.

e-richner commented 1 year ago

Also having the same issue with a HS300: [4/2/2023, 7:13:43 AM] [TplinkSmarthome.API] TCP 192.168.1.221:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' } [4/2/2023, 7:13:43 AM] [TplinkSmarthome.API] [King Unused] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' } [4/2/2023, 7:13:43 AM] [TplinkSmarthome] [King Unused] {"errno":-54,"code":"ECONNRESET","syscall":"read"} [4/2/2023, 7:13:43 AM] [TplinkSmarthome.API] TCP 192.168.1.212:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' } [4/2/2023, 7:13:43 AM] [TplinkSmarthome.API] [Vornado] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -54, code: 'ECONNRESET', syscall: 'read' } [4/2/2023, 7:13:43 AM] [TplinkSmarthome] [Vornado] {"errno":-54,"code":"ECONNRESET","syscall":"read"}

alindsayseismic commented 1 year ago

Same issue. Devices work with Homebridge > Homekit as desired, but Homebridge logs are annoying. Solicited ChatGPT 4 and got the following:

The error you're encountering, ECONNRESET, indicates that the TCP connection between your Homebridge instance and the TP-Link device was unexpectedly closed by the remote end (in this case, the TP-Link device). This could be due to a variety of reasons, such as network issues, device configuration, or even firmware problems.

Here are a few steps to help you troubleshoot and potentially resolve the issue:

  1. Restart the TP-Link device: Unplug the device from the power source, wait for 30 seconds, and then plug it back in. This can resolve any temporary issues that might be causing the error.

  2. Check the network connection: Ensure that both the TP-Link device and the device running Homebridge are connected to the same network. Wi-Fi signal strength can also play a role in connection issues. You might want to move the devices closer to the Wi-Fi router or use a Wi-Fi extender to improve the signal.

  3. Update the TP-Link device's firmware: Check if there's a firmware update available for your TP-Link device. You can usually do this through the Kasa app or the TP-Link website. Updating the firmware can resolve any compatibility issues or bugs that might be causing the error.

  4. Update Homebridge and the TP-Link plugin: Make sure you're running the latest versions of Homebridge and the TP-Link plugin. To update Homebridge and the plugin, you can run the following commands in the terminal:

    sudo npm install -g --unsafe-perm homebridge
    sudo npm install -g homebridge-tplink-smarthome
  5. Check Homebridge configuration: Ensure that your Homebridge configuration is correct, particularly the section related to the TP-Link plugin. Verify that the IP addresses, device names, and other settings are accurate. If you're not sure about the configuration, you can refer to the Homebridge-TPLink-Smarthome repository on GitHub for examples and guidance.

  6. Check for conflicting devices: If you have multiple instances of Homebridge or other smart home hubs on your network, they might be conflicting with each other. Ensure that there are no IP conflicts or multiple instances trying to control the same TP-Link device.

If you've tried these steps and are still experiencing the issue, it might be helpful to share more information about your specific Homebridge setup, TP-Link device model, and network configuration. This additional information could help identify other potential causes and solutions.

apritykin commented 1 year ago

This appears to still be an ongoing issue. I connected my HS300 and sends a error for each outlet (12 total) every 6 mins. No firmware update on the Kasa app, connected my strips to my homebridge via MAC address.

desmondfuller commented 1 year ago

Same issue with HS300 I purchased a few days ago.

Ts451 commented 1 year ago

Same issue (104 errors) with new hs300 on new rip homebridge, also on new rpi hoobs…

dallowbg commented 11 months ago

Same issue with the HS300 I just purchased. Constant alerts for the various plugs on the device.

{"errno":-104,"code":"ECONNRESET","syscall":"read"}

kurktchiev commented 11 months ago

not that it seems to help much but piling on that I just got these and my logs are filled with the above message. What is interesting is that it actually DOES send the command you want it. so say if they are already ON and you turn them OFF from the Home app, they go off, but in Home they still show as ON and from there the strip is no longer controlled and just tossing the error, I have to go back to the kasa app to do anything further.

If you control them directly from Homebridge and just go to the accosories tab and click them on/off it works just fine... something is wonky

Parkie commented 8 months ago

I guess Ill pile on too.. I have 3x Kasa Smartplug HS300's on my Homebridge environment and get these errors throughout the logs. Functionality/control still works just fine but it annoyingly fills the logs.

Would be great if there was a way to suppress it so the logs are readable.

Is there another model thats not KASA thatll work with this plugin. Id drop all 3 Kasas and buy something else.

shaarkys commented 6 months ago

I'm trying to develop new driver for HS300 on Athom Homey and during testing, this error popping up for users. So it's not just HomeBridge related.

unhandledRejection:
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
TCP 192.168.86.142:9999 Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'

A pity there hasn't been any solution on this.

shaarkys commented 6 months ago

Note, seems in my case it was error in the code ... I was calling : getRealtime({ childId: childId }); instead of getRealtime(this.plug, childId); (it's specific to my app, so not sure if it will help to anyone)

LazaroFilm commented 5 months ago

This still happens to me at random. Restarting Homebridge seems to solve it, so it seems to be a HomeBridge or HB plugin issue. When the error is occurring, the TP-Link app can still control the lights.