Skip to content

homebridge-ring setting to unbridge cameras causes homebridge-gsh to fail to find homebridge devices #16

@drive-c

Description

@drive-c

Describe The Bug:

When setting homebridge-ring to unbridge cameras, homebridge-gsh fails to find most homebridge-ring devices as well as devices from some other plugins. The accessories page also omits a number of accessories after homebridge-gsh has started, including non-Ring accessories. (Occasionally, you can restart homebridge-gsh and other child bridges in a staggered way to cause some of the accessories to reappear, but the accessories disappearing appears to be linked to homebridge-gsh starting up. Any accessories gained this way are typically lost on homebridge-gsh's restart.)

Setting homebridge-ring unbridgeCameras to false and restarting homebridge-gsh causes the issue to go away.

Also note that while the change in homebridge-ring specifically affects cameras, I understand that homebridge-gsh does not support the cameras; this issue has to do with Ring alarm, lighting, and other non-Ring accessories.

To Reproduce:

Use homebridge-ring and homebridge-gsh with multiple Ring cameras, alarm, and light devices. I also have homebridge-tplink-smarthome with a few outlets and switches. Add devices to Google Home with homebridge-gsh. Afterwards, set Unbridge Cameras to true and restart Homebridge. homebridge-gsh appears to no longer connect to alarm devices and lights in homebridge-ring as well as switches in homebridge-tplink-smarthome. (Occasionally, one or two devices will connect, but this changes on each restart of homebridge-gsh.)

Expected behavior:

homebridge-gsh should be able to get past the unbridged cameras and continue looking for other valid devices. homebridge-gsh should not fail to find non-Ring devices.

Logs:

[3/3/2025, 9:11:17 PM] [Google Smart Home] Restarting child bridge...
[3/3/2025, 9:11:17 PM] Got SIGTERM, shutting down child bridge process...
[3/3/2025, 9:11:22 PM] [Google Smart Home] Child bridge process ended
[3/3/2025, 9:11:22 PM] [Google Smart Home] Process Ended. Code: 143, Signal: null
[3/3/2025, 9:11:29 PM] [Google Smart Home] Restarting Process...
[3/3/2025, 9:11:29 PM] [Google Smart Home] Launched child bridge with PID 28687
[3/3/2025, 9:11:29 PM] Registering platform 'homebridge-gsh.google-smarthome'
[3/3/2025, 9:11:29 PM] [Google Smart Home] Loaded homebridge-gsh v3.1.2 child bridge successfully
[3/3/2025, 9:11:29 PM] Loaded 0 cached accessories from cachedAccessories.0E443DCFDF65.
[3/3/2025, 9:11:29 PM] [Google Smart Home] Waiting 15 seconds before starting instance discovery...
[3/3/2025, 9:11:29 PM] Homebridge v1.8.5 (HAP v0.12.3) (Google Smart Home D5D9) is running on port 53600.
[3/3/2025, 9:11:29 PM] 

NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[3/3/2025, 9:11:29 PM] [Google Smart Home] Connected (1) - wss://homebridge-gsh.iot.oz.nu
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Started @ at HapClient.startDiscovery (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:122:10)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username ED:79:23:B1:E9:3E @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Testing ED:79:23:B1:E9:3E via http://10.1.1.1:36624/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:185:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed ED:79:23:B1:E9:3E via http://10.1.1.1:36624/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:195:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed ED:79:23:B1:E9:3E with error: Request failed with status code 470 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:196:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username ED:79:23:B1:E9:3E @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 0E:57:EC:49:92:28 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 0E:57:EC:49:92:28 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 0E:44:3D:CF:DF:65 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 0E:44:3D:CF:DF:65 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 15:CA:0E:3B:C7:44 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 15:CA:0E:3B:C7:44 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username B2:3B:4F:07:C9:6B @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username B2:3B:4F:07:C9:6B @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username F3:3E:E0:0D:41:25 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username F3:3E:E0:0D:41:25 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 3B:F8:BD:3E:81:C9 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 3B:F8:BD:3E:81:C9 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 8D:60:0A:59:8B:65 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 8D:60:0A:59:8B:65 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 3E:23:81:C7:08:F5 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 3E:23:81:C7:08:F5 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 0E:D7:0B:C5:E6:45 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 0E:D7:0B:C5:E6:45 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 9E:D9:E2:7E:56:85 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 9E:D9:E2:7E:56:85 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 5D:52:35:9B:ED:C0 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 5D:52:35:9B:ED:C0 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 0E:3D:DC:AB:A5:A8 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 0E:3D:DC:AB:A5:A8 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 0E:DD:2F:4B:D5:27 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 0E:DD:2F:4B:D5:27 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 64:B5:25:80:CA:51 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Testing 64:B5:25:80:CA:51 via http://10.1.1.193:42243/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:185:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed 64:B5:25:80:CA:51 via http://10.1.1.193:42243/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:195:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed 64:B5:25:80:CA:51 with error: Request failed with status code 470 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:196:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 64:B5:25:80:CA:51 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username 2C:48:F7:8E:91:2E @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Testing 2C:48:F7:8E:91:2E via http://10.1.1.152:64692/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:185:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed 2C:48:F7:8E:91:2E via http://10.1.1.152:64692/accessories @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:195:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Failed 2C:48:F7:8E:91:2E with error: Request failed with status code 470 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:196:18)
[3/3/2025, 9:11:44 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username 2C:48:F7:8E:91:2E @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:11:49 PM] [Google Smart Home] No more instances discovered, publishing services
[3/3/2025, 9:11:49 PM] [Google Smart Home] [HapClient] Cannot load accessories. No Homebridge instances have been discovered. @ at HapClient.getAccessories (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:238:12)
[3/3/2025, 9:11:49 PM] [Google Smart Home] Loaded 0 accessories from Homebridge - pre filter
[3/3/2025, 9:11:49 PM] [Google Smart Home] Returned 0 accessories from Homebridge - post filter
[3/3/2025, 9:11:49 PM] [Google Smart Home] Discovered 0 accessories
[3/3/2025, 9:11:49 PM] [Google Smart Home] Monitoring 0 services for changes
[3/3/2025, 9:12:04 PM] [Google Smart Home] Sending Sync Request
[3/3/2025, 9:12:07 PM] [Google Smart Home] Received SYNC intent
[3/3/2025, 9:12:07 PM] [Google Smart Home] {
  "inputs": [
    {
      "intent": "action.devices.SYNC",
      "requestId": "17010347740160142261"
    }
  ],
  "requestId": "17010347740160142261"
}
[3/3/2025, 9:12:07 PM] [Google Smart Home] No supported devices found. See https://git.io/JfuHW
[3/3/2025, 9:12:10 PM] [Google Smart Home] [HapClient] Discovery :: Found HAP device with username B2:D9:2A:C2:78:78 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:149:12)
[3/3/2025, 9:12:10 PM] [Google Smart Home] [HapClient] Discovery :: Could not register to device with username B2:D9:2A:C2:78:78 @ at Browser.<anonymous> (/var/lib/homebridge/node_modules/homebridge-gsh/node_modules/@homebridge/hap-client/src/index.ts:208:14)
[3/3/2025, 9:12:17 PM] [Google Smart Home] Sending full post-sync state report

Homebridge Config:

    "bridge": {
        "name": "[REDACTED]",
        "username": "0E:57:EC:49:92:28",
        "port": 51782,
        "pin": "[REDACTED]",
        "advertiser": "avahi",
        "bind": [
            "enp89s0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "orange",
            "lightingMode": "auto",
            "menuMode": "default",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "ssl": {
                "key": "/var/lib/homebridge/key.pem",
                "cert": "/var/lib/homebridge/cert.pem"
            },
            "platform": "config"
        },
        {
            "name": "Kasa TP-Link",
            "addCustomCharacteristics": false,
            "switchModels": [
                "HS200"
            ],
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "devicesUseDiscoveryPort": false,
            "_bridge": {
                "username": "0E:D7:0B:C5:E6:45",
                "port": 42532
            },
            "platform": "TplinkSmarthome"
        },
        {
            "name": "Nest",
            "googleAuth": {
                "issueToken": "[REDACTED]",
                "cookies": "[REDACTED]",
            },
            "structureId": "[REDACTED]",
            "_bridge": {
                "username": "0E:DD:2F:4B:D5:27",
                "port": 47375
            },
            "platform": "Nest"
        },
        {
            "refreshToken": "[REDACTED]",
            "unbridgeCameras": true,
            "hideDoorbellSwitch": true,
            "hideCameraSirenSwitch": true,
            "hideInHomeDoorbellSwitch": true,
            "hideAlarmSirenSwitch": true,
            "hideDeviceIds": [
                "[REDACTED]"
            ],
            "locationIds": [
                "[REDACTED]"
            ],
            "_bridge": {
                "username": "0E:3D:DC:AB:A5:A8"
            },
            "platform": "Ring"
        },
        {
            "name": "Google Smart Home",
            "token": "[REDACTED]",
            "notice": "Keep your token a secret!",
            "twoFactorAuthPin": "[REDACTED]",
            "debug": true,
            "instanceDenylist": [
                "0E:DD:2F:4B:D5:27"
            ],
            "betaServer": false,
            "_bridge": {
                "name": "Google Smart Home D5D9",
                "username": "0E:44:3D:CF:DF:65",
                "port": 53600
            },
            "platform": "google-smarthome"
        }
    ],
    "disabledPlugins": [
        "homebridge-blink-for-home"
    ]
}

Screenshots:
While unbridgeCameras set to true:
Image
While unbridgeCameras set to false:
Image

Environment:

  • Node.js Version: v22.14.0 (also tested on 22.13.1 with same results)
  • NPM Version: 10.9.2
  • Homebridge Version: v1.8.5
  • Homebridge GSH Plugin Version: v3.1.2
  • Homebridge Config UI X Plugin Version: 4.68.0
  • Operating System: Ubuntu 22.04.5 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions