How to add multiple cameras in home assistant add-on

I (think) I have frigate working as an add-on in home assistant, but I can’t figure out how to add more cameras. I also want 24/7 recording. Did I set it up properly this way? Thank y’all!

mqtt:
host: #my host
user: #my MQTT user
password: #my password

cameras:
arthur:
ffmpeg:
inputs:
- path: #the stream link (which is working)
roles:
- record
record:
enabled: true

Please look at Frigate Configuration | Frigate

mqtt:
  host: 
  user: 
  password: 

detectors:
  coral:
    type: 
    device: 

birdseye:
  enabled: False

################################################################################
cameras:
  frigate_cam1:
    ffmpeg:
      inputs:
        - path: rtsp://
          roles:
            - detect
        - path: rtsp://
          roles:
            - record
    detect:
      width: 1280
      height: 720
    zones:
      zone_0_cam1:
        coordinates: 309,720,1280,720,1280,355,205,96
    objects:
      track:
        - person
      filters:
        person:
          min_area: 5000
          mask: 1280,0,1280,164,191,83,302,720,0,720,0,0
    motion:
      mask:
        - 0,39,374,38,373,0,0,0
        - 1280,0,1280,164,191,83,302,720,0,720,0,0
    record:
      enabled: True
      events:
        objects:
          - person
        required_zones:
          - zone_0_cam1
        retain:
          default: 5
          mode: active_objects
    snapshots:
      enabled: True
      clean_copy: False
      retain:
        default: 5
################################################################################
  frigate_cam2:
    ffmpeg:
      inputs:
        - path: rtsp://
          roles:
            - detect
        - path: rtsp://
          roles:
            - record
    detect:
      width: 1280
      height: 720
    zones:
      zone_0_cam2:
        coordinates: 484,172,740,25,846,720,137,720
    objects:
      track:
        - person
      filters:
        person:
          min_area: 3000
          mask: 0,0,733,0,686,159,455,173,285,506,311,720,0,720,0,346
    motion:
      mask: 0,39,374,38,373,0,0,0
    record:
      enabled: True
      events:
        objects:
          - person
        required_zones:
          - zone_0_cam2
        retain:
          default: 5
          mode: active_objects
    snapshots:
      enabled: True
      clean_copy: False
      retain:
        default: 5
################################################################################
  frigate_cam3:
    ffmpeg:
      inputs:
        - path: rtsp://
          roles:
            - detect
        - path: rtsp://
          roles:
            - record
    detect:
      width: 1280
      height: 720
    zones:
      zone_0_cam3:
        coordinates: 0,720,1280,720,1107,89,0,82
    objects:
      track:
        - person
      filters:
        person:
          min_area: 5000
          mask:
            - 769,93,845,92,848,194,767,194
            - 0,421,142,391,256,392,413,346,410,243,366,213,282,194,146,195,0,215
    motion:
      mask:
        - 0,96,739,86,741,184,856,181,853,86,1130,96,1114,235,1280,471,1280,105,1280,0,0,0
        - 0,421,142,391,256,392,413,346,410,243,366,213,282,194,146,195,0,215
    record:
      enabled: True
      events:
        objects:
          - person
        required_zones:
          - zone_0_cam3
        retain:
          default: 5
          mode: active_objects
    snapshots:
      enabled: True
      clean_copy: False
      retain:
        default: 5
1 Like

I now have this, with the following error: What am I doing wrong?

yaml uses 2 spaces as seperator, not 1…

I tried your exact code, only changing mqtt information and the rtsp stream, and I get the following error:

No you did not, as i said before, your indentation is off…

2 Likes

Hi,

Indee(e)d :wink: you did not copy the exact code.
Like @aceindy mentioned “2 spaces”
Count the grey dots before the text in the config file. The dots needs to be identical.