From 714a3e28ebdb70b0bb61ce4dcb226c4e6286630c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 3 Jul 2023 11:34:31 -0500 Subject: [PATCH] default return preset --- docs/docs/configuration/autotracking.md | 4 ++-- frigate/config.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/docs/configuration/autotracking.md b/docs/docs/configuration/autotracking.md index 73de27820..b1a2654eb 100644 --- a/docs/docs/configuration/autotracking.md +++ b/docs/docs/configuration/autotracking.md @@ -54,8 +54,8 @@ cameras: # Required: Begin automatically tracking an object when it enters any of the listed zones. required_zones: - zone_name - # Required: Name of ONVIF camera preset to return to when tracking is over. - return_preset: preset_name + # Required: Name of ONVIF camera preset to return to when tracking is over. (default: shown below) + return_preset: home # Optional: Seconds to delay before returning to preset. (default: shown below) timeout: 10 ``` diff --git a/frigate/config.py b/frigate/config.py index dad6788ef..61840df25 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -136,7 +136,8 @@ class PtzAutotrackConfig(FrigateBaseModel): title="List of required zones to be entered in order to begin autotracking.", ) return_preset: str = Field( - title="Name of camera preset to return to when object tracking is over." + default="home", + title="Name of camera preset to return to when object tracking is over.", ) timeout: int = Field( default=10, title="Seconds to delay before returning to preset."