From 302a4bb338e7fdd0cabbc1912a285b74a68972a9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 8 Jul 2023 10:41:20 -0500 Subject: [PATCH] only check camera status if autotracking enabled --- frigate/ptz/autotrack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 0417af38f..aaf6e532f 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -229,10 +229,10 @@ class PtzAutoTracker: def autotrack_object(self, camera, obj): camera_config = self.config.cameras[camera] - # check if ptz is moving - self.onvif.get_camera_status(camera) - if camera_config.onvif.autotracking.enabled: + # check if ptz is moving + self.onvif.get_camera_status(camera) + # either this is a brand new object that's on our camera, has our label, entered the zone, is not a false positive, # and is not initially motionless - or one we're already tracking, which assumes all those things are already true if (