detectors: coral_pci: type: edgetpu device: pci # coral_usb: # type: edgetpu # device: usb mqtt: host: core-mosquitto.local.hass.io user: MQTT_USER password: MQTT_PWD ffmpeg: global_args: -hide_banner -loglevel fatal -threads 3 # hwaccel_args: preset-vaapi hwaccel_args: preset-intel-qsv-h264 database: path: /config/frigate.db birdseye: restream: true # Optional: Enable birdseye view (default: shown below) enabled: true # Optional: Width of the output resolution (default: shown below) width: 1280 # Optional: Height of the output resolution (default: shown below) height: 720 # Optional: Encoding quality of the mpeg1 feed (default: shown below) # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources. quality: 8 # Optional: Mode of the view. Available options are: objects, motion, and continuous # objects - cameras are included if they have had a tracked object within the last 30 seconds # motion - cameras are included if motion was detected in the last 30 seconds # continuous - all cameras are included always mode: objects go2rtc: streams: front_door: - rtsp://192.168.0.2:8855/porch/main # front_door_sub: # - rtsp://192.168.0.2:8855/porch/sub kitchen: - rtsp://192.168.0.2:8855/kitchen/main # kitchen_sub: # - rtsp://192.168.0.2:8855/kitchen/sub back_room: - rtsp://192.168.0.2:8855/backroom/main # back_room_sub: # - rtsp://192.168.0.2:8855/backroom/sub ratcam: - rtsp://192.168.0.2:8855/ratcam/main # ratcam_sub: # - rtsp://192.168.0.2:8855/ratcam/sub shed_door_01: - rtsp://192.168.0.2:8855/shed_door/main # shed_door_01_sub: # - rtsp://192.168.0.2:8855/shed_door/sub shed_door_02: - rtsp://192.168.0.2:8855/shed_door_02/main # shed_door_02_sub: # - rtsp://192.168.0.2:8855/shed_door_02/sub roadcam_01: - rtsp://192.168.0.2:8855/roadcam_01/main # roadcam_01_sub: # - rtsp://192.168.0.2:8855/roadcam_01/sub roadcam_02: - rtsp://192.168.0.2:8855/roadcam_02/main # roadcam_02_sub: # - rtsp://192.168.0.2:8855/roadcam_02/sub babington_view_01: - rtsp://192.168.0.2:8855/babington_view/main # babington_view_01_sub: # - rtsp://192.168.0.2:8855/babington_view/sub babington_view_02: - rtsp://192.168.0.2:8855/babington_view_02/main # babington_view_02_sub: # - rtsp://192.168.0.2:8855/babington_view_02/sub webrtc: candidates: - 192.168.0.2:8555 - stun:8555 cameras: front_door: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/front_door # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record - detect # - path: rtsp://127.0.0.1:8554/front_door_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: # - detect detect: width: 1920 height: 1072 fps: 5 zones: zone_front_door: coordinates: 0.287,1,0.616,1,0.648,0,0.208,0 inertia: 3 zone_road: coordinates: 0.638,1,1,1,1,0,0.661,0 inertia: 3 review: alerts: required_zones: zone_front_door detections: required_zones: zone_road kitchen: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/kitchen # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record - detect # - path: rtsp://127.0.0.1:8554/kitchen_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: # - detect detect: width: 1920 height: 1072 fps: 5 zones: zone_back_room: coordinates: 1920,1072,1440,1072,1764,0,1920,0 objects: - person zone_kitchen: coordinates: 1,0,0.919,1,0,1,0,0 objects: person inertia: 3 review: detections: required_zones: zone_kitchen back_room: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/back_room # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record - detect # - path: rtsp://127.0.0.1:8554/back_room_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: # - detect detect: width: 1920 height: 1072 fps: 5 zones: zone_kitchen: coordinates: 0,1072,1920,1072,1920,0,0,0 objects: - person zone_back_room: coordinates: 0,1,1,1,1,0,0,0 objects: person inertia: 3 review: detections: required_zones: zone_back_room ratcam: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/ratcam # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record - detect # - path: rtsp://127.0.0.1:8554/ratcam_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: # - detect detect: width: 1920 height: 1072 fps: 5 zones: zone_garden: coordinates: 0,0,0,1,1,1,1,0 inertia: 3 review: alerts: required_zones: zone_garden babington_view_01: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/babington_view_01 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/babington_view_01_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect # detect: # width: 640 # height: 368 # fps: 5 detect: width: 1920 height: 1080 fps: 5 zones: zone_babington: coordinates: 0,1,0.278,1,0.845,0.112,1,0.122,1,0,0,0 inertia: 3 zone_garden: coordinates: 0.839,0.104,1,0.139,1,1,0.281,1 inertia: 3 review: alerts: required_zones: zone_garden detections: required_zones: zone_babington motion: mask: 0.003,0.002,0.001,0.367,0.253,0.107,0.285,0.197,0.403,0.183,0.482,0.099,0.492,0.006,0.027,0.002 babington_view_02: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/babington_view_02 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/babington_view_02_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect # detect: # width: 640 # height: 368 # fps: 5 detect: width: 1920 height: 1080 fps: 5 motion: mask: - 1920,700,1920,0,600,0 threshold: 40 contour_area: 10 improve_contrast: 'true' zones: zone_garden: coordinates: 0,1,0.771,1,0.487,0.399,0.347,0.176,0,0.128 inertia: 3 zone_road: coordinates: 0.822,1,1,1,1,0.711,0.289,0,0.197,0,0.179,0.071,0.408,0.267 inertia: 3 zone_babington: coordinates: 0.002,0.003,0.191,-0.002,0.265,0.156,0.001,0.121 review: alerts: required_zones: zone_garden detections: required_zones: - zone_road - zone_babington shed_door_01: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/shed_door_01 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/shed_door_01_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect detect: width: 1920 height: 1080 fps: 5 # detect: # width: 640 # height: 368 # fps: 5 zones: zone_garden: coordinates: 1,0,1,1,0.083,1,0.802,0 inertia: 3 zone_road: coordinates: 0.709,0,0.181,0,0,0.537,0,1,0.078,1,0.748,0.13 inertia: 3 review: detections: required_zones: zone_road alerts: required_zones: zone_garden motion: threshold: 50 contour_area: 10 improve_contrast: 'true' mask: 0.074,0.324,0.538,0.009,0.183,0 shed_door_02: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/shed_door_02 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/shed_door_02_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect detect: width: 1920 height: 1080 fps: 5 # detect: # width: 640 # height: 368 # fps: 5 zones: zone_garden: coordinates: 0,1,1,1,1,0.764,0.751,0,0.439,0,0.17,0,0,0 inertia: 3 review: alerts: required_zones: zone_garden motion: threshold: 40 contour_area: 10 improve_contrast: 'true' roadcam_01: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/roadcam_01 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/roadcam_01_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect detect: width: 1920 height: 1080 fps: 5 # detect: # width: 640 # height: 368 # fps: 5 zones: zone_road: coordinates: 0,0.245,0,0.009,0.999,-0.002,0.995,0.452,0,0.498 inertia: 3 zone_drive: coordinates: 1,0.454,1,1,0,1,0,0.503 inertia: 3 review: alerts: required_zones: zone_drive detections: required_zones: zone_road roadcam_02: ffmpeg: output_args: record: preset-record-generic-audio-copy inputs: - path: rtsp://127.0.0.1:8554/roadcam_02 # <--- the name here must match the name of the camera in restream input_args: preset-rtsp-restream roles: - record # - path: rtsp://127.0.0.1:8554/roadcam_02_sub # <--- the name here must match the name of the camera in restream # input_args: preset-rtsp-restream # roles: - detect detect: width: 1920 height: 1080 fps: 5 # detect: # width: 640 # height: 368 # fps: 5 zones: zone_road: coordinates: 0.516,0.513,0.828,0.386,0.898,0.593,1,0.628,1,0,0,0,0,0.405 inertia: 3 zone_front_door: coordinates: 0,1,0.591,1,0.528,0.517,0,0.414 inertia: 3 review: alerts: required_zones: zone_front_door detections: required_zones: zone_road objects: track: - person - cat filters: person: # Optional: minimum score for the object to initiate tracking (default: shown below) min_score: 0.87 # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below) threshold: 0.95 cat: # Optional: minimum score for the object to initiate tracking (default: shown below) min_score: 0.85 # Optional: minimum decimal percentage for tracked object's computed score to be considered a true positive (default: shown below) threshold: 0.92 record: sync_recordings: true enabled: true retain: days: 4 mode: all events: # Optional: Maximum length of time to retain video during long events. (default: shown below) # Optional: Number of seconds before the event to include (default: shown below) pre_capture: 20 # Optional: Number of seconds after the event to include (default: shown below) post_capture: 20 # Optional: Objects to save recordings for. (default: all tracked objects) objects: - person - cat # Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones) retain: mode: motion # Required: Default retention days (default: shown below) default: 10 # Optional: Per object retention days objects: person: 7 cat: 2 model: path: plus://5b6c9d9ef663b29e281a859d13d6c11d snapshots: # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below) # This value can be set via MQTT and will be updated in startup based on retained value enabled: true # Optional: print a timestamp on the snapshots (default: shown below) timestamp: false # Optional: draw bounding box on the snapshots (default: shown below) bounding_box: true # Optional: Camera override for retention settings (default: global values) retain: default: 10 mode: motion # Optional: Per object retention days objects: person: 7 cat: 2 # required_zones: # - zone_garden # - zone_drive # - zone_babington # - zone_kitchen #- zone_road # - zone_front_door # - zone_back_room # NOTE: Can be overridden at the camera level live: # Optional: Set the height of the live stream. (default: 720) # This must be less than or equal to the height of the detect stream. Lower resolutions # reduce bandwidth required for viewing the live stream. Width is computed to match known aspect ratio. height: 720 # Optional: Set the encode quality of the live stream (default: shown below) # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources. quality: 8 # Optional: model modifications # model: # # Optional: Label name modifications. These are merged into the standard labelmap. # labelmap: #review: # alerts: # required_zones: # - zone_garden # - zone_drive # - zone_babington # - zone_kitchen # - zone_road # - zone_front_door # - zone_back_room # Optional: Retention settings for recordings of events camera_groups: Outside: order: 1 icon: LuTrees cameras: - babington_view_01 - birdseye - babington_view_02 - ratcam - roadcam_01 - roadcam_02 - shed_door_01 - shed_door_02 Inside: order: 2 icon: LuHome cameras: - birdseye - back_room - front_door - kitchen version: 0.14