homebridge-tplink-smarthome icon indicating copy to clipboard operation
homebridge-tplink-smarthome copied to clipboard

TCP Timeout after 15000ms - "emeter":{"get_realtime"

Open slvrscoobie opened this issue 2 years ago • 16 comments

deleted home bridge by accident, but also switched home bridge to a new router. moved to DSM 7 on Synology NAS that runs home bridge and now getting a number of these errors from various things. Noticed it when I was looking at my router settings as I switched from AC to AX router, but ended up going back to old router, still seeing issues. I assume this might be a DSM 7 issue with the DSM 6 home bridge 1.x copied to home bridge for synology 2.0.

Expected Behavior

not to throw codes, and cause home bridge restarts

Current Behavior

Throws tons of these codes

Steps to Reproduce (for bugs)

Versions

  • Node: node --version
  • Homebridge: homebridge --version
  • OS:

Configuration

{ "name": "TplinkSmarthome", "addCustomCharacteristics": true, "deviceTypes": [ "plug", "bulb" ], "platform": "TplinkSmarthome" }


### Homebridge Log / Command Output
[12/29/2021, 10:20:42 PM] [TplinkSmarthome] ResponseError: err_code not zero response: {"err_code":-2001,"err_msg":"Module not support"} command: {"emeter":{"get_realtime":{}}}
    at Object.processResponse (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/utils.ts:219:11)
    at Plug.sendCommand (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/device/index.ts:466:21)
    at Emeter.getRealtime (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/shared/emeter.ts:92:9)
    at refreshEmeterForAccessories (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/src/platform.ts:140:13)
    at async Promise.all (index 7)
    at refreshEmeter (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/src/platform.ts:157:11) {
  response: '{"err_code":-2001,"err_msg":"Module not support"}',
  command: '{"emeter":{"get_realtime":{}}}',
  modules: [ 'emeter' ],
  methods: []
}
[12/29/2021, 10:20:57 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:20:57 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:20:57 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:20:57 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:12 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"system":{"get_sysinfo":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:12 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"system":{"get_sysinfo":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:27 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:27 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:21:42 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:21:42 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:07 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:07 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:32 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:32 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:22:57 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:22:57 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
[12/29/2021, 10:23:22 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime()
[12/29/2021, 10:23:22 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.44.163:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

slvrscoobie avatar Dec 30 '21 03:12 slvrscoobie

complete uninstall and reinstall of home bridge seems to have cleared this.

slvrscoobie avatar Jan 03 '22 14:01 slvrscoobie

annnnnd its back a few days later : 1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] TCP 192.168.44.145:9999 Error: TCP Timeout after 15000ms 192.168.44.145:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] [Dylans Room light] device.send() Error: TCP Timeout after 15000ms 192.168.44.145:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Dylans Room light] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Dylans Room light] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] TCP 192.168.44.247:9999 Error: TCP Timeout after 15000ms 192.168.44.247:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] [Couch lights] device.send() Error: TCP Timeout after 15000ms 192.168.44.247:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Couch lights] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Couch lights] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] TCP 192.168.44.11:9999 Error: TCP Timeout after 15000ms 192.168.44.11:9999 {"smartlife.iot.smartbulb.lightingservice":{"get_light_state":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] [Couch Bulb Middle] device.send() Error: TCP Timeout after 15000ms 192.168.44.11:9999 {"smartlife.iot.smartbulb.lightingservice":{"get_light_state":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Couch Bulb Middle] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Couch Bulb Middle] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Couch Bulb Middle] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] TCP 192.168.44.116:9999 Error: TCP Timeout after 15000ms 192.168.44.116:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] [Basement Lights] device.send() Error: TCP Timeout after 15000ms 192.168.44.116:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Basement Lights] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Basement Lights] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] TCP 192.168.44.243:9999 Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome.API] [Office Ac] device.send() Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Office Ac] {} [1/6/2022, 3:09:48 PM] [TplinkSmarthome] [Office Ac] {} [1/6/2022, 3:10:03 PM] [TplinkSmarthome.API] TCP 192.168.44.243:9999 Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:03 PM] [TplinkSmarthome.API] [Office Ac] device.send() Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:03 PM] [TplinkSmarthome] [Office Ac] emeter.getRealtime() [1/6/2022, 3:10:03 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:23 PM] [myQ] myQ API: Invalid myQ credentials given. Check your login and password. [1/6/2022, 3:10:27 PM] [TplinkSmarthome.API] TCP 192.168.44.141:9999 Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:220:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [1/6/2022, 3:10:27 PM] [TplinkSmarthome.API] [Bedroom Ac] device.send() Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:220:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [1/6/2022, 3:10:27 PM] [TplinkSmarthome] [Bedroom Ac] emeter.getRealtime() [1/6/2022, 3:10:27 PM] [TplinkSmarthome] Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:220:20) { errno: -104, code: 'ECONNRESET', syscall: 'read' } [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] TCP 192.168.44.163:9999 Error: TCP Timeout after 15000ms 192.168.44.163:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] [Freezer] device.send() Error: TCP Timeout after 15000ms 192.168.44.163:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome] [Freezer] emeter.getRealtime() [1/6/2022, 3:10:28 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms 192.168.44.163:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] TCP 192.168.44.70:9999 Error: TCP Timeout after 15000ms 192.168.44.70:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] [Dylan room heater] device.send() Error: TCP Timeout after 15000ms 192.168.44.70:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome] [Dylan room heater] emeter.getRealtime() [1/6/2022, 3:10:28 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms 192.168.44.70:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] TCP 192.168.44.243:9999 Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome.API] [Office Ac] device.send() Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) [1/6/2022, 3:10:28 PM] [TplinkSmarthome] [Office Ac] emeter.getRealtime() [1/6/2022, 3:10:28 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms 192.168.44.243:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7)

slvrscoobie avatar Jan 06 '22 20:01 slvrscoobie

Yup, exact same issue for me. Something must have changed recently to be causing this.

IanAlbinson avatar Jan 13 '22 01:01 IanAlbinson

anything? Im still getting this by the thousands.

slvrscoobie avatar Jan 27 '22 22:01 slvrscoobie

Sharing for comparison. I use a similar config: Homebridge (latest) running in Docker on Synology NAS (DSM 7). I've recently refreshed the Homebridge docker image and have the latest node.js, etc. I have a couple dozen Kasa devices. I am NOT receiving these errors.

EricSabe avatar Jan 29 '22 17:01 EricSabe

Ive been running in debug mode, and it doesnt seem to be running better, not sure why, but I get a lot of these: edit: I do not have the 'energy monitoring' turned on

[1/31/2022, 11:38:41 AM] [TplinkSmarthome.API] client.startDiscovery(): Filtered out: undefined [undefined] (device), allowed device types: (["plug","bulb"]) [1/31/2022, 11:38:42 AM] [TplinkSmarthome] refreshEmeter() [1/31/2022, 11:38:42 AM] [TplinkSmarthome] getEmeterRealtime [Office Ac] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [Office Ac] device.send() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.44.241:9999).send({"payload":"{"emeter":{"get_realtime":{}}}","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.44.241:9999).getSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TplinkSocket(TCP).createSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome] getEmeterRealtime [Dylan room heater] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [Dylan room heater] device.send() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.44.65:9999).send({"payload":"{"emeter":{"get_realtime":{}}}","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.44.65:9999).getSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TplinkSocket(TCP).createSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome] getEmeterRealtime [Freezer] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [Freezer] device.send() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TplinkConnection(TCP 192.168.44.161:9999).send({"payload":"{"emeter":{"get_realtime":{}}}","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] TcpConnection(TCP 192.168.44.161:9999).getSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TplinkSocket(TCP).createSocket() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TplinkSocket(TCP).send({"payload":"{"emeter":{"get_realtime":{}}}","port":9999,"host":"192.168.44.241","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:send payload.length 34 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:send attempting to connect. host:192.168.44.241, port:9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TplinkSocket(TCP).send({"payload":"{"emeter":{"get_realtime":{}}}","port":9999,"host":"192.168.44.65","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:send payload.length 34 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:send attempting to connect. host:192.168.44.65, port:9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TplinkSocket(TCP).send({"payload":"{"emeter":{"get_realtime":{}}}","port":9999,"host":"192.168.44.161","timeout":15000}) [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:send payload.length 34 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:send attempting to connect. host:192.168.44.161, port:9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:connect 192.168.44.77 53733 192.168.44.161 9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:connect:write flushed [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:connect 192.168.44.77 58076 192.168.44.241 9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:connect:write flushed [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:connect 192.168.44.77 43644 192.168.44.65 9999 [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:connect:write flushed [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:data: segment:1 116/116 [{"emeter":{"get_realtime":{"current":0.022531,"voltage":122.764330,"power":0.547412,"total":0.333000,"err_code":0}}}] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:data: segment:1 117/117 [{"emeter":{"get_realtime":{"current":1.241393,"voltage":120.136829,"power":75.607269,"total":1.195000,"err_code":0}}}] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:data: segment:1 110/110 [{"emeter":{"get_realtime":{"current":0.017625,"voltage":120.285224,"power":0,"total":18.488000,"err_code":0}}}] [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TcpSocket: socket:close, hadError:false [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50975] TplinkSocket(TCP).close() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TcpSocket: socket:close, hadError:false [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50977] TplinkSocket(TCP).close() [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TcpSocket: socket:close, hadError:false [1/31/2022, 11:38:42 AM] [TplinkSmarthome.API] [50976] TplinkSocket(TCP).close() [1/31/2022, 11:38:42 AM] [TplinkSmarthome] Scheduling next run of refreshEmeter() in 10000(ms) [1/31/2022, 11:38:44 AM] [TplinkSmarthome.API] client.startDiscovery(): socket:message From: 192.168.44.177 9999

slvrscoobie avatar Jan 31 '22 16:01 slvrscoobie

@slvrscoobie How do you run in debug mode?

I just installed the latest version of homebridge and the plugin, and am also getting errors like this:

[2/4/2022, 10:45:15 PM] [TplinkSmarthome] [Plug 3] {"errno":-54,"code":"ECONNRESET","syscall":"read"}

This seems to be happening quite a bit in the logs, but does not affect the user of the actual plugs. I get these errors whenever I open the Home app on my phone, and the plugs try and reload their state.

josh-berlin avatar Feb 05 '22 06:02 josh-berlin

its in the Homebridge settings. just a button..

slvrscoobie avatar Feb 08 '22 02:02 slvrscoobie

Sharing for comparison. I use a similar config: Homebridge (latest) running in Docker on Synology NAS (DSM 7). I've recently refreshed the Homebridge docker image and have the latest node.js, etc. I have a couple dozen Kasa devices. I am NOT receiving these errors.

Revising my statement - now I get these all the time. :(

EricSabe avatar Feb 19 '22 00:02 EricSabe

same issue here...

re-installed home bridge image does fix this issue but came back a few days later...

weitieda avatar May 18 '22 03:05 weitieda

also getting these errors, but only for 1 of my devices, a KP115. I have mostly older plugs, but at least 2 of this model. the other doesnt seem to do it. the errors occur intermittently. in fact at the moment, my logs only show it happening once in the past 5 hours.

[10/22/2022, 8:16:02 PM] [TplinkSmarthome.API] TCP 192.168.1.202:9999 Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[10/22/2022, 8:16:02 PM] [TplinkSmarthome.API] [Cat tree] device.send() Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
[10/22/2022, 8:16:02 PM] [TplinkSmarthome] [Cat tree] emeter.getRealtime()
[10/22/2022, 8:16:02 PM] [TplinkSmarthome] Error: TCP Timeout after 15000ms
192.168.1.202:9999 {"emeter":{"get_realtime":{}}}
    at Timeout._onTimeout (/usr/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

steinauf85 avatar Oct 23 '22 02:10 steinauf85

Same issue here with an HS100 smart plug.. This only happens with one plug.. My other HS100 and HS110 plugs work..

Any ideas?

deronkel82 avatar Apr 08 '23 00:04 deronkel82

Homebridge Version: 1.6.0 Node Version: 16.20.0

Already tried fixes from other threads but the problem still exits. Energymonitoring is off and i manually added my plugs. HS100 and HS110.

Here the log info: [4/21/2023, 11:12:00 PM] [TplinkSmarthome.API] TCP 192.168.0.134:9999 Error: TCP Timeout after 60000ms 192.168.0.134:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) [4/21/2023, 11:12:00 PM] [TplinkSmarthome.API] [Schrank] device.send() Error: TCP Timeout after 60000ms 192.168.0.134:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/volume1/@appdata/homebridge/lib/node_modules/homebridge-tplink-smarthome/node_modules/tplink-smarthome-api/src/network/tcp-socket.ts:67:17) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

deronkel82 avatar Apr 21 '23 21:04 deronkel82

I was having this issue as well with two bulbs. Changing the Transport option to UDP in settings resolved the issue, at least for now.

eburganjr avatar May 12 '23 23:05 eburganjr

@eburganjr Changing to UDP only fixed it for a day for me... Then it happend again.

deronkel82 avatar May 26 '23 23:05 deronkel82

Occurring frequently for me as well. Seems to be the same 2 or 3 devices (switches and plugs), but some of them come and go from the timeout list depending on reboots, etc.

The devices seem to also be very slow to use via the Kasa app, but, my router (Unifi) shows the connection as "excellent", so it's not a clear cut case of being too far from the router (still could of course be some other kind of connectivity issue). I have these switches all set with static IPs and no amount of bumping the timeout value in homebridge seems to make a difference.

Is this plugin still being actively maintained? I haven't seen updates in a while, and a number of reported issues are going stale without resolution.

qthatswho avatar Aug 07 '23 16:08 qthatswho