Is there a way to HA to set off the ring alarm? I have a few wayze contact sensors and would be nice to have this possibility.
Ring also allow us to setup a chime when a ring contact sensor is open, is there a way to trigger that from HA? Thanks.
Right now, no. I have been considering implementing panic buttons, similar to the feature in the app. Then you could trigger a panic alarm via automation. I have some concerns about false alarms but the bigger issue is that I just havenāt had time to work on this project lately. There are a number of features outstanding but Iām going to guess that i wonāt have time to work on them until this summer at the earliest.
I see, thank you for your reply!
Having some issues with setting this up, if i change the host name to the IP of my home assistant instance (running on a Oracle VM) i get this in the output log for the add-on
| Ring Device Integration via MQTT |
| Addon for Hass.io |
| |
| Report issues at: |
ring-mqtt.js version 3.1.0
Node version v12.15.0
NPM version 6.13.4
git version 2.24.3
Running ānpm audit fixā to update packages with any vulnerabilitiesā¦
removed 1 package and updated 3 packages in 10.597s
7 packages are looking for funding
run npm fund
for details
fixed 5 of 6 vulnerabilities in 388 scanned packages
1 vulnerability required manual review and could not be updated
Running ring-mqttā¦
2020-05-14T01:16:20.554Z ring-mqtt Configuration file read from: /data/options
2020-05-14T01:16:22.869Z ring-mqtt Connection to Ring API successful
2020-05-14T01:16:22.871Z ring-mqtt Starting connection to MQTT brokerā¦
2020-05-14T01:16:25.254Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:26.262Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:26.266Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:27.269Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:27.273Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:28.274Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:28.280Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:29.282Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:29.285Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:30.288Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:30.290Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
2020-05-14T01:16:31.293Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:16:31.296Z ring-mqtt Unable to connect to MQTT broker. Connection refused: Not authorized
In the notifications of home assistant, i get the message login attempt invalid from IP 172...*, however if i change the host name to the IP that was mentioned in the above notification, it gets stuck on attempting to connect to MQTT
Running ring-mqtt...
2020-05-14T01:19:48.407Z ring-mqtt Configuration file read from: /data/options
2020-05-14T01:19:50.725Z ring-mqtt Connection to Ring API successful
2020-05-14T01:19:50.726Z ring-mqtt Starting connection to MQTT brokerā¦
2020-05-14T01:19:52.183Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:53.188Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:54.190Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:55.193Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:56.197Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:57.198Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:58.201Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:19:59.204Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:20:00.207Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:20:01.210Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:20:02.215Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:20:03.218Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
2020-05-14T01:20:04.221Z ring-mqtt Attempting to reconnect to MQTT brokerā¦
and the login notification goes away, once i change the host to the IP above, this pops in in the MQTT log
1589419308: New connection from 172...* on port 1883.
[INFO] found homeassistant on local database
1589419309: New client connected from 172...* as auto-30C21704-61EF-4309-C633-A55A11413681 (p2, c1, k60, uāhomeassistantā).
no devices show up at all, is the issue with the MQTT if so, how do i fix this and if its with the add-on, what have i done wrong
new to most of this but looking forward to getting this all working
I think the errors are pretty much telling you what you need to know. Thereās almost no reason you should have to change the IP address unless you are using an external MQTT broker. If you are running the standard mosquitto addon then donāt change the IP.
Your original error (before changing anything) clearly says:
Unable to connect to MQTT broker. Connection refused: Not authorized
That means the script connected (so IPs and such are obviously correct) but that the MQTT broker refused the connection because the MQTT client (in this case the ring-mqtt addon) was not authorized to connect. Did you read the documentation and set the mqtt_user/mqtt_pass settings as required?
Good afternoon all!
@tsightler thank you for your hard work! been looking for this for a while and finally decides to give it a try!
Guys iām looking for some helpā¦ Iām running home assistant on an RPi4, I recently installed docker for windows 10 to be able to run ai tool for my blue iris setupā¦ so iām trying to run ring-mqtt on the same windows docker.
this is that I did on power shell:
docker pull tsightler/ring-mqtt
docker run -d --restart=unless-stopped -e āMQTTHOST={192.168.0.***}ā -e āMQTTPORT={1883}ā -e āMQTTRINGTOPIC={ring topic}ā -e āMQTTHASSTOPIC={hass/status}ā -e āMQTTUSER={mymqttuser}ā -e āMQTTPASSWORD={mymqttpassword}ā -e āRINGTOKEN={ring refreshToken}ā -e āENABLECAMERAS={true}ā -e āRINGLOCATIONIDS={}ā tsightler/ring-mqtt
when I do this iām able to see the ring-mqtt container on the windows docker. but it just keep restartingā¦ it doesnāt do anything else. it said "runningā then it quickly change to ārestartingā
any help will be apprecitated!!!
You probably want to run it interactively (with -it instead of -d) so that you can see the output. None of us are going to be able to help much with that.
I donāt know if you have all of those brackets list ā{}ā in your actual docker run command, but they are not needed and could be the source of your issues. You just need the actual values. As a general rule you should only need the values you want to change.
@tsightler thanks for your quick response and your help! I didnāt realize that I left the brackets!!! I removed them and there we go! now iām going to keep reading to set it up as best as posibleā¦ for now all i see are the binary sensor and the alarm control panel on the entities. no battery, camera so i will keep reading the post!
Thanks again!
I see that people are able to see their lock with this solution. but i canāt see mine at all or the doorbell camera even i set it to trueā¦ any suggestion?
Hi all ā great add-on, has been working well for me. Today, unfortunately we had my son set off the alarm. For whatever reason, when I have the alarm set away by automation when we are not home, I do not get any notification from Ring. When the alarm was set off, we received no notification (other than a phone call from Ring!). Odd, as I receive notifications through my Ring cameras.
I checked the logs, it did not appear that the status/state of the alarm changed in Home Assistant when triggered. Is there a way to detect when alarm has been triggered so I can setup a notification through home assistant? Thanks
Unfortunately, as of now, there is no way to monitor alarm status in HA as the script does not forward this status. It is on my todo list but this project has taken a backseat over the last few months due to other issues that have occupied my time. Iām hoping to pick this back up in July and work through at least some of the backlog of feature requests, especially device support and alarm status.
That being said, thereās absolutely no reason that I can think of that you should not receive a notification from the Ring app regardless of the alarm being armed by automation or not. I certainly receive them and the call the script is using the arm the alarm is exactly the same as what the app uses.
Can anyone assist me on how to get my lock and doorbell camera with this add on ?
Looks mine stops working, I am running docker, restarted it couple times, all devices status are still unavailable in HA stats page.
Does anyone else have issue? The docker doesnāt have any log output, how do I check whatās wrong?
I tested the motion sensor, there was motion detected on the ring app, but nothing show up in mqtt, and HA status page.
Thanks!
I think for some reason the the token was expired. (donāt know how to verify it).
Started fresh and it worked now.
No problem, thanks for your time. I definitely need to figure out why Iām getting no notifications from Ring directly. Thanks, looking forward to it.
Iād need the debug output to have any chance of determining why the lock isnāt working. Could just be a bug. I donāt personally have a lock but others have reported success with the code as is. You can open an issue on the Github page for the addon and we can work through it.
For the doorbell camera, debug logs are also needed, but I guess my first question is if you set the config option to enable cameras or not? Cameras are, by default, not enabled since Home Assistant has a built-in component to support Ring cameras and a lot of people already use that. You have to set the config option āenable_camerasā to true. If youāve done this and your camera is still not showing up then debug output is needed to see if itās showing up there.
@tsightler thanks again for your reply! once i get home i will get that debugā¦ i have it running on docker so i think i need to do it on the powershell right?
The only way i can see my doorbell is if i do the regular ring integrationā¦ but if i delete it and just run this integration i donāt see it.
When running the docker install are you setting the environment variable ENABLECAMERAS=true
?
To get debug output from docker just add DEBUG=ring-mqtt
to the docker run command and run it interactively.
Appreciate you taking the time to make this add-on. Love it so far.
Has anyone successfully set up an automation using the Ring Motion sensor? I can view the status of the sensor in lovelace, but canāt create an automation with it for some reason.
Of course you can setup automations. Are you perhaps referring to not being able to setup automations via the UI? If so, thatās likely correct as I believe the UI is limited to setting up automation for entities with devices and, for right now, the addon does not provide the required information for entities to be registered in the device registry (itās on the roadmap if I ever get back to this project).
However, you can certainly create automations with what I guess would now be called the āold fashioned wayā using YAML. This was the standard way to do automations when this plugin was created and is still the only way to do more advanced functions.