I have a picture elements card with my camera and ptz arrows overlayed in the corner. Is there an option for a fullscreen button to overlay on the card as well?
If I use a picture-glance card with a live camera_view, I am able to click on the stream and then select fullscreen (but obviously I cannot use overlay buttons here)
What I want is to be able to have all my cameras as picture element cards in a view, then be able to individually fullscreen them.
I do know of panel view, but that isn’t a true fullscreen (as the header information is there). Is there an option or alternative to toggle fullscreen on a camera picture elements card?
I decided to workaround this problem by directly overlaying an iframe to my shinobi mp4 stream (which has a few seconds less latency than using the built in home-assistant camera stream function, due to not having a redundant ffmpeg pass the stream through the home-assistant host), and, although I cannot overlay the ptz controls over an iframe, I have them directly below the iframe, so it works well enough.
Mostly the lovelace config that you’re using to show the stream with a separate PTZ control. I’m not using Shinobi, but have been testing out Blueiris and Motioneye. Currently, I just have the Amcrest cameras using the HA integration. I have the picture-elements working using the example from here: https://www.home-assistant.io/integrations/amcrest/ (at the bottom) but I would like to click and open the stream like I can do with the picture-entity card.
Example from my ui-lovelace.yaml (the iframe is serving a shinobi stream with a user api and group api. The PTZ script directly calls my amcrest camera API through a shell script):
Its a rough script that pulls the camera password from the secrets.yaml file. You might need to tweak the curl calls if you want more movement per button click or less (or your camera model uses different ptz commands - the ones above are for IP3M-941B cams). I only have the basic ptz move functionality, as I haven’t had the necessity to use presets or zoom commands. The ptzControl.svg file is just a rectangle background to hold the ptz buttons.
This is great. Thanks so much for sharing. I should be able to get something out of this. So you’re not using the amcrest integration within HA, correct? You’re just pulling the stream from Shinobi and sending PTZ commands directly to the camera using a bash script with simple curl commands? I’m using IP2M-841EW camera which I are similar to yours except 1080p, so I’m sure the commands are the same or very similar. Thanks again!
Correct, I’m using an iframe because the shinobi stream allows me to fullscreen the video. I’m actually flipping between shinobi and zoneminder right now - and am writing a simple webpage for the iframe that will have the ptz and fullscreen buttons directly on top of the stream. I’m currently working out the home-assistant api calls to make this happen. It is a very simple process to allow an element to become truly fullscreen, maybe the home-assistant crew or modder will implement it directly into hass at some point, but until then, my webpage wrapper will get the job done.