@Dan_Bowkley wrote:
I’d like to set up a page with a bunch of cameras on it. Of course, they’re all 1080p so streaming that outside of the home LAN would be slightly ridiculous. Each camera has several RTSP streams of different resolutions. So what I’d like to do is have HA somehow determine whether the browser viewing that page is on the local LAN or outside it, and then via templating have the page feed either the low-res or high-res streams appropriately. Is there any way to implement this? I guess I could just have a low-res and a high-res tab and let the user (me) choose whichever I want, but I’d kinda like to automate this if possible.
I guess something like
camera: > {% if is_state('person.dan' , 'home') %} camera.high-res1 {% else %} camera.low-res1 {% endif %}
would mostly work, but I’d vastly prefer to do it on a per browser basis.
Any ideas?
Posts: 1
Participants: 1