I have a rtsp ready camera set-up (HikVision), in More Info, it streams fine, but in Lovelace it only shows a static image, it will only show the stream when I click on it. The documentation says to set camera_view to live and point camera-image to the camera entity. What am I doing wrong? This is the configuration:
@bruxy70@JesseWebDotCom I use synology for my cameras (which are hikvision) and ran this on my test system (same setup as yours directly from the hikvision camera).
Picture entity shows live view and clicking on it zooms the live stream.
Thanks but I think what we canāt figure out is how to have a live camera stream as the full sized background of a picture elements (so you can then overlay things on top like sensors and messages). I donāt think itās possible.
Ok, you are right, picture-entity works. I did not try that before. Interesting.
The documentation states that
As of Homeassistant version 0.92 you can now live-stream a camera feed directly in lovelace. To do this add either picture-entity, picture-glance or picture-elements, set camera_image to a stream-ready camera entity and set camera_view to live in one of your lovelace views.
So either I got the picture-elements configuration wrong, or there is a bug, or the documentation is wrong? Anyone have streaming working with picture-elements? Can you please share config! Thanks.
Is there anything in your config file or set up anywhere else that may be the difference? Also, for me I couldnāt get it to show up without style parameters. Unsure if this is because it is displaying the card off screen or it doesnāt show it at all
The configuration looks OK (I did not have to use styling).
As a check, when you go to Developer Tools->State and click on camera.cnc_10 āmore infoā i.e. the (i); a popup window occurs, but does it show anything?
We thought about that, but we have picture-glance cards streaming just fine. Weāre using ubiquiti cameras and theyāre using rtsp. How would I check what format the stream is in?
Iāve been struggling with this for a while too and Iām pretty convinced itās a bug in the picture-elements card. Iāve considered submitting a bug report (which Iāve never done before) but wanted more verification first. I configured this Lovelace View for testing and to submit as an easy way to reproduce the issue. Here it is If anyone else wants to test with their cameraā¦
views:
###################################################################################################
#### Camera Test View #############################################################################
###################################################################################################
- title: Camera Testing
path: camera_test
icon: mdi:test-tube
cards:
- type: picture-entity
entity: camera.courtyard
camera_image: camera.CAMERA_NAME
camera_view: live
- type: picture-glance
entities: []
camera_image: camera.CAMERA_NAME
camera_view: live
- type: picture-elements
image: https://i.imgur.com/FHZLxXp.png
elements:
- type: image
camera_image: camera.CAMERA_NAME
camera_view: live
style:
left: 50%
top: 50%
width: 100%
height: 100%
(Paste at the end of ui-lovelace.yaml and replace camera.CAMERA_NAME with the entity id of a working camera component)
Same problem.
Stream works fine using picture-entity or picture-glance.
But I want to use picture-elements to have PTZ control inside the card.
Any updates?
Thatās clever, @Nimpom!
I just tested and this works beautifully.
Do you think the reason this works may be because the .css for <div id="root"> is overwritten ā supporting my initial suspicion (under " Additional information")?