* fix(ring-mqtt): move to stable + docs * update files * Apply suggestions from code review * update md * lint * lint Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2.3 KiB
Installation Notes
- Follow the prerequisite guides below before attempting
Ring-MQTTinstallation.
MQTT setup
- I used the chart called
mosquittoinstall it as normal and setAuthenticationto true. here's the auth guide.
Ring-MQTT setup
RINGTOKENcan be left blank as you can auth through the temporarily web interface which is just for the authorization of your ring account.- Go to
http://SCALE_IP:55123. - Set
MQTTHOSTto mosquitto.ix-mosquitto.svc.cluster.local. - Set
MQTTPORTto 1883. - Set
MQTTUSERto user_name from the authentication setup. - Set
MQTTPASSWORDto user_pass from the authentication setup. - Set
ENABLECAMERASto true to enable cameras. - Set
SNAPSHOTMODEto Auto to optimize based on high vs low-power Ring devices. - Set
ENABLEMODESto false. - Set
ENABLEPANICto false. - Set
BEAMDURATIONto 0. - Leave
DISARMCODEblank. - Leave
RINGLOCATIONIDSblank.
Home-assistant setup
-
Install the chart
home-assistantif you have not done so. -
In home-assistant go to settings -> devices & integrations -> click add integration -> search for
mqtt. -
Set
brokertomosquitto.ix-mosquitto.svc.cluster.local. -
Set
portto1883. -
Set
usernameandpasswordto the MQTT auth user and pass. -
Set the
MQTT optionsas needed. -
Shell into home-assistant, use truetool.sh or other means to modify the file
/config/configuration.yaml. -
Add the following code.
shell_command:
ring_snap: "ffmpeg -y -i {{RTSP_URL}} -vframes 1 {{fileDirName}}"
-
Create a new dir called
wwwin/config/. -
Validate home-assistant configuration in
developer toolsand if passes; click on restart to use the servicering_snapin automations. -
Here's a sample on how to create a
live snapshotautomation. -
This will override the previous image if saved as
/config/www/snapshot.jpg
service: shell_command.ring_snap
data:
RTSP_URL: "{{ states.sensor.front_door_info.attributes.stream_Source }}"
fileDirName: "/config/www/snapshot.jpg"
-
Note: You must save the file in
/config/www/or set the option to allow other dirs for home-assistant to be used. -
Now you can create a live snapshot automation in
home-assistant.