lovelace-hass-aarlo icon indicating copy to clipboard operation
lovelace-hass-aarlo copied to clipboard

Allow the use of URI get variables to autostart stream, specific, or last recording

Open kyletpugh opened this issue 3 years ago • 2 comments

Allow the use of two URI get variables that would put the card into different views. I would like to directly link to this card alone in a view using a URI like /cameras/front-door?stream and /cameras/front-door?recording=unique_id. I would like to use some sort of unique id that could be obtained by the aarlo integration that we already were discussing in the issue for the last activity. I could probably look into working on these things with you if you'd like. I am just wondering if it's even possible or if maybe the card already behaves like this? I'm making an assumption that the videos have unique ids from arlo to start.... Haha. Thanks!

kyletpugh avatar Jun 09 '21 00:06 kyletpugh

You don't get to see the URL at the Lovelace level you just get passed a configuration to use for the card.

The recordings are in mp4 format and the streams are in MPEG-DASH if you use a Linux user-agent. So, in theory, you can open them from anywhere, even somewhere outside Home Assistant. You could host a simple web page consisting of not much more than an HTML5 video tag and use that to play the videos.

twrecked avatar Jun 13 '21 02:06 twrecked

I'm sorry, I didn't mean specifically using the URL. I was just trying to use an example of the behavior. I meant like is there some way that I can direct the card to automatically be configured appropriately for this type of behavior? The autostart live view is really, what I'm looking for. The recording can just use the video_url. If not, eh... Thanks.

kyletpugh avatar Jun 13 '21 18:06 kyletpugh