Hello,
I am trying to set a url variable via template based on a helper binary sensor. I put the template into the template viewer and I get the correct results but when I try using it in my lovelace dashboard it does not work.
Templating is not available on many cards. Since none of the examples on the git for Webrtc Camera card show the use of templates, it is likely than they cannot be used. You may be able to use Lovelace Card Templater to enable templating on the Webrtc card.
Yeah, apologies for being cryptic. Right now my ring camera works great in the webrtc card, however ring isn’t really intended to stream continuously. So, what i’m trying to get is when motion is detected it will show the stream of the camera on my display. What i’m getting though is that the webrtc stream will always stay connected (which I don’t want, I only want to open a stream when detecting motion).
I set this all up with a conditional card in the hopes that would do it but it seems conditional cards don’t actually de-activate when hidden so the stream never closes even if hidden. So I’ve been trying to find some conditional way I can enable/disable the rtsp stream based off my motion event.
Interesting find. The card/stream visibly (re)builds when switching to a dash/page but indeed seems to stay alive when ‘hidden’. Not what you want but… I am using a tablet to show the camera in a fullscreen (page) dashboard (separate view) when motion is detected, then it indeed builds but the build is not very fast (with me)