Ring Device integration via MQTT w/ Video Streaming

Hopefully someone can help me. I’m trying to set a generic camera with rtsp, but I can’t figure it out.
I’m using the docker install along with mosquitto in docker. The device is found and snapshots work just fine.

The logs show this when starting the container

2022-05-23T14:05:46.080Z ring-mqtt Detected 8 CPU cores, starting 4 live stream workers
2022-05-23T14:05:47.096Z ring-rtsp ------------------------------------------------------------------------------------------
2022-05-23T14:05:47.096Z ring-rtsp Starting rtsp-simple-server process...
2022-05-23T14:05:47.162Z ring-rtsp INF rtsp-simple-server v0.18.2
2022-05-23T14:05:47.163Z ring-rtsp INF [RTSP] listener opened on 0.0.0.0:8554 (TCP)
2022-05-23T14:05:47.163Z ring-rtsp INF [API] listener opened on 127.0.0.1:8880
2022-05-23T14:05:48.143Z ring-rtsp Creating RTSP paths for all cameras...
2022-05-23T14:05:48.157Z ring-rtsp INF [API] [conn 127.0.0.1:45662] POST /v1/config/paths/add/9c7613398876_live
2022-05-23T14:05:48.159Z ring-rtsp INF reloading configuration (API request)
2022-05-23T14:05:48.173Z ring-rtsp INF [API] [conn 127.0.0.1:45664] POST /v1/config/paths/add/9c7613398876_event
2022-05-23T14:05:48.174Z ring-rtsp INF reloading configuration (API request)

And the the info sensor show the following data:

rtsp://user:[email protected]:8554/9c7613398876_live

When using this info with the generic camera component it throws an unknown error ocurred.

Can someone give me a hand here please?

Cheers

Edit: For completion, this is what the logs say about the RTSP service

2022-05-24T10:12:06.784Z ring-mqtt [Front Door] Received set live stream state ON
2022-05-24T10:12:06.784Z ring-mqtt [Front Door] Starting a keepalive stream for camera
2022-05-24T10:12:06.811Z ring-mqtt [Front Door] The keepalive stream has started
2022-05-24T10:12:06.821Z ring-rtsp INF [RTSP] [conn 127.0.0.1:40772] opened
2022-05-24T10:12:06.822Z ring-rtsp INF [path 9c7613398876_live] runOnDemand command started
2022-05-24T10:12:06.826Z ring-rtsp [Front Door] Sending command to activate live stream ON-DEMAND
2022-05-24T10:12:06.841Z ring-mqtt [Front Door] Received set live stream state ON-DEMAND
2022-05-24T10:12:06.842Z ring-mqtt [Front Door] ring/ad5195e5-48d9-4198-84d1-6893943d3f1a/camera/9c7613398876/stream/state ON
2022-05-24T10:12:06.842Z ring-attr [Front Door] ring/ad5195e5-48d9-4198-84d1-6893943d3f1a/camera/9c7613398876/stream/attributes {"status":"activating"}
2022-05-24T10:12:06.846Z ring-mqtt [Front Door] Starting a live stream session via Ring servers
2022-05-24T10:12:06.946Z ring-rtsp [Front Door] State indicates live stream is activating
2022-05-24T10:12:07.470Z ring-mqtt [Front Door] Live stream assigned to worker 1 with 0 current active sessions
2022-05-24T10:12:11.817Z ring-rtsp INF [API] [conn 127.0.0.1:43038] GET /v1/paths/list
2022-05-24T10:12:11.819Z ring-mqtt [Front Door] Ring live stream has stopped publishing, killing the keepalive stream
2022-05-24T10:12:11.822Z ring-mqtt [Front Door] The keepalive stream has stopped
2022-05-24T10:12:14.897Z ring-mqtt [Front Door] Requesting an updated interval snapshot
2022-05-24T10:12:15.508Z ring-mqtt [Front Door] Successfully retrieved updated snapshot
2022-05-24T10:12:15.508Z ring-mqtt [Front Door] ring/ad5195e5-48d9-4198-84d1-6893943d3f1a/camera/9c7613398876/snapshot/image <binary_image_data>
2022-05-24T10:12:15.508Z ring-attr [Front Door] ring/ad5195e5-48d9-4198-84d1-6893943d3f1a/camera/9c7613398876/snapshot/attributes {"timestamp":1653387136}
2022-05-24T10:12:16.823Z ring-rtsp INF [path 9c7613398876_live] runOnDemand command stopped
2022-05-24T10:12:16.823Z ring-rtsp INF [RTSP] [conn 127.0.0.1:40772] closed (source of path '9c7613398876_live' has timed out)
2022-05-24T10:12:16.824Z ring-rtsp [Front Door] Deactivating live stream due to signal from RTSP server (no more active clients or publisher ended stream)
2022-05-24T10:12:16.836Z ring-mqtt [Front Door] Received set live stream state OFF
2022-05-24T10:12:16.836Z ring-mqtt [Front Door] Stopping live stream session on workerId 1
2022-05-24T10:12:44.903Z ring-mqtt [Front Door] Requesting an updated interval snapshot
2022-05-24T10:12:56.652Z ring-rtsp INF [RTSP] [conn 127.0.0.1:39506] opened
2022-05-24T10:12:56.656Z ring-rtsp INF [path 9c7613398876_live] runOnDemand command started
2022-05-24T10:12:56.662Z ring-rtsp [Front Door] Sending command to activate live stream ON-DEMAND
2022-05-24T10:12:56.678Z ring-mqtt [Front Door] Received set live stream state ON-DEMAND
2022-05-24T10:12:59.904Z ring-mqtt [Front Door] Error: Snapshot for Front Door (doorbell_graham_cracker - Doorbell Wired) failed to refresh after 15 seconds
2022-05-24T10:12:59.904Z ring-mqtt [Front Door] Failed to retrieve updated snapshot
2022-05-24T10:13:06.659Z ring-rtsp INF [path 9c7613398876_live] runOnDemand command stopped
2022-05-24T10:13:06.659Z ring-rtsp INF [RTSP] [conn 127.0.0.1:39506] closed (source of path '9c7613398876_live' has timed out)
2022-05-24T10:13:06.659Z ring-rtsp [Front Door] Deactivating live stream due to signal from RTSP server (no more active clients or publisher ended stream)
2022-05-24T10:13:06.667Z ring-mqtt [Front Door] Received set live stream state OFF
2022-05-24T10:13:06.667Z ring-mqtt [Front Door] Stopping live stream session on workerId 1
2022-05-24T10:13:13.478Z ring-rtsp INF [RTSP] [conn 127.0.0.1:40990] opened

This has something to do with MQTT no passing the data? I’ve read somewhere in this post about this possibility.

1 Like