thenewwazoo / homebridge-lutron-caseta-leap

Homebridge support for Lutron Caseta Smart Bridge 2
Apache License 2.0
76 stars 26 forks source link

HomeBridge Can’t Find Bridge After Power Outage #49

Closed fortyfortynine closed 2 years ago

fortyfortynine commented 2 years ago

Describe Your Problem: I setup the HomeBridge-Lutron-casita-leap plug-in last weekend and was successful in getting it working. I had a power outage this past week and found my pico remote wasn’t working. Found that I couldn’t reach the Lutron bridge with the Lutron app. Found there was a network issue and fixed that and the Lutron app could now connect but the plug-in still couldn’t find the bridge. I uninstalled and reinstalled the plug-in but it still couldn’t find the bridge. In the HomeBridge terminal I’m able to ping the Lutron bridge. Not sure what else I can try to get the plug-in to see the Lutron bridge.

Logs:

6/4/2022, 9:05:20 AM] [Homebridge UI] Homebridge restart request received
[6/4/2022, 9:05:20 AM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[6/4/2022, 9:05:20 AM] [Homebridge UI] Sending SIGTERM to Homebridge
[6/4/2022, 9:05:20 AM] Got SIGTERM, shutting down Homebridge...
[6/4/2022, 9:05:25 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[6/4/2022, 9:05:30 AM] [HB Supervisor] Restarting Homebridge...
[6/4/2022, 9:05:30 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[6/4/2022, 9:05:31 AM] [HB Supervisor] Started Homebridge v1.4.1 with PID: 7741
[6/4/2022, 9:05:32 AM] Loaded config.json with 1 accessories and 2 platforms.
[6/4/2022, 9:05:32 AM] Loaded 7 cached accessories from cachedAccessories.
[6/4/2022, 9:05:32 AM] ---
[6/4/2022, 9:05:33 AM] Loaded plugin: homebridge-dummy@0.6.0
[6/4/2022, 9:05:33 AM] Registering accessory 'homebridge-dummy.DummySwitch'
[6/4/2022, 9:05:33 AM] ---
[6/4/2022, 9:05:34 AM] Loaded plugin: homebridge-lutron-caseta-leap@2.3.6
[6/4/2022, 9:05:34 AM] Registering platform 'homebridge-lutron-caseta-leap.LutronCasetaLeap'
[6/4/2022, 9:05:34 AM] ---
[6/4/2022, 9:05:34 AM] Loaded plugin: homebridge-tplink-smarthome@7.0.1
[6/4/2022, 9:05:34 AM] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
[6/4/2022, 9:05:34 AM] ---
[6/4/2022, 9:05:34 AM] Loaded plugin: homebridge-config-ui-x@4.46.0
[6/4/2022, 9:05:34 AM] Registering platform 'homebridge-config-ui-x.config'
[6/4/2022, 9:05:34 AM] ---
[6/4/2022, 9:05:34 AM] Loading 2 platforms...
[6/4/2022, 9:05:34 AM] [Config] Initializing config platform...
[6/4/2022, 9:05:34 AM] [Config] Running in Service Mode
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Initializing TplinkSmarthome platform...
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] homebridge-tplink-smarthome v7.0.1, node v16.14.0, homebridge v1.4.1, api v2.7
[6/4/2022, 9:05:34 AM] Loading 1 accessories...
[6/4/2022, 9:05:34 AM] [Setup] Initializing DummySwitch accessory...
[6/4/2022, 9:05:34 AM] [Setup] Setting switch to false
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 1] UUID: 72471e42-d2da-44ac-97e9-db0c1bfcefbf deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C00 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 2] UUID: 8d735e70-1ec0-4e6c-87ec-620c2efd59ca deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C01 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 3] UUID: f3230054-f4f0-43c5-8b80-fe379022b804 deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C02 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 4] UUID: 97e6ea4f-82bd-4e73-9a85-1dfa7b8f61b7 deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C03 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 5] UUID: 7e4d44b8-0cbc-4464-977b-8c88497a4d80 deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C04 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [Plug 6] UUID: 9fdae57f-81d8-4771-ae4a-864250d0e116 deviceId: 80063AB11D3024F10AA8777EE68FE2F41F16D62C05 
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Configuring cached accessory: [TP-LINK_Smart Plug_DC71] UUID: 5f45010b-e85f-43f6-8b3f-f777e37a3f8d deviceId: 800637237E9F7D52021150416DCD08051EF99A39 
Setup Payload:
X-HM://0023ISYWYD81U
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     

    └────────────┘     

[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [TP-LINK_Smart Plug_DC71] plug [800637237E9F7D52021150416DCD08051EF99A39] 192.168.4.186 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [TP-LINK_Smart Plug_DC71] plug [800637237E9F7D52021150416DCD08051EF99A39]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 1] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C00] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 1] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C00]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 2] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C01] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 2] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C01]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 3] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C02] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 3] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C02]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 4] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C03] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 4] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C03]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 5] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C04] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 5] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C04]
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Device First Online: [Plug 6] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C05] 192.168.4.193 9999
[6/4/2022, 9:05:34 AM] [TplinkSmarthome] Adding: [Plug 6] plug [80063AB11D3024F10AA8777EE68FE2F41F16D62C05]
[6/4/2022, 9:05:35 AM] Homebridge v1.4.1 (HAP v0.10.2) (Homebridge B36C) is running on port 53388.
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] TCP 192.168.4.193:9999 Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] [Plug 5] device.send() Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] TCP 192.168.4.193:9999 Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] [Plug 6] device.send() Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] TCP 192.168.4.193:9999 Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] [Plug 5] device.send() Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 5] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] TCP 192.168.4.193:9999 Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome.API] [Plug 6] device.send() Error: connect ECONNRESET 192.168.4.193:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '192.168.4.193',
  port: 9999
}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}
[6/4/2022, 9:05:36 AM] [TplinkSmarthome] [Plug 6] {"errno":-104,"code":"ECONNRESET","syscall":"connect","address":"192.168.4.193","port":9999}

**Plugin Config:**

{
    "bridge": {
        "name": "Homebridge",
        "username": "########",
        "port": 53388,
        "pin": "########",
        "bind": [
            "eth0",
            "eth0.4",
            "docker0"
        ],
        "advertiser": "avahi"
    },
    "accessories": [
        {
            "name": "Setup",
            "stateful": true,
            "reverse": false,
            "time": 1000,
            "resettable": false,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": true,
            "broadcast": "192.168.4.255",
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "platform": "TplinkSmarthome"
        }
    ]
}

Screenshots: 078B8B4B-FFE8-4001-818E-03CEC06A0682

Environment:

thenewwazoo commented 2 years ago

I’m unfortunately not sure what to tell you, if your phone and the Homebridge server are on the same network. The plug-in works by sending mDNS broadcasts, so it kind of either works or it doesn’t. If you do figure out how to fix it, please report back so I can update docs.

sptv1 commented 10 months ago

I am having this same problem. Got a new router (TP-Link AX5400) and now I can't find the smart bridge through the Hoobs bridge interface. Lutron works fine in my HomeKit.