Restricting events to specific zones not working #10539
-
Describe the problem you are having
Many thanks! Version0.13.2-6476F8A Frigate config filedetectors:
coral:
type: edgetpu
device: 'usb'
num_threads: 4
mqtt:
host: 192.168.178.125
port: 1883
topic_prefix: frigate
client_id: frigate
user:
password:
#ffmpeg:
# hwaccel_args:
# - '-c:v'
# - h264_v4l2m2m
#ffmpeg:
# hwaccel_args: preset-rpi-64-h264
cameras:
# Garage:
# ffmpeg:
# inputs:
# - path: 'rtsp:https://
# global_args: '-hide_banner -loglevel error'
# roles:
# - detect
# - record
# detect:
# width: 1920
# height: 1080
# fps: 5
# motion:
# mask: >-
# -0,0,1920,0,1920,1080,1490,1080,1659,694,690,270,121,417,345,1080,0,1080
# snapshots:
# enabled: true
# timestamp: true
# bounding_box: true
# crop: false
# height: 175
# retain:
# default: 10
# objects:
# person: 10
# mqtt:
# enabled: true
# timestamp: true
# bounding_box: true
# crop: true
# height: 270
# objects:
# track:
# - person
#
# filters:
# person:
# min_area: 5000
# max_area: 100000
# min_score: 0.5
# threshold: 0.7
# mask: >-
# -2,1,1920,0,1920,1080,1490,1080,1678,653,547,227,533,73,354,86,370,292,116,340,285,1012,680,1014,678,1080,0,1080
# zones:
# car:
# coordinates: 343,1058,1477,1080,1654,683,776,252,123,394
# record:
# enabled: true
# retain:
# days: 3
# mode: motion
# events:
# retain:
# default: 3
# mode: active_objects
Package:
ffmpeg:
inputs:
- path:
global_args: '-hide_banner -loglevel error'
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
motion:
mask:
- 0,1080,1920,1080,1350,547,1408,891,1081,899,1105,544,1307,523,1920,1080,1920,0,0,0
snapshots:
enabled: true
timestamp: true
bounding_box: true
crop: false
height: 175
retain:
default: 10
objects:
person: 10
mqtt:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 270
objects:
track:
- person
zones:
box:
coordinates: 1128,888,1408,891,1356,564,1073,535
record:
enabled: true
retain:
days: 3
mode: motion
events:
retain:
default: 3
mode: active_objects
Door:
ffmpeg:
inputs:
- path:
global_args: '-hide_banner -loglevel error'
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
motion:
record:
enabled: true
retain:
days: 10
mode: motion
events:
required_zones:
- entire_yard
retain:
default: 10
mode: active_objects
snapshots:
required_zones:
- zone_0
enabled: true
timestamp: true
bounding_box: true
crop: false
height: 175
retain:
default: 10
objects:
person: 10
mqtt:
enabled: true
timestamp: true
bounding_box: true
crop: true
height: 270
objects:
track:
- person
zones:
zone_0:
coordinates: 235,1080,1920,1080,1734,387,502,324
inertia: 3
objects:
- person
database:
path: /media/frigate.db
logger:
default: info
logs:
frigate.mqtt: error Relevant log outputN/A Frigate statsNo response Operating systemHassOS Install methodHassOS Addon Coral versionUSB Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Like it says in the docs, presence in a zone is based on the bottom center of the bounding box. Most likely the bounding box is in the zone for a few frames https://docs.frigate.video/configuration/zones You can use the timeline above the clips view to see what the box was when it was considered in the zone. |
Beta Was this translation helpful? Give feedback.
-
i setup the notification to specifically only send notifications when there is motion inside the zone 0: alias: Fridate - Door Person |
Beta Was this translation helpful? Give feedback.
-
Thank you, that makes sense. I will raise it there. |
Beta Was this translation helpful? Give feedback.
Then I'd suggest going to https://github.com/SgtBatten/HA_blueprints/ to debug this further. From the frigate perspective an event is not created so things are working as expected