November 15, 2019

HomeKit bridge with Ring

With HomeBridge installed on a Raspberry Pi, (RPi), You just install the homebridge-ring plugin and the Ring accessories will appear in Apple HomeKit

This post will cover the Ring video doorbell but is a guide for other Ring products.

Prerequisites

Installation
Log on to the RPi in a terminal/ssh session and install the software


sudo npm install -g homebridge-ring

edit the "config.json" according to the instructions

If using Two Factor Auth, or if You don't wan't to have Your credentials in the "config.json" file, use a token instead.

Run the command with Your credentials for the Ring account


$ npx -p ring-client-api ring-auth-cli
npx: installed 168 in 29.448s
This CLI will provide you with a refresh token which you can use to configure ring-client-api and homebridge-ring.
Email: your.mail@mail.com
Password: 123456

Successfully logged in to Ring. Please remove your email/password from your config and add the following instead:

"refreshToken": "eyJhbGcxxxxxxxxxxxxxxxxxxxuFWByT8A"

Please note;
  • running this command will take up to 1 minute, since it's installing npx
  • the token is around 100 characters long.

Use the refreshToken in "config.json".

If using my setup with systemd autostart
, stop homebridge with 

$ sudo systemctl stop homebridge

and restart homebridge manually with just 

$ homebridge

Check log and You will see something like....

[11/16/2019, 10:47:22] ---
[11/16/2019, 10:47:24] Loaded plugin: homebridge-ring
[11/16/2019, 10:47:24] Registering platform 'homebridge-ring.Ring'
-
[11/16/2019, 10:47:36] [Ring] Configuring 1 cameras and 1 devices for location "XXX" - locationId: 60-xx-216
[11/16/2019, 10:47:36] [Ring] Adding new accessory doorbell_v4 Front Door
[11/16/2019, 10:47:36] Front Door is running on port 37xxx.
[11/16/2019, 10:47:36] Please add [Front Door] manually in Home app. Setup Code: 031-XX-XXX

Picture edited
and then add the camera using these instructions.

Now You should be up and running with the camera visible in the Home app.

Exit from homebridge with Ctrl + C and then restart with 


$ sudo systemctl restart homebridge

and You are back in production.

No comments:

Post a Comment

Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !