elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

High network traffic continues after visiting and leaving live view camera #45

Closed kkellner closed 4 years ago

kkellner commented 4 years ago

When lovelace card is set to camera view = live, network traffic to hass is > 1.5Mbps. This is expected as we are live streaming. However when you leave the lovelace view, the high network traffic continues. Note that Preload stream is not checked. You can even logout of HA and high traffic into HA continues.

When the camera view is changed back to auto, the high network traffic continues as if there is a background thread still streaming. If I restart hass core the network traffic returns to normal.

image

Network traffic after visiting lovelace with live stream camera, then doing a hass logout. image

elad-bar commented 4 years ago

this is not related to the BI component, it's more related to HA and lovelace, Sorry, not sure I can help, but will check it anyway during the weekend

kkellner commented 4 years ago

Thanks for the response!

The traffic level returned to normal after about 5 minutes from leaving the lovelace video page. So maybe it's just a performance thing -- keeping the stream alive to allow quick viewing (if you have viewed the live stream in the last 5 minutes).

image

I also noticed that the lovelace live stream is about 10-15 seconds behind what is really live. When stream is viewed from blue iris web, it's only 0.5 or 1 second behind live. I assume this is also a artifact of the lovelace card? Is your setup also showing live as 10 seconds behind? Just checking if there is anything wrong with my setup.

My goal was to show a lovelace live video view when the doorbell is pressed, but having a 10 second lag isn't so useful.

elad-bar commented 4 years ago

https://www.home-assistant.io/lovelace/picture-elements/

Under IMAGE ELEMENT: camera_view (string)(Optional) “live” will show the live view if stream is enabled.

Default value: auto

elad-bar commented 4 years ago

@kkellner, is it still an issue?

thanks

kkellner commented 4 years ago

Something continues to steam data 5 minutes after you leave HA. But I'll assume its by design. Closing Issue.