plasticrake / homebridge-tplink-smarthome

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

TP-Link HS103 plugs become unresponsive #263

Open howieisaacks opened 2 years ago

howieisaacks commented 2 years ago

Is there an existing issue for this?

What happened?

My TP-Link HS103 smart plugs have become unresponsive. This started about a week ago. I keep Homebridge and the plugin up to date. This has been working great for a couple of months and then all of a sudden HomeKit cannot talk to my smart plugs. Amazon Alexa and the Kasa app both work fine. I want to move away from Amazon so getting these things to work in HomeKit is ideal.

What, if anything, has recently changed?

No changes have occurred except keeping Homebridge and the TP-Link plugin up to date.

Version

7.0.1

Node Version

16.13.1

Homebridge Version

1.4.1

Which OS/Platform?

macOS

Relevant log output

[4/30/2022, 10:04:37 AM] Homebridge v1.4.1 (HAP v0.10.2) (Homebridge DA6A) is running on port 51014.
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] Launched child bridge with PID 69419
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] Launched child bridge with PID 69420
[4/30/2022, 10:04:37 AM] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
[4/30/2022, 10:04:37 AM] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] Loaded homebridge-tplink-smarthome v7.0.1 child bridge successfully
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] Loaded homebridge-tplink-smarthome v7.0.1 child bridge successfully
[4/30/2022, 10:04:37 AM] Loaded 3 cached accessories from cachedAccessories.0E6E59BCA3B3.
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] homebridge-tplink-smarthome v7.0.1, node v16.13.1, homebridge v1.4.1, api v2.7
[4/30/2022, 10:04:37 AM] Loaded 3 cached accessories from cachedAccessories.0E17992CDABD.
[4/30/2022, 10:04:37 AM] [TplinkSmarthome] homebridge-tplink-smarthome v7.0.1, node v16.13.1, homebridge v1.4.1, api v2.7
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [My Lava Lamp] UUID: 9c4a4151-8374-476f-96c5-ee6139b4308d deviceId: 800697BB0C1B525086AFD170B6C0C16E1B792B19 
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [Kitchen] UUID: aef296c6-ee2b-4a67-82e2-933d3d18f233 deviceId: 80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD 
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [Village] UUID: 7cc968c7-2909-4357-9ad7-04b0b761a2ca deviceId: 8006850122CA5EA92D7EF1659C93E1691D8AFEDC 
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [My Lava Lamp] UUID: 9c4a4151-8374-476f-96c5-ee6139b4308d deviceId: 800697BB0C1B525086AFD170B6C0C16E1B792B19 
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [Office fan] UUID: 7cc968c7-2909-4357-9ad7-04b0b761a2ca deviceId: 8006850122CA5EA92D7EF1659C93E1691D8AFEDC 
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Configuring cached accessory: [Kitchen] UUID: aef296c6-ee2b-4a67-82e2-933d3d18f233 deviceId: 80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD 
[4/30/2022, 10:04:38 AM] Homebridge v1.4.1 (HAP v0.10.2) (TplinkSmarthome) is running on port 58762.
[4/30/2022, 10:04:38 AM] Homebridge v1.4.1 (HAP v0.10.2) (TplinkSmarthome) is running on port 57157.
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [My Lava Lamp] plug [800697BB0C1B525086AFD170B6C0C16E1B792B19] 172.16.1.240 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [My Lava Lamp] plug [800697BB0C1B525086AFD170B6C0C16E1B792B19] 172.16.1.240 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [My Lava Lamp] plug [800697BB0C1B525086AFD170B6C0C16E1B792B19]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [My Lava Lamp] plug [800697BB0C1B525086AFD170B6C0C16E1B792B19]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [My Lava Lamp] Correcting Accessory Category from: OUTLET to: SWITCH
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [Kitchen] plug [80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD] 172.16.1.241 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [Kitchen] plug [80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [My Lava Lamp] Removing stale Service: [Outlet] uuid:[00000047-0000-1000-8000-0026BB765291] subtype:[]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [Kitchen] plug [80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD] 172.16.1.241 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [Kitchen] plug [80068F6C48CE45F60A37D8E68B50CC4D1B79D0BD]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [Office fan] plug [8006850122CA5EA92D7EF1659C93E1691D8AFEDC] 172.16.1.192 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [Kitchen] Correcting Accessory Category from: OUTLET to: SWITCH
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [Office fan] plug [8006850122CA5EA92D7EF1659C93E1691D8AFEDC]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [Kitchen] Removing stale Service: [Outlet] uuid:[00000047-0000-1000-8000-0026BB765291] subtype:[]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Device First Online: [Office fan] plug [8006850122CA5EA92D7EF1659C93E1691D8AFEDC] 172.16.1.192 9999
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] Adding: [Office fan] plug [8006850122CA5EA92D7EF1659C93E1691D8AFEDC]
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [Office fan] Correcting Accessory Category from: OUTLET to: SWITCH
[4/30/2022, 10:04:38 AM] [TplinkSmarthome] [Office fan] Removing stale Service: [Outlet] uuid:[00000047-0000-1000-8000-0026BB765291] subtype:[]

Configuration

{
    "name": "TplinkSmarthome",
    "addCustomCharacteristics": false,
    "switchModels": [
        "HS103"
    ],
    "broadcast": "172.16.1.255",
    "deviceTypes": [
        "plug"
    ],
    "_bridge": {
        "username": "0E:6E:59:BC:A3:B3",
        "port": 58762
    },
    "platform": "TplinkSmarthome"
}
howieisaacks commented 2 years ago

I just reset Homebrige and I upgraded the node.js version to the latest.

howieisaacks commented 2 years ago

I have been working on this off and on all week. Nothing I do fixes this. The plugs are all discovered by HomeKit but then they are instantly unresponsive. When I first set this up a couple of months ago it worked perfectly. I have no idea what changed. I have uninstalled and reinstalled this plugin. I have reverted it to an earlier version. When I set it up again, it duplicates or triples each of the smart plugs for some reason. I don't know what else to do other than just give this up and just buy HomeKit certified plugs.

SkilledAlpaca commented 2 years ago

I'm having the same issue. I disabled this plugin and everything came online and started working without issue.

I set this up using a child bridge, and when I attempt to add that bridge to the Home app, it fails. So there is something funky going on with this plugin.

howieisaacks commented 2 years ago

This is no longer an issue for me. I removed Homebridge and bought some HomeKit enabled smart plugs. No one actually responds here so I just ditched using this thing altogether.

edglazer commented 2 years ago

I'm having the same issue. I disabled this plugin and everything came online and started working without issue.

I set this up using a child bridge, and when I attempt to add that bridge to the Home app, it fails. So there is something funky going on with this plugin.

@SkilledAlpaca can you explain more fully how disabling the plugin allowed the HS103 outlets to start working? It seems like after I did some updates to homebridge (updated this plugin from 6.4 to 7.0.1, after updating Node from 14.x to 16.x) is when my problems started.

I've tried deleting the bridge from Home.app, and when I add it back in, all my outlets are detected, and the Home.app even show the current status correctly (outlets that are active are lit), but none of the outlets are reachable. I can turn things on and off in homebridge, and via Kasa app, but the apple Home.app can't actually connect to the devices.

Edit: Plot twist? the Home.app on my mac can apparently communicate perfectly with the outlets, it is just on iOS. I'm running Big Sur on my Mac, and iOS 15.5.

SkilledAlpaca commented 2 years ago

@edglazer Apologies if it wasn't clear, I disabled the plugin and all my other devices started responding. I gave up on the TP Link portion unfortunately.

edglazer commented 2 years ago

Ah, Roger that. Thanks for getting back to me!