You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the webrtc-camera card requires a static RTSP URL (or Entity), but it would be very useful if the URL could be dynamically defined with templates. For example, to be able to specify a specific channel for an NVR or start/end times for playback of recorded video.
There is a custom Lovelace card-templater that allows the use of HASS/Jinja templates for any card by modifying the options with a "_template" suffix. However, your webrtc-camera card rejects "url_template" saying "Error: missing URL or Entity".
BTW, I reported this as templater issue#59. Maybe webrtc-camera JS code could be tweaked to accept "url_template" so templating could work with very little effort?
If not, then having this card support templates natively is something I hope you can consider adding in the future.
The text was updated successfully, but these errors were encountered:
well, that's great! Having native Jinja2 template support is ideal. The use of other cards in conjunction with webrtc-camera for templating (eg. Lovelace_card_templater) is now not needed - a very useful simplification.
I did find later that the config-template-card does work with webrtc-camera to modify the URL, but it requires Javascript syntax, not Jinja2, which is more commonly preferred for templating.
Currently the webrtc-camera card requires a static RTSP URL (or Entity), but it would be very useful if the URL could be dynamically defined with templates. For example, to be able to specify a specific channel for an NVR or start/end times for playback of recorded video.
Example:
There is a custom Lovelace card-templater that allows the use of HASS/Jinja templates for any card by modifying the options with a "_template" suffix. However, your webrtc-camera card rejects "url_template" saying "Error: missing URL or Entity".
BTW, I reported this as templater issue#59. Maybe webrtc-camera JS code could be tweaked to accept "url_template" so templating could work with very little effort?
If not, then having this card support templates natively is something I hope you can consider adding in the future.
The text was updated successfully, but these errors were encountered: