I’m in the process of trying to save all of my photos and videos to the more secure Media folder in Home Assistant. Currently I have an alarm automation that records video to my www folder. From there, using Node Red I use the following to send the video to my Android phone’s companion app.
{
"message": "Recordings",
"title": "Home Alarm Triggered",
"data": {
"sticky": "true",
"priority": "high",
"channel": "alarm_stream",
"group": "Alarm",
"notification_icon": "mdi:shield-alert",
"actions": [
{
"action": "URI",
"title": "Front Door Recording",
"uri": "https://mynabucasaurl.ui.nabu.casa/local/front_door_cam.mp4"
},
{
"action": "URI",
"title": "Garage Recording",
"uri": "https://mynabucasaurl.ui.nabu.casa/local/garage_cam.mp4"
}
]
}
}
I’m now saving the recordings to the Media folder. I’ve tried changing the uri
part to various versions of "uri":"/media/local/media/front_door_cam.mp4"
but I can’t seem to be able to view the video.
Any idea how I can link or watch the saved mp4 video located in my Media folder?