FacebooktwitterredditpinterestlinkedinmailFacebooktwitterredditpinterestlinkedinmail

A few weeks ago I installed the Ring Alarm and wrote a post about it. Towards the end, noted that I wanted to integrate it with Home Assistant. Unfortunately, native integration isn’t there yet, but the good news, at least for those running Hass.io, is that there is a Hass.io addon that will integrate all Ring devices via MQTT.

If you don’t have Hass.io, it’s still very much possible to get this going, but I just don’t know the details on how to do that. So I’m not going to go into any detail on how to do that.

MQTT

The first thing that you need to do is install an MQTT broker. Many HA users already have that. If you don’t, then the easiest way to get it running is to use the Hass.io addon. I’m currently using the official Mosquitto Broker addon. But I’ve been thinking about moving to the community addon, MQTT Server and Web Client. Either should work just fine. I recommend configuring it with a username and password.

After you set it up, you will need to add some config to the HA yaml file and then restart HomeAssistant.

mqtt:
  broker: core-mosquitto
  username: username
  password: password
  discovery: true
  discovery_prefix: homeassistant
  birth_message:
    topic: 'hass/status'
    payload: 'online'
    qos: 0
    retain: false

Ring HASS.io Addon

Next, install the Ring addon for Hass.io. Go to the Hass.io menu and then to the Addon Store. Add the https://github.com/rs1932/ring-alarm-hassio-addon repository. Open the Ring Addon, and edit the config for it. You should only need to add the username and password for the MQTT broker and the email/password for Ring. You may need to change the IP address for the MQTT broker as well.

Now when you start the addon, the sensors should show up in Home Assistant. They will definitely show up in the states view. In lovelace, they might have to be added before they will show up, depending on how you have it setup.

Feel free to comment below if you have any questions.

 

 

16 Replies to “Integrating Ring Alarm with Home Assistant

    1. Yes. Assuming you have the config for the ‘birth message’ in your HA configuration. It worked fine for me, and I had someone on Reddit that added that to theirs, and it fixed it for them.

  1. Hi

    Been trying to get this going for a month. Did a fresh install of HASSIO yesterday

    HASSIO on a Pi3 Community MQTT

    All the sensors show in the Ring add-on log file but zero cute pictures on the overview tab as well none of the sensors show in states.  Log for Mqtt says happy also

    Any ideas what I am missing?

    Thanks

    Grey

    1. Did you add the config for discovery in your Home Assistant config? They won’t show in Home Assistant automatically unless you have that enabled.

  2. You talking about this ?

    # MQTT mqtt: broker: 127.0.0.1 username: mqttuser password: mqttpw discovery: true discovery_prefix: homeassistant birth_message: topic: ‘hass/status’ payload: ‘online’ qos: 0 retain: false

    1. Yes. That looks right. Make sure to look at the HA logs to make sure that HA is connecting to your broker. That connection is the only thing that I can think of that might be the problem based on what you said.

  3. Thanks, of course it was pilot error

    I installed the mosquito web server and client not the broker.

    silly thing works 🙂

    Thanks again,

    Grey

  4. Hi,

     

    thank you for this add-on. works really good except once small issue.

    I’ve added my schlage lock to ring alarm.

    -From ring app I can lock and unlock

    -from Hassio console when I try to lock or unlock nothing happens

    -if I lock or unlock using ring app, I can see the updated state in hassio

     

    MQTT log shows below error:

    ring-alarm-mqtt Received set lock state LOCK for lock Id: xxxxxx-xxxx-xxxxx-xxxx-xxxxx

    ring-alarm-mqtt Location Id: xxxx-xxxxx-x

    (node:40) UnhandledPromiseRejectionWarning: TypeError: location.setDeviceInfo is not a function

    at setLockTargetState (/ring-alarm-mqtt/ring-alarm-mqtt.js:379:22)

    at processCommand (/ring-alarm-mqtt/ring-alarm-mqtt.js:426:17)

    at process._tickCallback (internal/process/next_tick.js:68:7)

    (node:40) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 13)

     

    I removed my lock ID and Ring location ID from the message.

     

  5. Trying to get this going, but when I add the MQTT code to the Yaml the HASSIO system will not come back up. I have the broker setup and the u/p match

    1. Post your yaml. I can try to help if you want. But you may get more eyes on it if you post on the home assistant forum or subreddit.

  6. Ok, so I think I got this up and running. However, no alarm components are coming up. Here is my setup. Please advise what  I’m doing wrong here.

    Configuration.yaml

    mqtt:

    broker: 127.0.0.1

    username: admin

    password: XXXXXXX

    discovery: true

    discovery_prefix: homeassistant

    birth_message:

    topic: ‘hass/status’

    payload: ‘online’

    qos: 0

    retain: false

     

    Mosquitto Broker

    {

    “logins”: [

    {

    “username”: “admin”,

    “password”: “XXXXXX”

    }

    ],

    “anonymous”: false,

    “customize”: {

    “active”: false,

    “folder”: “mosquitto”

    },

    “certfile”: “fullchain.pem”,

    “keyfile”: “privkey.pem”

    }

     

    Ring Alarm Hassio Integration

    {

    “host”: “127.0.0.1”,

    “port”: 1883,

    “ring_topic”: “ring”,

    “hass_topic”: “hass/status”,

    “mqtt_user”: “admin”,

    “mqtt_pass”: “XXXXXX”,

    “ring_user”: “XXXXXX@gmail.com”,

    “ring_pass”: “XXXXXX”

    }

Leave a Reply

Your email address will not be published. Required fields are marked *