If you have the HA stream integration enabled, then cameras that support it can live stream to Lovelace cards. In the picture-elements, picture-glance and picture-entity cards, you can simply specify camera_view: "live" in the configuration to enable this.
This change adds the camera_view option to the surveillance card. The ha-camera-stream component handles all the harder parts, so this change mainly hooks up the option and renders the ha-camera-stream component instead of the img for the selected camera if streaming is enabled.
I have Nest cameras and it seems to work pretty well with them.
This is my first time messing around with lovelace cards and I have limited LitElement experience so let me know if there is anything you want tweaked.
If you have the HA
stream
integration enabled, then cameras that support it can live stream to Lovelace cards. In thepicture-elements
,picture-glance
andpicture-entity
cards, you can simply specifycamera_view: "live"
in the configuration to enable this.This change adds the
camera_view
option to the surveillance card. Theha-camera-stream
component handles all the harder parts, so this change mainly hooks up the option and renders theha-camera-stream
component instead of theimg
for the selected camera if streaming is enabled.I have Nest cameras and it seems to work pretty well with them.
This is my first time messing around with lovelace cards and I have limited LitElement experience so let me know if there is anything you want tweaked.
I also updated the README.