dgreif / ring

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

Unbridged unable to add accessory #1461

Closed xpldinunicrn closed 1 week ago

xpldinunicrn commented 1 month ago

Is there an existing issue for this?

Describe The Bug

when unbridging to get ready for the major update i am not able to add the accessory to homekit. in home kit the camera can be found but when filling in the setup code to ad it after 3 min it gives me unable to add.

To Reproduce

restarted the homebridge and rebooted the phone and in the ring app they work without problem. but when trying to add them the wil not be added. home bridge gives me no error, and everything sees to work normaly but when unbriging they dont seem to add.

Expected behavior

when i add the accessory with the setup code it should add it to homekit.

Relevant log output

No response

Screenshots

No response

Homebridge Ring Config

[7-8-2024, 14:50:04] [Ring] Found the following locations:
[7-8-2024, 14:50:04] [Ring]   locationId:  - Almelo
[7-8-2024, 14:50:05] [Ring] Configuring 3 cameras and 5 devices for location "Almelo" - locationId:
[7-8-2024, 14:50:05] [Ring] Configured camera  doorbell_graham_cracker Front Door
[7-8-2024, 14:50:05] [Ring] Configured camera  cocoa_camera Hallway
[7-8-2024, 14:50:05] [Ring] Configured camera  cocoa_camera Garden
[7-8-2024, 14:50:05] Front Door 9A37 is running on port -----.
[7-8-2024, 14:50:05] Please add [Front Door 9A37] manually in Home app. Setup Code: ------
[7-8-2024, 14:50:05] Hallway 648C is running on port -----.
[7-8-2024, 14:50:05] Please add [Hallway 648C] manually in Home app. Setup Code: ------
[7-8-2024, 14:50:05] Garden DB6E is running on port -----.
[7-8-2024, 14:50:05] Please add [Garden DB6E] manually in Home app. Setup Code: ------

Additional context

when turning unbridge off in the settings the camera's work like normal.

OS

ios 18

Node.js Version

v14.17.6

NPM Version

v7.22.0

Homebridge/HOOBs Version

v1.4.0 homebridge

Homebridge Ring Plugin Version

v13.0.0

Operating System

windows

tsightler commented 1 month ago

You stated Homebridge version is 1.4.0, that is from 2 years ago, please update, I believe current version is 1.8.4. Also, your NodeJS version listed is too old, although the plugin wouldn't even work if that wasn't updated so perhaps it just isn't accurate.

DadzBoyz commented 1 month ago

I seem to have the same problem. My Ring cameras have worked well using this bridge for a long time. They stopped updating, and live view stopped working 5-6 days ago.

Next:

No doorbell or cameras.

Logs:

8/7/2024, 10:17:34 AMRing Bridge starting 8/7/2024, 10:17:40 AMRing BridgeLoaded plugin 'homebridge-ring' 8/7/2024, 10:17:40 AMRing BridgeLoading 1 platforms... 8/7/2024, 10:17:40 AMRing BridgeRingERRORFailed to reach Ring server at https://oauth.ring.com/oauth/token. fetch is not defined. Trying again in 5 seconds... 8/7/2024, 10:17:40 AMRing BridgeBridge is running on port 51826. 8/7/2024, 10:17:45 AMRing BridgeRingERRORFailed to reach Ring server at https://oauth.ring.com/oauth/token. fetch is not defined. Trying again in 5 seconds... 8/7/2024, 10:17:50 AMRing BridgeRingERRORFailed to reach Ring server at https://oauth.ring.com/oauth/token. fetch is not defined. Trying again in 5 seconds...

And the logs continue with the "...AMRing BridgeRingERRORFailed to reach Ring server at ...." every 5 seconds.

Hoobs Version: 4.3.1 Homebridge Version: 1.7.0 (determined by Hoobs) Node Version: 16.20.2 All other bridges are working as expected.

xpldinunicrn commented 1 month ago

so sorry thought it filled it in for me. the following is correct: Homebridge v1.8.4 (HAP v0.12.2) System win32 | Node v20.12.0

tsightler commented 1 month ago

When you say win32, can you please indicate your install method? Are you running natively on Windows or using the recommended Hyper-V based setup? Most likely this is a firewall/NAT setup issue as accessories require ports to be opened.

xpldinunicrn commented 1 month ago

the hyper v one, it did say when i unbriged that there where ports assigned to the individual camara's but what ports would i need to open if i'm on the network? for remote i would guess that could be a issue

tsightler commented 1 month ago

It's possible that Windows firewall might be blocking the ports so I would just make 100% sure it is disabled, although that should not be the case if configured using the documented configuration of an external network.

Make sure you don't have any VPN apps active as these can conflict with local network connections. That's probably the most common issue I see. Also, make 100% sure you are on the same network. Do you have any Homekit hubs in your setup? Overall, there has to be some kind of network related issues I would think as there's not much that can go wrong on the plugin side for this function.

tsightler commented 2 weeks ago

@xpldinunicrn There have been no other reports of issues adding unbridged cameras, other than some users not being clear on the process of how to do it and what code to use, which doesn't seem to be the case here. Not only that, but this feature is not new, it's been around quite some time. Unfortunately, I'm not sure what more can be done for your case but I assume it has to be networking related, especially since it takes so long before the message comes back. Have you had any success?