dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.23k stars 162 forks source link

Ring Doorbell Not Appearing, can't add to Homekit #129

Closed LegendaryWiz closed 5 years ago

LegendaryWiz commented 5 years ago

I've installed the plugin and updated the config file already. However, when I try to add the Ring camera ( pressing +, then "no code or can't scan" ), the camera never appears as a device to add. I've already tried reinstalling the plugin / resetting the Ring Doorbell 2, restarting Homebridge / RPI etc, but to no avail. Homebridge is running as normal, it shows that Ring platform is initiated but somehow the camera just never shows up.

My Node JS is v8.3.0, so up to date and shouldn't be a problem. I'ven just verified the login credentials on Ring.com and they're correct. I can't seem to find any problems that's causing this...

Anyone has any ideas on how to troubleshoot this? Thank you very much.

dgreif commented 5 years ago

First, make sure that the Homebridge output shows the cameras you are trying to add in the logs. Assuming they are there, make sure that your phone is on the same network as your homebridge server, and that they devices are able to see each other (something like a guest network wouldn't allow them to talk to each other).

LegendaryWiz commented 5 years ago

First, make sure that the Homebridge output shows the cameras you are trying to add in the logs. Assuming they are there, make sure that your phone is on the same network as your homebridge server, and that they devices are able to see each other (something like a guest network wouldn't allow them to talk to each other).

Is Homebridge output the logs that appears when Homebridge starts ? If so it just says

[2019-9-15 09:40:57] [Ring] Initializing Ring platform...

But then it doesn’t do anything, the above sentence is the only output produced by Ring when Homebridge starts. Seems that it’s not discovering my Ring Doorbell 2 even though everything seems to be installed and written correctly.

And yes they’re definitely on the same network . This is the first time I’m trying to add a camera to HomeKit. I’ve not removed any Ring Camera and tried to re-add them before . So it’s weird such a problem is happening.

I’m also very sure devices on my network can see each other, my same RPI can connect and talk to Broadlink / Nest / Samsung devices so it shouldn’t be a case that just Ring Doorbell can’t talk to RPI . I’ve also restarted my router / RPI / Ring multiple times, but I’m still unable to discover the doorbell and pair in Homekit .

dgreif commented 5 years ago

Those are the correct logs. If you don't see any more logs starting with [Ring], then something odd is going on. I would try creating a refreshToken and using that in your config to ensure you are getting properly authenticated with Ring: https://github.com/dgreif/ring/wiki/Two-Factor-Auth (note you do not need two-factor-auth to use refreshTokens)

LegendaryWiz commented 5 years ago

Those are the correct logs. If you don't see any more logs starting with [Ring], then something odd is going on. I would try creating a refreshToken and using that in your config to ensure you are getting properly authenticated with Ring: https://github.com/dgreif/ring/wiki/Two-Factor-Auth (note you do not need two-factor-auth to use refreshTokens)

Thank you. I’ll update my config files this weekend. Do u also think I should give this method a try?

https://github.com/dgreif/ring/wiki/Camera-Troubleshooting ( the part about “Cannot add Camera from Home” )

Unfortunately I don't understands what’s meant by the paragraph : “Go into your ~/.homebridge/persist directory and finding any AccessoryInfo.${uniqueId}.json files that relate to your camera. You can open them up and they have the device name right at the start of the file. Keep track of the ${uniqueId} values for your cameras. Delete each camera's AccessoryInfo.${uniqueId}.json and associated IdentifierCache.${uniqueId}.json file”

What should I type in the command line in SSH to go to these specific folders and delete corresponding files? I can’t seem to find the Homebridge folder when I VNC into RPI. When I type /.homebridge/persist into the folders it doesn’t show up with any folder.

Hope you can enlighten me some troubleshooting. Thank u very much.

dgreif commented 5 years ago

I'm glad you looked through the troubleshooting steps! Those ones in particular are only important if you had previously added the camera and then removed it from homebridge (which you specifically said you have not), so you can just ignore all of that for now. Let's get to a point where your homebridge logs look correct (hopefully just by using the refreshToken) and see if you are up and running at that point

LegendaryWiz commented 5 years ago

Alright! I’ll have refresh Token added this weekend after I return from holidays.

Can u post a log that’s supposed to appear if Ring plugin is running correctly ? ( ie with Ring devices discovered and properly authenticated ), so I can have an idea. Really appreciate your help, thank you:)

LegendaryWiz commented 5 years ago

Hello, I've used the refresh token and unfortunately, the issue is not solved.

[2019-9-20 19:02:27] [Ring] Initializing Ring platform...

The above is the only output Ring is putting out. Do you have any other suggestions on what I can do? I'm having no issue using Ring from the app but it's just not added to Homebridge in any way.

Thank you.

dgreif commented 5 years ago

Next thing I would try is upgrading to the latest version of Node LTS (10.16.3), and latest version of homebridge. If there are no other errors in the logs, I'm really not sure what could be causing the issue.

LegendaryWiz commented 5 years ago

I've tried upgrading the Node and npm already, my Homebnridge is already the latest version. Still, the only output it produces is [Ring] Initializing Ring platform... Guess I just have to give up now? Do you think resetting the whole Homebridge will make it work? That'll be a last resort but if all other options fail I might give it a try. Thank you.

dgreif commented 5 years ago

@LegendaryWiz did you ever get this working? A whole homebridge reinstall might actually be needed. I never normally recommend that route, but something odd is definitely going on for your setup

ecoen66 commented 5 years ago

I have a similar issue. My home bridge log shows the following: [10/1/2019, 3:05:58 PM] [Ring] Ring connected to socket.io server [10/1/2019, 3:05:59 PM] [Ring] Configuring 1 cameras and 26 devices for location "Home" - locationId: [10/1/2019, 3:05:59 PM] [Ring] Adding new accessory lpd_v2 Front Door [10/1/2019, 3:05:59 PM] Front Door is running on port 38287. [10/1/2019, 3:05:59 PM] Please add [Front Door] manually in Home app. Setup Code: 031-45-154

However, I cannot add the doorbell camera to the Home app. Nothing is found during the scans.

dgreif commented 5 years ago

@ecoen66 it looks like the plugin is starting up properly in your case. The most likely cause for your issue is that your phone/device that you are using to add the camera to HomeKit is not on the same network as your homebridge server. If you are sure that they are on the same network, then you will need to follow the steps here: https://github.com/dgreif/ring/wiki/Camera-Troubleshooting#cannot-add-camera-from-home

dgreif commented 5 years ago

Closing because of lack of input from @LegendaryWiz

Nagol94 commented 2 years ago

Good Afternoon I am reading through this trying to find some help with a similar error. I have 3 child hubs installed on raspberry pi 4 running homebridge. MyQ, Neato, and Ring. Ring is the only one that is giving me issues with having the devices loaded into homebridge as well as added to homekit. I continue to get this in the logs. [homebridge-ring] Loaded homebridge-ring v11.3.1 child bridge successfully [01/11/2022, 15:03:18] Loaded 0 cached accessories from cachedAccessories.0E471950C33A. [01/11/2022, 15:03:18] Homebridge v1.5.1 (HAP v0.10.4) (homebridge-ring) is running on port 38127. [01/11/2022, 15:03:19] [homebridge-ring] Found the following locations: [01/11/2022, 15:03:19] [homebridge-ring] locationId: a37a1824-5f34-441f-a922-f62c19247a23 - Chausley Court [01/11/2022, 15:03:19] [homebridge-ring] locationId: 23acf557-4fba-4b41-8279-fde61af0bca2 - Charlotte [01/11/2022, 15:03:19] [homebridge-ring] Creating location socket.io connection - Chausley Court [01/11/2022, 15:03:19] [homebridge-ring] Creating location socket.io connection - Charlotte [01/11/2022, 15:03:19] [homebridge-ring] Ring connected to socket.io server [01/11/2022, 15:03:19] [homebridge-ring] Ring connected to socket.io server [01/11/2022, 15:03:19] [homebridge-ring] Ring base_station_v1 fd2e103b-a343-4bea-5c42-7dac16a8659a is offline or on cellular backup. Waiting for status to change [01/11/2022, 15:03:20] [homebridge-ring] Configuring 1 cameras and 39 devices for location "Chausley Court" - locationId: a37a1824-5f34-441f-a922-f62c19247a23 [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 4901ebc3-80f1-4125-adc9-e09afc8c8d15 security-panel Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory dda5c7d8-438a-42e3-9ce0-a2d85df60d67 hub.redsky Base Station [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory c4abb322-19e6-4241-bd2d-04ca1f873310 sensor.contact Breakfast Room Right Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory da5cc316-4f4f-41b6-be89-b2005b13d139 sensor.contact Breakfast Room Left Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 96a5540f-9e0b-4d71-bedd-6d5932b7ba3f sensor.contact Garage Door [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 537b5350-f084-40ca-841b-9b8044c9264c sensor.motion Motion Detector [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 6d5c392f-f0e2-428a-961f-17d6d098932e sensor.contact Study Left Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 7cc7c675-f21f-45bf-941b-d12ee3302ffa sensor.contact Study Right Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 697616bb-b8ad-4735-95bf-61e14c06fbc3 sensor.contact Front Door [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 25133612-4087-4ffb-83ac-068da91dc8b8 sensor.contact Dinning Room Right Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 0c5331f4-36af-4796-a2c8-23428608932d sensor.contact Dinning Room Left Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 70c90e5e-a1d4-42ec-a772-b73c4366de29 security-keypad Kitchen Keypad [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 7d5c2ef3-0536-4765-8ca9-49427182cf6d lock Front Door Lock [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 9925cd2c-a88b-47f2-b9b8-4fb91ba4049c sensor.contact Living Room Right Window [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 30bd6bfc-1d85-45ff-a653-79c1da2f27c1 alarm.smoke Living Room Smoke & CO Alarm 16236 [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory de744aa7-318a-4e64-8b20-711695c15801 alarm.co Living Room First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory eb81f6e7-3eef-422e-a5c1-cfd5e3bf9837 alarm.smoke Kitchen Smoke & CO Alarm 22468 [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory f0a3d06f-5475-4d54-b118-5b234e6693fd alarm.co Kitchen First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 8c8fe988-fb08-43ad-a580-c29d7b935873 alarm.smoke Office Smoke & CO Alarm 04257 [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory f258d90a-0f4c-4a20-870d-c8db62072192 alarm.co Office First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 7829d7a8-384d-42c3-acdb-3813f8bfec51 alarm.smoke Dining Room Smoke & CO Alarm 63473 [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 952eabf1-8f51-4c94-b77c-2baca52dfde5 alarm.co Dining Room [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 430d43e1-17d7-4390-a6ad-67673b676fb8 alarm.smoke Garage Smoke & CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory df4a3317-8209-4711-8bd4-2ef540555d00 alarm.co Garage Smoke Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 9d60c9b1-f258-459f-824b-d7e2c5380f21 alarm.smoke Upstairs Office [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory c2191545-8634-4ab1-a7c1-cc4603aa109a alarm.co First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 631d55e7-ea22-46d0-b837-8496cd844346 alarm.smoke Master Bedroom [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 929500fa-e45f-46be-8429-7bd53b5339f3 alarm.co First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 74f0b11e-8d8c-4f0d-a597-31b7e2c64de6 alarm.smoke Upstairs Office [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 2ae5a5bb-088e-4a67-90eb-0b9f6b4fee2a alarm.co First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 9e1b5340-e92f-4222-91f1-4e2584dd4173 alarm.smoke Guest Room [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 6e58fc56-7443-455a-a816-efde4a6a515a alarm.co First Alert CO Alarm [01/11/2022, 15:03:20] [homebridge-ring] Adding new accessory 1c0a6325-00cb-4c87-9a18-b2bd8642ee78 lpd_v2 Front Door [01/11/2022, 15:03:23] [homebridge-ring] Front Door Detected Motion. Loading snapshot before sending event to HomeKit

dgreif commented 2 years ago

Ring base_station_v1 fd2e103b-a343-4bea-5c42-7dac16a8659a is offline or on cellular backup. Waiting for status to change

@Nagol94 your base station is offline, which causes things to wait indefinitely until it comes back online

Nagol94 commented 2 years ago

so the base station only appears offline here. I looked in Unifi and it is connected as well as connected in the ring app. should I try restarting the ring system?

Nagol94 commented 2 years ago

figured it out. It is a shared Ring system from my sister in laws house that is no longer in use. I had to hide the device and location in the config. { "refreshToken": "eyJhbGciOiJIUzUxMiIsImprdSI6Ii9vYXV0aC9pbnRlcm5hbC9qd2tzIiwia2lkIjoiYzEyODEwMGIiLCJ0eXAiOiJKV1QifQ.eyJpYXQiOjE2NjczMzQ2MjMsImlzcyI6IlJpbmdPYXV0aFNlcnZpY2UtcHJvZDp1cy1lYXN0LTE6YTk5NjQwZjciLCJyZWZyZXNoX2NpZCI6InJpbmdfb2ZmaWNpYWxfYW5kcm9pZCIsInJlZnJlc2hfc2NvcGVzIjpbImNsNOTTHEREALONEtsFV2ngopK2EOxnFI3ZcHAiqfn_tBVR7oSKGTiE5Q", "unbridgeCameras": true, "hideDeviceIds": [ "fd2e103b-a343-4bea-5c42-7dac16a8659a" ], "locationIds": [ "a37a1824-5f34-441f-a922-f62c19247a23" ], "platform": "Ring", "_bridge": { "username": "0E:3A:25:36:D5:31", "port": 49277 } }

Stevenwim commented 8 months ago

I know this is old but just fixed the issue ive been fighting for awhile now. Wanted to note this is a fix!