Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106308

Directly link to file in media library?

$
0
0

Is there any way to directly link to a file in a local media library? I’ve tried some formats but I haven’t found any that work yet. My use case is that I’m trying to have the video from my doorbell camera play on my phone via an action in a notification (Android).

My intention was to have a notificatoin with “Watch” and “Browse” actions. The former would play the current video, and the latter would take you to the media folder.

So far, I have tried URLs like the following:

  • /media/cameras/front_door/20250115_233313_FrontDoor.mp4 (I get 401 Unauthorized, even though I am logged in). The camera_proxy URL in the camera entity works, but sometimes the camera captures another video (and the entity’s state updates) before I get the chance to click on the notification. For this reason, I want to link to a particular file, not reference the camera entity.
  • /media-browser/browser/app%2Cmedia-source%3A%2F%2Fmedia_source/%2Cmedia-source%3A%2F%2Fmedia_source%2Fcameras%2Ffront_door This crazy URL is what’s in the address bar when I browse to the media folder that the file is in. If I include the “https://domain.com” part of that URL, it works, but it loads in the default web browser instead of the app.

Is there any way I can accomplish what I’m trying to do?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>