tsightler / ring-mqtt

Ring devices to MQTT Bridge
MIT License
600 stars 106 forks source link

Support: My devices are not showing up HA #781

Closed mitdesai closed 9 months ago

mitdesai commented 9 months ago

Describe the Issue

I had installed the add-on and it was working fine for sometime. While I was migrating the instance to a different machine, something went wrong and my ring devices stopped communicating. I got no status for any of the devices. So I deleted each and every one from the MQTT devices and reinstalled the Ring Addon. But now I do not see any devices under MQTT.

Steps take so far

I manually deleted all ring devices under MQTT before reinstalling RING Addon. After new install and successful authentication, I see no activity in the ring logs. It says the state is up-to-date. I believe it is using some cached information from the previous install and not repopulating the entity list.

Log Output

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.3
Node version v18.17.1
NPM version 9.1.2
git version 2.38.5
-------------------------------------------------------
Running ring-mqtt...
2024-02-01T05:54:49.480Z ring-mqtt Detected runmode: addon
2024-02-01T05:54:49.480Z ring-mqtt Configuration file: /data/options.json
2024-02-01T05:54:50.140Z ring-mqtt Reading latest data from state file: /data/ring-state.json
2024-02-01T05:54:50.141Z ring-mqtt Succesfully started the token generator web UI
2024-02-01T05:54:50.141Z ring-mqtt Discovered MQTT Host: core-mosquitto
2024-02-01T05:54:50.142Z ring-mqtt Discovered MQTT Port: 1883
2024-02-01T05:54:50.142Z ring-mqtt Discovered MQTT User: addons
2024-02-01T05:54:50.142Z ring-mqtt Discovered MQTT password: <hidden>
2024-02-01T05:54:50.142Z ring-mqtt MQTT URL: mqtt://addons:********@core-mosquitto:1883
2024-02-01T05:54:50.177Z ring-mqtt Attempting connection to Ring API using saved refresh token...
2024-02-01T05:54:52.837Z ring-mqtt Successfully established connection to Ring API using saved token
2024-02-01T05:54:52.838Z ring-mqtt Received updated refresh token
2024-02-01T05:54:52.838Z ring-mqtt Saving updated refresh token to state file
2024-02-01T05:54:53.859Z ring-mqtt Successfully saved updated state file: /data/ring-state.json
2024-02-01T05:54:54.839Z ring-mqtt Attempting connection to MQTT broker...
2024-02-01T05:54:54.901Z ring-mqtt MQTT connection established, processing Ring locations...
2024-02-01T05:54:57.391Z ring-mqtt ------------------------------------------------------------------------------------------
2024-02-01T05:54:57.391Z ring-mqtt This account has access to the following locations:
2024-02-01T05:54:57.391Z ring-mqtt            Home (***-***-***-***-***)
2024-02-01T05:54:57.391Z ring-mqtt                                                                                           
2024-02-01T05:54:57.391Z ring-mqtt IMPORTANT: If *ANY* alarm or smart lighting hubs at these locations are *OFFLINE* 
2024-02-01T05:54:57.391Z ring-mqtt            the device discovery process below will hang and no devices will be    
2024-02-01T05:54:57.391Z ring-mqtt            published!                                                             
2024-02-01T05:54:57.391Z ring-mqtt                                                                                           
2024-02-01T05:54:57.391Z ring-mqtt            If the message "Device Discovery Complete!" is not logged below, please
2024-02-01T05:54:57.391Z ring-mqtt            carefully check the Ring app for any hubs or smart lighting devices    
2024-02-01T05:54:57.391Z ring-mqtt            that are in offline state and either remove them from the location or  
2024-02-01T05:54:57.391Z ring-mqtt            bring them back online prior to restarting ring-mqtt.                  
2024-02-01T05:54:57.391Z ring-mqtt                                                                                           
2024-02-01T05:54:57.391Z ring-mqtt            If desired, the "location_ids" config option can be used to restrict   
2024-02-01T05:54:57.391Z ring-mqtt            discovery to specific locations. See the documentation for details.    
2024-02-01T05:54:57.391Z ring-mqtt ------------------------------------------------------------------------------------------
2024-02-01T05:54:57.391Z ring-mqtt Starting Device Discovery...
2024-02-01T05:54:57.391Z ring-mqtt                                                                                           
2024-02-01T05:54:57.391Z ring-mqtt New location: Home (***-***-***-***-***)

Screenshots

No response

Config File

mqtt_url: mqtt://auto_username:auto_password@auto_hostname
mqtt_options: ""
livestream_user: ""
livestream_pass: ""
disarm_code: ""
enable_cameras: true
enable_modes: false
enable_panic: false
branch: addon
debug: ring-*
location_ids:
  - ***-***-***-***

Install Type

HomeAssistant Addon

Version

v5.6.3

Operating System

HomeAssistant OS

Architecture

x86_64

tsightler commented 9 months ago

Please read the message that says "IMPORTANT" right there in your log, it pretty much tells you what you need to do.

mitdesai commented 9 months ago

I figured that out. My smart light hub was unplugged. How can I close this issue?

Thanks, Mit Desai

On Thu, Feb 1, 2024 at 9:38 AM tsightler @.***> wrote:

Please read the message that says "IMPORTANT" right there in your log, it pretty much tells you what you need to do.

— Reply to this email directly, view it on GitHub https://github.com/tsightler/ring-mqtt/issues/781#issuecomment-1921860927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWWTSNR6R7DRYW5LNGHCK3YRPHKPAVCNFSM6AAAAABCUJMK5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRHA3DAOJSG4 . You are receiving this because you authored the thread.Message ID: @.***>

tsightler commented 9 months ago

Glad you got it working.