Closed Trevor46 closed 1 year ago
Hi, I'm not sure if I'm using Github correctly. But here it goes. My ring alarm and smart lighting is not being seen by mqtt. I have other devices that are working in mqtt. I was chatting with with Daniel Witkin on Facebook and he says my configuration and everything looks good. Can you please help me?
Well, we're not off on a great foot here. I have no idea who Daniel Witkin is, but my concern is that you didn't provide any of the information which is asked for in the template when opening an issue, nor did you follow the advice of starting in the discussion forum prior to opening an issue if you are not willing to do so, which implies that you did not read even the very first sentence when opening this issue.
Honestly, if you did not post this additional comment I would have been inclined to simply delete this issue, however, since you did post and request assistance I will ask that you read the template and provide the information that is requested. Please describe your environments clearly, provide configuration, OS version, logs, what steps you have taken, etc.
Hi, please let me apologize for going about this the wrong way. My message to you was my second post on Github. And yours was the first reply I got. The Daniel I referenced is a top contributor on a home assistant group on Facebook. He sent me a link to a board that looked like a discussion board. He recommended I reach out to you. See attached I tried to log in there but it would not work. I went to Github to reset my password. This morning I realize that it looks like you can login with either home assistant or Github. I did read about the information in the template before I messaged you. However I don't understand what you are asking for. I will tell you what I do know and hopefully you are willing to help me even though we didn't have a good start due to my extreme lack of knowledge in the githib/ home assistant world. This is my setup I have my raspberri pi4 running my home assistant with a sky connect. I have a synology nas running my homebridge, zigbee2mqtt, Scrypted and portainer. The reason I started with home assistant is because my wife ordered some blinds that are not supported by zigbee2mqttt. I also have mqtt Explorer on my Mac laptop. The blinds are another issue lol. I have an iPhone 13 running ios 17 I have tried several times to get all of my ring devices into mqtt. Hence why I posted asking for help on Facebook. Soryy for the long reply. I know
Opps to went to fix a spelling mistake and ended posting. I really that you are probably very busy with people asking for help and can only do so much. It was never my intention to go about things incorrectly. I just have no idea what I'm doing on Github. I did not mean to annoy you or waste your time in anyway. Sorry if I have
I have tried to follow the add on install. Deleted and reinstalled the add on. Restart ha, the mqtt, ring mqtt add ons.
In general you don't need to do anything except install and configure Mosquitto addon using defaults, then install ring-mqtt with defaults, then authenticate. Without logs, there's not much to go on. You keep posting screenshots of your phone, that's going to be pretty difficult to troubleshoot from. Do you not have a computer that you can at least open the web UI from there and copy and past the logs that are visible in the UI?
Hi, when I did the add on install I did not use the mqtt information in the add on as I already had it running. Is this where I went wrong? Yes I have a laptop. I am work so I will not be able to do anything until I get home. Do you need just the ring-mqtt add on logs? Or for mqtt Explorer also? What else can I do to help you?
Assuming MQTT has been configured in Home Assistant using the recommended method, then you should not need to change the MQTT settings in ring-mqtt manually. When the Mosquitto addon starts, it registers with Home Assistant as a service, this allows other addons running on Home Assistant to use the internal HA services API to automatically discover the MQTT service as well as the information required to connect to the MQTT broker. That's what ring-mqtt does by default (that's why it's "auto_username", "auto_password", etc, it means these will be automatically discovered). If you use all defaults for your Home Assistant MQTT setup, you should not have to change the default configuration of ring-mqtt at all. Once you change the defaults, either of the MQTT broker addon or the HA MQTT setup, or ring-mqtt, then it's all on you to handle.
However, it's impossible for me to know if that is what is causing the problem in your case. There's nothing secret about ring-mqtt, it logs every step during startup, the connection to MQTT, the connection to Ring, the discovery of devices, etc. The ring-mqtt logs clearly show each step along the way.
Without logs it's just a guessing game, it's like coming on the forum and saying "my lights won't turn on, what's wrong"? Maybe the bulb is burnt, maybe the switch is bad, maybe the wiring is shorted/damaged, maybe the fixture has a problem, maybe the ballast is out, maybe the breaker is tripped, maybe the power is out. There's no single "this is where I went wrong", you must logically work through the steps until the issue is found, but the difference, vs a light being out, is that there are logs that quite literally document every step of the process and should help pinpoint the cause.
My suggestion: in the HA UI, restart the ring-mqtt addon, then go to the logs page and you should see something like this:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/ring-mqtt.sh
-------------------------------------------------------
| Ring-MQTT with Video Streaming |
| Addon for Home Assistant |
| |
| For support questions please visit: |
| https://github.com/tsightler/ring-mqtt/discussions |
-------------------------------------------------------
cont-init: info: /etc/cont-init.d/ring-mqtt.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun ring-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
-------------------------------------------------------
ring-mqtt.js version: 5.6.2
Node version v18.17.1
NPM version 9.1.2
git version 2.38.5
-------------------------------------------------------
Running ring-mqtt...
2023-09-21T14:24:15.627Z ring-mqtt Detected runmode: addon
2023-09-21T14:24:15.630Z ring-mqtt Configuration file: /data/options.json
2023-09-21T14:24:18.185Z ring-mqtt Reading latest data from state file: /data/ring-state.json
2023-09-21T14:24:18.187Z ring-mqtt Succesfully started the token generator web UI
2023-09-21T14:24:18.196Z ring-mqtt Discovered MQTT Host: core-mosquitto
2023-09-21T14:24:18.197Z ring-mqtt Discovered MQTT Port: 1883
2023-09-21T14:24:18.197Z ring-mqtt Discovered MQTT User: addons
2023-09-21T14:24:18.198Z ring-mqtt Discovered MQTT password: <hidden>
2023-09-21T14:24:18.198Z ring-mqtt MQTT URL: mqtt://addons:********@core-mosquitto:1883
2023-09-21T14:24:18.257Z ring-mqtt Attempting connection to Ring API using saved refresh token...
2023-09-21T14:24:20.729Z ring-mqtt Successfully established connection to Ring API using saved token
2023-09-21T14:24:20.731Z ring-mqtt Received updated refresh token
2023-09-21T14:24:20.732Z ring-mqtt Saving updated refresh token to state file
2023-09-21T14:24:21.746Z ring-mqtt Successfully saved updated state file: /data/ring-state.json
2023-09-21T14:24:22.731Z ring-mqtt Attempting connection to MQTT broker...
2023-09-21T14:24:22.825Z ring-mqtt MQTT connection established, processing Ring locations...
2023-09-21T14:24:25.181Z ring-mqtt ------------------------------------------------------------------------------------------
2023-09-21T14:24:25.182Z ring-mqtt This account has access to the following locations:
2023-09-21T14:24:25.182Z ring-mqtt Sightler Acres (a9ce28cb-fafb-421c-4508-673549bca)
2023-09-21T14:24:25.183Z ring-mqtt
2023-09-21T14:24:25.183Z ring-mqtt IMPORTANT: If *ANY* alarm or smart lighting hubs at these locations are *OFFLINE*
2023-09-21T14:24:25.183Z ring-mqtt the device discovery process below will hang and no devices will be
2023-09-21T14:24:25.184Z ring-mqtt published!
2023-09-21T14:24:25.184Z ring-mqtt
2023-09-21T14:24:25.184Z ring-mqtt If the message "Device Discovery Complete!" is not logged below, please
2023-09-21T14:24:25.185Z ring-mqtt carefully check the Ring app for any hubs or smart lighting devices
2023-09-21T14:24:25.185Z ring-mqtt that are in offline state and either remove them from the location or
2023-09-21T14:24:25.185Z ring-mqtt bring them back online prior to restarting ring-mqtt.
2023-09-21T14:24:25.185Z ring-mqtt
2023-09-21T14:24:25.186Z ring-mqtt If desired, the "location_ids" config option can be used to restrict
2023-09-21T14:24:25.186Z ring-mqtt discovery to specific locations. See the documentation for details.
2023-09-21T14:24:25.186Z ring-mqtt ------------------------------------------------------------------------------------------
2023-09-21T14:24:25.187Z ring-mqtt Starting Device Discovery...
2023-09-21T14:24:25.187Z ring-mqtt
2023-09-21T14:24:25.187Z ring-mqtt New location: Sightler Acres (a9ce28cb-fafb-421c-4508-673549bca)
That is what I need.
Ok great. I will send it after work. I really appreciate your time.
Ring-MQTT with Video Streaming | Addon for Home Assistant | |
---|---|---|
For support questions please visit: | ||
https://github.com/tsightler/ring-mqtt/discussions |
Running ring-mqtt...
2023-09-21T20:37:14.743Z ring-mqtt Detected runmode: addon
2023-09-21T20:37:14.749Z ring-mqtt Configuration file: /data/options.json
2023-09-21T20:37:19.641Z ring-mqtt Reading latest data from state file: /data/ring-state.json
2023-09-21T20:37:19.644Z ring-mqtt Succesfully started the token generator web UI
2023-09-21T20:37:19.650Z ring-mqtt Discovered MQTT Host: core-mosquitto
2023-09-21T20:37:19.651Z ring-mqtt Discovered MQTT Port: 1883
2023-09-21T20:37:19.652Z ring-mqtt Discovered MQTT User: addons
2023-09-21T20:37:19.653Z ring-mqtt Discovered MQTT password:
2023-09-21T20:37:27.559Z ring-mqtt IMPORTANT: If ANY alarm or smart lighting hubs at these locations are OFFLINE
2023-09-21T20:37:27.559Z ring-mqtt the device discovery process below will hang and no devices will be
2023-09-21T20:37:27.559Z ring-mqtt published!
2023-09-21T20:37:27.559Z ring-mqtt
2023-09-21T20:37:27.559Z ring-mqtt If the message "Device Discovery Complete!" is not logged below, please
2023-09-21T20:37:27.559Z ring-mqtt carefully check the Ring app for any hubs or smart lighting devices
2023-09-21T20:37:27.559Z ring-mqtt that are in offline state and either remove them from the location or
2023-09-21T20:37:27.559Z ring-mqtt bring them back online prior to restarting ring-mqtt.
2023-09-21T20:37:27.559Z ring-mqtt
2023-09-21T20:37:27.559Z ring-mqtt If desired, the "location_ids" config option can be used to restrict
2023-09-21T20:37:27.559Z ring-mqtt discovery to specific locations. See the documentation for details.
2023-09-21T20:37:27.559Z ring-mqtt ------------------------------------------------------------------------------------------
2023-09-21T20:37:27.559Z ring-mqtt Starting Device Discovery...
2023-09-21T20:37:29.560Z ring-mqtt
2023-09-21T20:37:29.561Z ring-mqtt Device Discovery Complete!
2023-09-21T20:37:29.561Z ring-mqtt ------------------------------------------------------------------------------------------
I hope I did this correctly
@Trevor46 Did you remove anything from this log, or is this exactly as it appears? It's very strange that it quite literally finds no locations. What account did you use to sign the addon into Ring? Was it the primary account or some type of shared account? It looks like a shared account that hasn't been granted access to any devices.
Hi, Sorry for the long time to reply. Was out with the family. I did nothing to the logs. I am the ring account owner, I used my login and used my two factor authentication code. My wife is a shared user on the account.
Can you please post you config? To do so please go to the ring-mqtt addon in the UI, select the Configuration tab, click the three vertical dots in the Options window and choose "Edit in YAML", then copy and paste the config. You can remove the MQTT username/password for security.
mqtt_url: mqtt://auto_username:auto_password@auto_hostname mqtt_options: "" livestream_user: "" livestream_pass: "" disarm_code: "" enable_cameras: true enable_modes: true enable_panic: true branch: addon debug: ring-* location_ids:
Sorry to ask this, but can you post a screenshot of the same? I'm very, very confused by that location_ids settings, it should be blank, but it appears to have a value of location_ids. That is super weird and not the default and could definitely cause the behavior since it will filter out all location IDs that do not match, but none of them could ever match this value. However, the formatting of the copy and paste is making it a little strange to read.
Actually, you know what, this might be easier, please just copy and paste this config over your existing one:
mqtt_url: mqtt://auto_username:auto_password@auto_hostname
mqtt_options: ""
livestream_user: ""
livestream_pass: ""
disarm_code: ""
enable_cameras: true
enable_modes: true
enable_panic: true
branch: addon
debug: ring-*
location_ids: []
After that you can restart the addon.
Please post ring-mqtt logs as before, just saying stuff isn't useful.
ok sorry
2023-09-22T01:30:51.551Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/light/state OFF
2023-09-22T01:30:51.552Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/light/brightness_state 100
2023-09-22T01:30:51.553Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/beam_duration/state 60
2023-09-22T01:30:51.554Z ring-attr [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/info/state {"batteryLevel":70,"batteryStatus":"ok","commStatus":"ok","firmwareStatus":"up-to-date","lastCommTime":"2023-09-22T01:30:51Z","lastUpdate":"2023-09-22T01:30:51Z","serialNumber":"RBPB12016BK009930","tamperStatus":"ok"}
2023-09-22T01:30:51.555Z ring-attr [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/battery/attributes {"batteryLevel":70,"batteryStatus":"ok"}
2023-09-22T01:30:56.369Z ring-mqtt [Front Door camera] Requesting an updated interval snapshot
2023-09-22T01:30:56.388Z ring-mqtt [Living Room] Requesting an updated interval snapshot
2023-09-22T01:30:56.396Z ring-mqtt [Driveway Cam] Requesting an updated interval snapshot
2023-09-22T01:30:56.404Z ring-mqtt [Deck] Requesting an updated interval snapshot
2023-09-22T01:30:56.707Z ring-mqtt [Driveway Cam] Successfully retrieved updated interval snapshot
2023-09-22T01:30:56.708Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image <binary_image_data>
2023-09-22T01:30:56.710Z ring-attr [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/attributes {"timestamp":1695346257,"type":"interval"}
2023-09-22T01:30:56.719Z ring-mqtt [Deck] Successfully retrieved updated interval snapshot
2023-09-22T01:30:56.719Z ring-mqtt [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/image <binary_image_data>
2023-09-22T01:30:56.720Z ring-attr [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/attributes {"timestamp":1695346257,"type":"interval"}
2023-09-22T01:30:56.724Z ring-mqtt [Living Room] Successfully retrieved updated interval snapshot
2023-09-22T01:30:56.724Z ring-mqtt [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/image <binary_image_data>
2023-09-22T01:30:56.724Z ring-attr [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/attributes {"timestamp":1695346257,"type":"interval"}
2023-09-22T01:30:56.898Z ring-mqtt [Front Door camera] Successfully retrieved updated interval snapshot
2023-09-22T01:30:56.898Z ring-mqtt [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/image <binary_image_data>
2023-09-22T01:30:56.899Z ring-attr [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/attributes {"timestamp":1695346257,"type":"interval"}
2023-09-22T01:31:03.136Z ring-mqtt [Shed Door ] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/alarm/f4f8a8e3-ed44-4118-965a-3a83c03b3e45/contact/state OFF
2023-09-22T01:31:03.137Z ring-attr [Shed Door ] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/alarm/f4f8a8e3-ed44-4118-965a-3a83c03b3e45/info/state {"batteryLevel":100,"batteryStatus":"full","commStatus":"ok","firmwareStatus":"up-to-date","lastCommTime":"2023-09-22T01:31:02Z","lastUpdate":"2023-09-22T01:31:03Z","linkQuality":"ok","serialNumber":"G7Q1VW01138401FP","tamperStatus":"ok"}
2023-09-22T01:31:03.138Z ring-attr [Shed Door ] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/alarm/f4f8a8e3-ed44-4118-965a-3a83c03b3e45/battery/attributes {"batteryLevel":100,"batteryStatus":"full"}
2023-09-22T01:31:26.379Z ring-mqtt [Front Door camera] Requesting an updated interval snapshot
2023-09-22T01:31:26.395Z ring-mqtt [Living Room] Requesting an updated interval snapshot
2023-09-22T01:31:26.402Z ring-mqtt [Driveway Cam] Requesting an updated interval snapshot
2023-09-22T01:31:26.409Z ring-mqtt [Deck] Requesting an updated interval snapshot
2023-09-22T01:31:26.754Z ring-mqtt [Front Door camera] Successfully retrieved updated interval snapshot
2023-09-22T01:31:26.755Z ring-mqtt [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/image <binary_image_data>
2023-09-22T01:31:26.756Z ring-attr [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/attributes {"timestamp":1695346287,"type":"interval"}
2023-09-22T01:31:26.770Z ring-mqtt [Living Room] Successfully retrieved updated interval snapshot
2023-09-22T01:31:26.770Z ring-mqtt [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/image <binary_image_data>
2023-09-22T01:31:26.771Z ring-attr [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/attributes {"timestamp":1695346287,"type":"interval"}
2023-09-22T01:31:26.781Z ring-mqtt [Deck] Successfully retrieved updated interval snapshot
2023-09-22T01:31:26.781Z ring-mqtt [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/image <binary_image_data>
2023-09-22T01:31:26.782Z ring-attr [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/attributes {"timestamp":1695346287,"type":"interval"}
2023-09-22T01:31:26.916Z ring-mqtt [Driveway Cam] Successfully retrieved updated interval snapshot
2023-09-22T01:31:26.916Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image <binary_image_data>
2023-09-22T01:31:26.917Z ring-attr [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/attributes {"timestamp":1695346287,"type":"interval"}
2023-09-22T01:31:28.395Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/motion/state OFF
2023-09-22T01:31:28.396Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/light/state OFF
2023-09-22T01:31:28.396Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/light/brightness_state 100
2023-09-22T01:31:28.397Z ring-mqtt [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/beam_duration/state 60
2023-09-22T01:31:28.397Z ring-attr [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/info/state {"batteryLevel":65,"batteryStatus":"ok","commStatus":"ok","firmwareStatus":"up-to-date","lastCommTime":"2023-09-22T01:31:28Z","lastUpdate":"2023-09-22T01:31:28Z","serialNumber":"RBPB12016BK009930","tamperStatus":"ok"}
2023-09-22T01:31:28.397Z ring-attr [Driveway 14] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/20df199f-09e2-463f-ab64-34eeaaaea578/battery/attributes {"batteryLevel":65,"batteryStatus":"ok"}
2023-09-22T01:31:56.383Z ring-mqtt [Front Door camera] Requesting an updated interval snapshot
2023-09-22T01:31:56.398Z ring-mqtt [Living Room] Requesting an updated interval snapshot
2023-09-22T01:31:56.411Z ring-mqtt [Driveway Cam] Requesting an updated interval snapshot
2023-09-22T01:31:56.420Z ring-mqtt [Deck] Requesting an updated interval snapshot
2023-09-22T01:31:56.720Z ring-mqtt [Driveway Cam] Successfully retrieved updated interval snapshot
2023-09-22T01:31:56.720Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image <binary_image_data>
2023-09-22T01:31:56.722Z ring-attr [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/attributes {"timestamp":1695346317,"type":"interval"}
2023-09-22T01:31:56.870Z ring-mqtt [Living Room] Successfully retrieved updated interval snapshot
2023-09-22T01:31:56.870Z ring-mqtt [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/image <binary_image_data>
2023-09-22T01:31:56.872Z ring-attr [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/attributes {"timestamp":1695346317,"type":"interval"}
2023-09-22T01:31:56.936Z ring-mqtt [Deck] Successfully retrieved updated interval snapshot
2023-09-22T01:31:56.936Z ring-mqtt [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/image <binary_image_data>
2023-09-22T01:31:56.937Z ring-attr [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/attributes {"timestamp":1695346317,"type":"interval"}
2023-09-22T01:31:56.947Z ring-mqtt [Front Door camera] Successfully retrieved updated interval snapshot
2023-09-22T01:31:56.948Z ring-mqtt [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/image <binary_image_data>
2023-09-22T01:31:56.948Z ring-attr [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/attributes {"timestamp":1695346317,"type":"interval"}
2023-09-22T01:32:01.916Z ring-mqtt [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/motion/state OFF
2023-09-22T01:32:01.917Z ring-mqtt [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/light/state ON
2023-09-22T01:32:01.917Z ring-mqtt [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/light/brightness_state 100
2023-09-22T01:32:01.918Z ring-mqtt [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/beam_duration/state 60
2023-09-22T01:32:01.918Z ring-attr [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/info/state {"batteryLevel":40,"batteryStatus":"ok","commStatus":"ok","firmwareStatus":"up-to-date","lastCommTime":"2023-09-22T01:32:01Z","lastUpdate":"2023-09-22T01:32:01Z","serialNumber":"RBPS12027BK009320","tamperStatus":"ok"}
2023-09-22T01:32:01.919Z ring-attr [Driveway 3] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/lighting/edf216a0-2de2-4e11-aa2c-1344af5e28d6/battery/attributes {"batteryLevel":40,"batteryStatus":"ok"}
2023-09-22T01:32:26.384Z ring-mqtt [Front Door camera] Requesting an updated interval snapshot
2023-09-22T01:32:26.398Z ring-mqtt [Living Room] Requesting an updated interval snapshot
2023-09-22T01:32:26.410Z ring-mqtt [Driveway Cam] Requesting an updated interval snapshot
2023-09-22T01:32:26.421Z ring-mqtt [Deck] Requesting an updated interval snapshot
2023-09-22T01:32:26.758Z ring-mqtt [Living Room] Successfully retrieved updated interval snapshot
2023-09-22T01:32:26.759Z ring-mqtt [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/image <binary_image_data>
2023-09-22T01:32:26.760Z ring-attr [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/attributes {"timestamp":1695346347,"type":"interval"}
2023-09-22T01:32:26.854Z ring-mqtt [Driveway Cam] Successfully retrieved updated interval snapshot
2023-09-22T01:32:26.855Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image <binary_image_data>
2023-09-22T01:32:26.857Z ring-attr [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/attributes {"timestamp":1695346347,"type":"interval"}
2023-09-22T01:32:26.864Z ring-mqtt [Front Door camera] Successfully retrieved updated interval snapshot
2023-09-22T01:32:26.864Z ring-mqtt [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/image <binary_image_data>
2023-09-22T01:32:26.865Z ring-attr [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/attributes {"timestamp":1695346347,"type":"interval"}
2023-09-22T01:32:27.046Z ring-mqtt [Deck] Successfully retrieved updated interval snapshot
2023-09-22T01:32:27.046Z ring-mqtt [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/image <binary_image_data>
2023-09-22T01:32:27.047Z ring-attr [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/attributes {"timestamp":1695346347,"type":"interval"}
2023-09-22T01:32:56.385Z ring-mqtt [Front Door camera] Requesting an updated interval snapshot
2023-09-22T01:32:56.405Z ring-mqtt [Living Room] Requesting an updated interval snapshot
2023-09-22T01:32:56.412Z ring-mqtt [Driveway Cam] Requesting an updated interval snapshot
2023-09-22T01:32:56.420Z ring-mqtt [Deck] Requesting an updated interval snapshot
2023-09-22T01:32:56.943Z ring-mqtt [Living Room] Successfully retrieved updated interval snapshot
2023-09-22T01:32:56.943Z ring-mqtt [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/image <binary_image_data>
2023-09-22T01:32:56.945Z ring-attr [Living Room] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/5c475eeb6d63/snapshot/attributes {"timestamp":1695346377,"type":"interval"}
2023-09-22T01:32:56.964Z ring-mqtt [Driveway Cam] Successfully retrieved updated interval snapshot
2023-09-22T01:32:56.964Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image <binary_image_data>
2023-09-22T01:32:56.965Z ring-attr [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/attributes {"timestamp":1695346377,"type":"interval"}
2023-09-22T01:32:57.013Z ring-mqtt [Front Door camera] Successfully retrieved updated interval snapshot
2023-09-22T01:32:57.013Z ring-mqtt [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/image <binary_image_data>
2023-09-22T01:32:57.014Z ring-attr [Front Door camera] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/047bcb1e7bbc/snapshot/attributes {"timestamp":1695346377,"type":"interval"}
2023-09-22T01:32:57.026Z ring-mqtt [Deck] Successfully retrieved updated interval snapshot
2023-09-22T01:32:57.026Z ring-mqtt [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/image <binary_image_data>
2023-09-22T01:32:57.026Z ring-attr [Deck] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/649a6301fc14/snapshot/attributes {"timestamp":1695346377,"type":"interval"}
REFRESH
OK, great, so ring-mqtt is working! It has connected to Ring and to the MQTT broker and is publishing device discovery and state as can be seen from the log. If you are still not getting entries in Home Assistant then you'll have to dig on that side.
The logs now show some of my other ring devices. I clicked on the mqtt add on from the side bar. There was a pop up saying home assistant under username. Does this mean anything?
The log only shows the cameras again
2023-09-22T01:40:57.008Z ring-mqtt [Driveway Cam] ring/d8f60580-e09c-432b-aa62-0a0b4b97ace4/camera/3ce1a1b0080c/snapshot/image
Yes, the log in the UI only shows the last 50 lines or so and cameras will dominate the logs because they have a lot more activity than sensors due to ongoing snapshots, etc (as can be clearly seen in the logs). At this point ring-mqtt is running as it should and publishing discovery and state, that's it, it's working. From that point it's up to your MQTT broker to pass the messages on to Home Assistant.
oh ok. so I guess I play with the mqtt explorer now. What did I do wrong in my setup for the location id thing? did I miss a step or configure something wrong? Also I only saw a couple of other ring devices in the logs. I have 14 solar path lights and an alarm system. Does it matter that I didn't see them in the logs now that the add on is functional? it's still an mqtt issue?
It's very unlikely that some devices would be discovered while others are not, unless they are connected to multiple locations, as they are all returned with a single call to the Ring location API. I certainly see at least some alarm and smart lighting devices in the logs you posted. For example, there is Driveway 3, 5 & 14, which are clearly lights, there is Shed Door, which appears to be an alarm contact sensor. As I said, because you have so many cameras they will dominate the logs as the other devices don't get updates as often (only every 5 minutes unless there is a state vs every 30 seconds by default for wired cameras).
All discovered devices are listed, or you can restart the addon and then quickly switch to the logs view and keep hitting refresh and you might be able to catch the list of all devices before it scrolls away as there is a short pause for a couple of seconds before discovery is sent to MQTT. You can also get full logs using the command line as addons are just Docker containers, but my gut feeling was that you were not particularly skilled with the command line. If I'm misreading that, then instructions for dumping full logs to a file are here: https://github.com/tsightler/ring-mqtt-ha-addon/blob/main/GET-LOGS.md.
Regarding what you did wrong, I don't honestly have any way to know, somehow an entry was added to the location_id option as that is certainly not default. My gut says maybe you clicked around in the HA config UI and did it by accident, but I have no idea. I would personally pay very close attention to your MQTT config as well and verify it is as close to default as possible. Perhaps it can't be 100% default since you are running zigbee2mqtt externally.
Regardless, by all evidence at this point ring-mqtt is running and doing what it should be doing, that's all I can do.
you are exactly right. I tend to not do anything with command lines. I am in no way ready to mess with that stuff yet. I have in Homebridge once and it took me a really long time and a json editor. I really really appreciate all of your time and energy in getting it working. Is there anything I can do to repay you for your efforts?
If you want, we can try to troubleshoot the MQTT portion as well. If you can post the Mosquitto broker addon config, and also a screenshot of the MQTT Integrations entries page (Settings...Devices & Services...MQTT) we can see if there's anything obvious that might block discovery. Have you intentionally configured in ACLs (it seems like some of the guides tell people to do this, but it just causes problems for people that don't really understand what that means).
If you have time sure we can try. I will post the config shortly
There really isn't much config in the broker add on. just some login info an port info. is this what you need?
I just checked the mqtt integration. same thing. not much info. IP address and ports. I will post all if you would like?
Yes, you can blank out the passwords or obfuscate the users if you want, but you can't troubleshoot things without seeing the settings. You say it's not working, and it sounds like you are creating manual users in the MQTT config so that's probably the first thing I need to understand as that's no default.
I have not created users. I usually don't mess with this stuff. i will send the mqtt broker info first
I Hope this worked
this is the mqtt integration config
Sorry, got late and I had to get some sleep. Please click the "Re-configure MQTT" option and provide a picture of that.
Hey man no worries, You are doing me a huge favour by helping me out. sorry I didn't get back to you sooner it was a heck of a work day
Hey, did you see anything goofy in the mqtt config?
Not really, but your second screenshot was the same as the first and didn't actually include the configuration that I was looking for. I want to see this screen:
Ah ok. Sorry I misunderstood. I will send it after work 👍
Here you are. Sorry about the confusion
So what is that IP address? Is that on another system or is that the IP address of your HA server? Normally I would not expect to see a real IP address here unless you were using an external broker, but above you indicated you were running zigbee2mqtt on an external machine for some reason, so perhaps you are using an external broker? If it was using defaults it would just say "core-mosquitto" here instead of having an IP address. Now, I'm not saying that what you have is wrong, I don't have any way to know about your setup, perhaps that is just the local address of your HA machine and you've exposed the broker externally, which is technically fine although should not be required. I'm just saying it's not default.
It would be somewhat interesting to see what the settings on the next screen are, in case any of those are also not default.
The IP address is the IP address of my Synology was that I'm running my Homebridge, zigbee2mqtt, scrypted and deconz etc on. My home assistant is running on a raspberri pi4. I had tried running zha on the Skyconnect for the blinds my wife had ordered. I found that the zha devices were eating batteries and kept going off line so I switched everything back to z2m.
OK, but that means you are not using default settings and implies you are running not just zigbee2mqtt on the Synology but also an MQTT broker (perhaps Zigbee2Mqtt has a broker built in, I have no idea, I don't know anything about it).
Based on the above screenshot and statement you have configured your Home Assistant to connect to an MQTT broker running on the Synology. However, you have also installed the Mosquitto addon, which is also an MQTT broker, on Home Assistant, and it's that broker which is being used by ring-mqtt. This is not a valid configuration as you can only have a single broker and all clients using MQTT must connect to that same broker (technically it is possible to have multiple brokers, but that is an advanced configuration way beyond anything needed for a simple home setup).
There are a few ways to address this. Probably the easiest is to simply configure ring-mqtt to connect to the broker at 192.168.86.25. I'm not saying that's the right way, but it is probably the easiest and has no risk of breaking what it already working. You should be able to just change the MQTT option on the ring-mqtt addon to (assumes you are allowing anonymous access on the broker):
mqtt://192.168.86.25
Since I have no idea what you actually have configured on the Synology, I can't really help you more than that. You seemed to mention using MQTT Explorer earlier, do you know what settings you have to use to connect to your broker and see messages from Zigbee2Mqtt? If so, you should just configure ring-mqtt to use the same settings. If you have to enter a username/password to connect to the broker at 192.168.86.25 then you need to add those to the URL:
mqtt://<username>:<password>@192.168.86.25
Yes you are correct the mqtt explorer is running on the nas, I think it would probably be better to use the sky connect with the pi for my z2m. I just don't know how to swap everything over to the pi. do I just use the pi IP address for the sky connect and enter that info into ha?
I'd guess it doesn't really matter where the Sky Connect is, although I don't know anything about it really, but I'm assuming it is just a Zigbee adapter with Matter support that uses zigbee2mqtt. The only thing is, you can only have one MQTT broker. It can be on the Synology or on the Pi, but everything has to be configured to use the same one.
Right now you have one on both the Synology and the Pi, but zigbee2mqtt and Home Assistant are configured to use the one on the Synology, while ring-mqtt is using the one on the Pi.
Realistically, you can just uninstall the Mosquitto addon on the PI and manually configure the MQTT settings on the ring-mqtt addon, and it will probably work.
How you decide to setup MQTT for your environment is well outside the scope of ring-mqtt and, unfortunately, I'm going to have to leave it to you to figure that out. The Home Assistant forums are probably your best resource for that, but, overall, you just need to make sure you only have a single MQTT broker, and that Zigbee2MQTT, Home Assistant and ring-mqtt all use that broker. Where it's at is not that important, although I personally prefer to run everything on the Home Assistant host that I can.
you are correct about the sky connect dongle. it's apparently the one created by the people at home assistant. I want to have everything run from home assistant eventually. Once I learn hoe to do automations, dummy switches and scenes in home assistant. Maybe I will buy the new green ha box. If onlyI could get the blinds my ordered supported by z2m lol. I entered the mqtt info into the ring mqtt and it works. I can now see my ring devices in ha. Thank you so so much. how can I repay you for all of your help?
No repayment required, I'm glad it is working. I'll close this now. Good luck!
!!!! Important !!!!
For general assistance using this project please review the Q&A Discussion group and, if your question is unanswered there, please post there first. If you believe your issue is more complex than a simple Q&A then you can open an issue here but be sure to follow the guidelines below:
A note regarding camera support
The ring-mqtt project does not magically turn Ring cameras into a CCTV camera suitable for 24x7 streaming. Ring cameras are designed to work with Ring cloud servers for on-demand streaming based on detected events (motion/ding) or interactive viewing. Even when using ring-mqtt, all streaming still goes through Ring cloud servers and is not local. Using this project for continuous streaming is not a supported use case and attempts to do so will almost certainly end in disappointment. Any support cases opened for issues with continuous streaming (i.e. more than one streaming session back-to-back) will be closed as unsupported. This includes use with NVR tools like Frigate or motionEye.
Please read before opening a request for assistance
This is a community project and opening a request for assistance indicates that you are prepared to interact as a community member. This does not mean that I expect you to be a developer or a super tech guru, but you must at least be willing to put some time and effort into helping me understand your environment, answer questions, provide logs, and do so in a reasonably timely manner. In general I will do my best to help whenever I can, but I answer these issues on my own personal time and my effort to do so will largely be commensurate to the effort that you put in. I'm sorry for being so blunt, but recently, the number of people that have opened requests with a single sentence, or open an issue and then never respond to any request for additional information, has grown to the point that it really makes working on this project less than enjoyable, and that puts the entire project at risk.
I don't want to discourage users from opening a request for assistance if they have a problem, and I promise that, if proper effort is made, I will do my best to meet that effort, assuming available time. Please remember that I am not associated with Ring in any way, other than the fact that I own some of their products, I can't help you solve problems with your Ring devices and I can't do anything about their limitations, I suffer with those limitations just like you do. The goal of this project is simply to make it as easy as possible to integrate the features of Ring products with the home automation platform of your choice.
Describe the problem
A clear and concise description of the problem with which you need assistance. Please enter a brief summary of the problem in the title above as well.
Describe your environment
Please include details on your enviornment, including OS versions, platform, etc. For standard installs including NodeJS, rtsp-simple-server and mosquitto clients versions is highly recommended.
Describe any steps you've taken to attempt to resolve the problem
Please make sure to share you configuration settings (other than sensitive information like token, etc) and anything you have done to attempt to solve the problem to this point.
Debug Logs
For most issue the only effective method for me to see what is happening is to review the logs. Without this, I'll mostly just be guessing at the problem. If you are not willing to provide logs when opening an issue, then please do NOT open an issue, use discussions instead. If you are opening a support request, please run the script with DEBUG=ring-* enabled (note this is enabled by default for the addon and Docker versions) and collect logs. Logs will likely contain potentially sensitive information so you probably do not want to post them publicly on Github, which I certainly understand. Please feel free to send the logs, or a link to download them, to my personal email address, which is the same username at gmail and be sure to reference the open issue by number or link.