diff --git a/docs/docs/configuration/reference.md b/docs/docs/configuration/reference.md index 2ba42224d..b22c115c9 100644 --- a/docs/docs/configuration/reference.md +++ b/docs/docs/configuration/reference.md @@ -488,6 +488,8 @@ cameras: coordinates: 545,1077,747,939,788,805 # Optional: Number of consecutive frames required for object to be considered present in the zone (default: shown below). inertia: 3 + # Optional: Number of seconds that an object must loiter to be considered in the zone (default: shown below) + loitering_time: 0 # Optional: List of objects that can trigger this zone (default: all tracked objects) objects: - person diff --git a/frigate/config.py b/frigate/config.py index 85377b2f9..d3820f47e 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -515,6 +515,11 @@ class ZoneConfig(BaseModel): title="Number of consecutive frames required for object to be considered present in the zone.", gt=0, ) + loitering_time: int = Field( + default=0, + ge=0, + title="Number of seconds that an object must loiter to be considered in the zone." + ) objects: List[str] = Field( default_factory=list, title="List of objects that can trigger the zone.",