Trigger Camera Live View when Motion detected

I tried but its not working for me. Anybody knwo what i am doing wrong:

views:
  - title: Home
    icon: mdi:house
    popup_cards:
      camera.front_door:
      large: true
      title: Front Door
      card:
        - type: picture-glance
            entities:
            - entity: binary_sensor.g4_doorbell_pro_doorbell
            camera_image: camera.g4_doorbell_pro_high_resolution_channel
            camera_view: live
            aspect_ratio: 16:9
            show_state: false

is what i assume would work for me. Where do i put it as i have no ui.lovelace.yaml.

What i want to achive is the Stream coming up once sobody hit the doorbell.