ring icon indicating copy to clipboard operation
ring copied to clipboard

Unable to add Ring accessories to HomeKit but correctly showing in Homebridge Logs

Open jamie-the-pilot opened this issue 3 years ago • 2 comments

Bug Report

Describe the Bug

For some time my ring devices have been showing as 'unavailable' in the Apple Home app. Today I decided to delete the child bridge they were connected with which removed all of the devices from my Home app. I also deleted the plugin from my Homebridge that runs on a Raspberry Pi, updated the Homebridge version and the Node.js version (now running 16.16.0).

I installed the Ring plugin and went through the setup steps and restarted the Homebridge. When it restarted I see the devices in the logs (see below log copy and past) but i don't see any devices on the 'Accessories' page in the Homebridge UI.

I followed the troubleshooting guides to restart my phone, homebridge server etc but it didn't change. I have the Ring plugin running on a Child bridge - when I scan the QR code for that I get an error saying that it's an uncertified accessory - I choose add anyway and the 'connecting to bridge' eventually times out and says unable to add accessory.

I tried also without turning on the Child Bridge option and still the devices don't appear in the Home app on my phone.

I checked and my phone is connected via wi-fi to the same router as my Raspberry Pi that is connected via Eithernet to the same router's LAN port.

To Reproduce

Steps to reproduce the behavior:

  • Start Homebridge
  • Turn on child bridge mode on the Homebridge Ring plug in
  • Scan the QR code and choose 'Add Anyway' when the uncertified accessory error
  • Connecting to bridge times out

Expected behavior

I expected that the devices would appear in my Home app running on iOS (iPhone) once I scanned the QR code.

Screenshots/Logs

Extract from the Homebridge Logs:

[27/07/2022, 16:42:14] Registering platform 'homebridge-ring.Ring' [27/07/2022, 16:42:14] [homebridge-ring] Loaded homebridge-ring v11.0.7 child bridge successfully [27/07/2022, 16:42:14] Loaded 18 cached accessories from cachedAccessories.[PRIVATE ADDRESS]. [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Alarm [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Base Station [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Side Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Entrance hall Keypad [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Kitchen motion detector [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Front Door Contact Sensor [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Back Door [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Front Door Motion Sensor [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Upstairs motion detector [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Bedroom Keypad [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Kitchen Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Side Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Front Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Bedroom 3 Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Front Window [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Front Door [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Hallway [27/07/2022, 16:42:14] [homebridge-ring] Configuring cached accessory [PRIVATE ADDRESS] Upstairs [27/07/2022, 16:42:14] Homebridge v1.5.0 (HAP v0.10.2) (homebridge-ring) is running on port 44652. [27/07/2022, 16:42:16] [homebridge-ring] Found the following locations: [27/07/2022, 16:42:16] [homebridge-ring] locationId: [PRIVATE ADDRESS] - Stamford [27/07/2022, 16:42:16] [homebridge-ring] Creating location socket.io connection - Stamford [27/07/2022, 16:42:16] [homebridge-ring] Ring connected to socket.io server [27/07/2022, 16:42:17] [homebridge-ring] Configuring 2 cameras and 22 devices for location "Stamford" - locationId: [PRIVATE ADDRESS]

Screenshot of the accessories page in Homebrige:

image

Additional context

None

Homebridge Ring Config

{ "bridge": { "name": "Homebridge E95A", "username": "[PRIVATE]", "port": [PRIVATE], "pin": "[PRIVATE]", "bind": [ "wlan0" ] }, "accessories": [], "platforms": [ { "name": "Config", "port": [PRIVATE], "platform": "config" }, { "name": "Hue Bridge", "anyOn": true, "effects": true, "hosts": [ "[PRIVATE]" ], "lights": true, "nativeHomeKitLights": true, "nativeHomeKitSensors": true, "resource": true, "sensors": false, "_bridge": { "username": "[PRIVATE]", "port": [PRIVATE] }, "platform": "Hue" }, { "name": "Nest", "refreshToken": "[PRIVATE]", "platform": "Nest" }, { "refreshToken": "[PRIVATE]", "platform": "Ring", "_bridge": { "username": "[PRIVATE]", "port": [PRIVATE] } } ] }


### Environment
<!-- ✍️edit: -->
 - OS: Raspberry Pi - v11.0.7
 - Node.js: 16.16.0
 - NPM: 8.11.0
 - homebridge-ring: 11.0.7
 - homebridge: ??
 - hoobs: ??

jamie-the-pilot avatar Jul 27 '22 16:07 jamie-the-pilot

https://github.com/homebridge/homebridge/wiki/Basic-Troubleshooting#reset-pairingaccessories has some good steps. Specifically step 3, I think deleting your persist/accessory directories and repairing homebridge to HomeKit should hopefully get your setup straightened out.

dgreif avatar Jul 31 '22 15:07 dgreif

Great, thank you - i'll give that a try and report back later today

jamie-the-pilot avatar Aug 03 '22 08:08 jamie-the-pilot

@jamie-the-pilot any luck?

dgreif avatar Aug 22 '22 03:08 dgreif

Ok, so trying this out this morning (sorry for the delay)... I've followed the steps in the reset/repairing section... i just finished those steps but now when i restart the homebridge i see these errors in the logs:

Failed to save cached accessories to disk: ENOENT: no such file or directory, open '/var/lib/homebridge/accessories/cachedAccessories'

Your accessories will not persist between restarts until this issue is resolved.

I'm a little new at this so, should i create that directory? if so, could you help me with the command to use for it please? OR should i just start adding accessories?

jamie-the-pilot avatar Aug 25 '22 08:08 jamie-the-pilot

Given you are running HOOBS, I'd suggest you reach out to their support. Debugging homebridge/HOOBS level issues is a bit outside the scope of this plugin

dgreif avatar Aug 25 '22 15:08 dgreif

That’s funny, I didn’t even realise it was HOOBS, I just downloaded the OS from the Homebridge website under their Raspberry Pi section.

I got it working today, took the nuclear option of wiping the SSD and starting again - now all seems to be working :)

thanks again for all your help, really appreciate it.

jamie-the-pilot avatar Aug 25 '22 16:08 jamie-the-pilot

Actually that is not HOOBS! I just saw the colors and didn't look closely, that is indeed just pure homebridge. Glad you got it all working!

dgreif avatar Aug 25 '22 20:08 dgreif

Hello. Just entering this world. Have a ring doorbell I bought and added the ring plugin and signed in. It shows in the logs that it's adding a new accessory but I don't see it in the accessories tab.. don't know what to do

joshr9 avatar Oct 07 '23 03:10 joshr9