Lovelace: picture-entity + camera_view: live - results with a 10 seconds delayed video that hangs after a couple of hours

This is my lovelace card:

camera_view: live
entity: camera.camera1
type: picture-entity

My first issue is that the video has a delay of 10 seconds.
My second issue is that after a few hours the video is stuck and won’t continue until I refresh the page.

Anyone has a reliable way to stream an IP camera with lovelace?

Maybe an idea how I can refresh the card every 10 minutes without refreshing the entire page? (for the entire page I can add a custom javascript file with location.reload() inside a setTimeout but I prefer that only the relevant picture-entity cards would refresh).

2 Likes

@adamtal3: Did you find a solution?
I have the same issue with an doorbird camera.

The same for me!
I used a reolink cam and 2 pi4 4gb: the first with hassio and the second as dashboard with buster and chromium in kiosk mode.

I nearly found a solution. You can use a iframe to show the camera.

- type: iframe
    url:  http://<OUR IP>/bha-api/video.cgi?http-user=<OUR NAME>&http-password=<OUR PASSWORD>

But you can’t see a full picture.
May be someone can help me.

I found a solution for me.

- type: picture
    image: http://<OUR_IP>/bha-api/video.cgi?http-user=<OUR_NAME>&amp;http-password=<OUR_PASSWORD>

Now the camera is live.
But it was freezing after several hours. In my case I have a raspberry pi running with chromium kiosk mode.


and additional I now do a refresh after 4 hours.
https://www.raspberrypi.org/forums/viewtopic.php?t=259383

I hope that will help you too.