Additional onvif debug logs in get_camera_status

This commit is contained in:
Josh Hawkins 2025-06-23 15:57:03 -05:00
parent 6159604b35
commit 48963618be

View File

@ -792,6 +792,10 @@ class OnvifController:
)
return
logger.debug(
f"{camera_name}: Pan/tilt status: {pan_tilt_status}, Zoom status: {zoom_status}"
)
if pan_tilt_status == "IDLE" and (zoom_status is None or zoom_status == "IDLE"):
self.cams[camera_name]["active"] = False
if not self.ptz_metrics[camera_name].motor_stopped.is_set():