To enable streaming, you need to call ‘camera.turn_on’ service as security camera is turned off by default. I have this as setup in frontend. One option can be to enable live stream when user clicks on image probably.
These buttons below will enable live stream when you click on them and long press will disable live stream. To conserve battery, this is required.
type: grid
cards:
- type: button
tap_action:
action: call-service
service: camera.turn_on
service_data: {}
target:
entity_id: camera.entrance
entity: camera.entrance
show_state: true
show_icon: false
name: toogle entrance
hold_action:
action: call-service
service: camera.turn_off
service_data: {}
target:
entity_id: camera.entrance
- type: button
tap_action:
action: call-service
service: camera.turn_on
service_data: {}
target:
entity_id: camera.garage
entity: camera.garage
show_state: true
show_icon: false
name: toogle garage
hold_action:
action: call-service
service: camera.turn_off
service_data: {}
target:
entity_id: camera.garage
columns: 2
square: false