get_smart_detections
Retrieve AI-classified smart-detection events (person, vehicle, animal, package) from UniFi Protect with type, camera, timestamp, and confidence.
Instructions
Return AI smart-detection events (person, vehicle, animal, package) with types.
Read-only operation: it queries Protect smart-detection events over the lookback window, maps each to its camera name and timestamp, and includes the smartDetectTypes and confidence score. Requires Protect username/password credentials configured for the console. Use detection_type to narrow to one class (e.g. "person"); use get_motion_events for raw motion without classification, or get_protect_event_summary for aggregate counts.
Args: hours: Lookback window in hours from now (default 24). limit: Maximum number of events to return (default 50). detection_type: Optional class filter - one of "person", "vehicle", "animal", "package"; omit for all smart-detection types. device: Optional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Lookback window in hours from now (default 24). | |
| limit | No | Maximum number of events to return (default 50). | |
| device | No | Optional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device. | |
| detection_type | No | Optional class filter - one of "person", "vehicle", "animal", "package"; omit for all smart-detection types. |