plasticrake / homebridge-tplink-smarthome

TP-Link Smarthome Plugin for Homebridge
MIT License
480 stars 70 forks source link

Issues with discovering & Controlling devices #298

Open jthorpefl opened 1 year ago

jthorpefl commented 1 year ago

Is there an existing issue for this?

What happened?

After re-flashing the HOOBS SD Card and installing the TP Link plugin, my devices are not discovered. The only time I was able to get the plugin to discover my devices was to open the Kasa app on my phone. After HOOBS reboots, the devices are not controllable. I have to open the Kasa app in order for the devices to be controllable again.

I'm able to control the devices using Apple's Homekit, both within and outside of my home network ... as long as I opened the Kasa app if the HOOBS rebooted. HOOBS and all the devices are on the same network and subnet mask. Even if the devices aren't controllable using HOOBS, they're still controllable using the app, Alexa or Google Home.

What, if anything, has recently changed?

Re-flashed the HOOBS SD card, and installed the TP Link plugin.

Version

7.0.1

Node Version

16.19.0

Homebridge Version

1.5.0

Which OS/Platform?

Linux

Relevant log output

1/22/2023, 4:18:33 AMTplink Smarthome BridgeTplinkSmarthomeConfiguring cached accessory: [Front Porch Fan Light 1] UUID: 5f47c1bf-62d8-463a-9e7e-63cf0f8f7604 deviceId: 8012272F7E38BF52F1E93C0E5263609D1E4ED296 
1/22/2023, 4:18:33 AMTplink Smarthome BridgeTplinkSmarthomeConfiguring cached accessory: [Master Bedroom Fan Light] UUID: 2d4ca472-74d3-4048-a67a-13ffa57fc0c6 deviceId: 8006ECF6826B5CD78E6C22D9DECC5EBB1DB20EA0 
1/22/2023, 4:18:34 AMTplink Smarthome BridgeBridge is running on port 51836.
1/22/2023, 4:19:04 AMTplink Smarthome BridgeTplinkSmarthomeDevice First Online: [Tulip Light] plug [80065F4956089D9CB0B888AC5FDBD2DE1B19A999] 192.168.1.72 9999
1/22/2023, 4:19:04 AMTplink Smarthome BridgeTplinkSmarthomeAdding: [Tulip Light] plug [80065F4956089D9CB0B888AC5FDBD2DE1B19A999]

1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Grandfather Clock Light] getValue: Invalid Watts: undefined
1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Hall Lamp] getValue: Invalid Watts: undefined
1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Front Porch Fan Light 2] getValue: Invalid Watts: undefined
1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Front Porch Fan Light 3] getValue: Invalid Watts: undefined
1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Front Door Light] getValue: Invalid Watts: undefined
1/22/2023, 5:18:22 AMTplink Smarthome BridgeTplinkSmarthomeWARNING[Back Porch Light Left] getValue: Invalid Watts: undefined

1/22/2023, 9:16:06 AMTplink Smarthome BridgeERROR[Tplink Smarthome Bridge 2D79@On] The write handler for the characteristic 'On' on the accessory 'Office Desk Light' was slow to respond!
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERRORTCP 192.168.1.61:9999 Error: connect EHOSTUNREACH 192.168.1.61:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.61',
  port: 9999
}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERROR[Office Desk Light] device.send() Error: connect EHOSTUNREACH 192.168.1.61:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.61',
  port: 9999
}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Desk Light] set [On]
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Desk Light] Error: connect EHOSTUNREACH 192.168.1.61:9999
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERRORTCP 192.168.1.72:9999 Error: connect EHOSTUNREACH 192.168.1.72:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.72',
  port: 9999
}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERROR[Tulip Light] device.send() Error: connect EHOSTUNREACH 192.168.1.72:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.72',
  port: 9999
}

1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Tulip Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.72","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Tulip Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.72","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERRORTCP 192.168.1.126:9999 Error: connect EHOSTUNREACH 192.168.1.126:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.126',
  port: 9999
}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthome.APIERROR[Grandfather Clock Light] device.send() Error: connect EHOSTUNREACH 192.168.1.126:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.126',
  port: 9999
}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Grandfather Clock Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.126","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Grandfather Clock Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.126","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Grandfather Clock Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.126","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Grandfather Clock Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.126","port":9999}
1/22/2023, 9:16:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Grandfather Clock Light] {"errno":-113,"code":"EHOSTUNREACH","syscall":"connect","address":"192.168.1.126","port":9999}

1/22/2023, 10:09:43 AMTplink Smarthome BridgeTplinkSmarthome.APIERRORTCP 192.168.1.128:9999 Error: connect EHOSTUNREACH 192.168.1.128:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.128',
  port: 9999
}
1/22/2023, 10:09:43 AMTplink Smarthome BridgeTplinkSmarthome.APIERROR[Front Door Light] device.send() Error: connect EHOSTUNREACH 192.168.1.128:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.128',
  port: 9999
}
1/22/2023, 10:09:43 AMTplink Smarthome BridgeTplinkSmarthome.APIERRORTCP 192.168.1.130:9999 Error: connect EHOSTUNREACH 192.168.1.130:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.130',
  port: 9999
}
1/22/2023, 10:09:43 AMTplink Smarthome BridgeTplinkSmarthome.APIERROR[Front Porch Fan Light 2] device.send() Error: connect EHOSTUNREACH 192.168.1.130:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
  errno: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.130',
  port: 9999
}
1/22/2023, 4:02:59 PMHoobs 2 starting
1/22/2023, 4:03:17 PMhoobs2 stopping
1/22/2023, 4:03:22 PMHoobs 2 starting
1/22/2023, 4:04:36 PMHOOBSWARNINGunhandled rejection: SyntaxError: Unexpected token u in JSON at position 0
1/22/2023, 4:04:36 PMTplink Smarthome BridgeWARNINGunhandled rejection: SyntaxError: Unexpected token u in JSON at position 0
1/22/2023, 4:04:37 PMWARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'id')
1/22/2023, 4:04:37 PMhoobs2 stopping
1/23/2023, 10:42:41 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Fan Light] set [Brightness]
1/23/2023, 10:42:41 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Fan Light] ResponseError: err_code not zero response: {"err_code":-3,"err_msg":"invalid argument"} command: {"smartlife.iot.dimmer":{"set_brightness":{"brightness":0}}}
1/23/2023, 10:45:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Fan Light] set [Brightness]
1/23/2023, 10:45:06 AMTplink Smarthome BridgeTplinkSmarthomeERROR[Office Fan Light] ResponseError: err_code not zero response: {"err_code":-3,"err_msg":"invalid argument"} command: {"smartlife.iot.dimmer":{"set_brightness":{"brightness":0}}}

Configuration

{
    "accessories": [],
    "platforms": [
        {
            "platform": "TplinkSmarthome",
            "name": "TplinkSmarthome"
        }
    ]
}