Skip to content

list_failed_access_attempts

Return only result == "denied" events within the window.

Side effects: None (read-only).

Convenience wrapper around list_access_events for security audits. Each entry includes reason (e.g. "expired", "off-hours", "unknown_pin") so the LLM can summarise the cause distribution.

list_failed_access_attempts(hours_back=12, door_id="abc...")
ParameterTypeRequiredDefaultDescription
hours_backintegerno24Look-back window in hours. Defaults to 24.
door_idstringno""Optional door id filter. Empty returns denials across every door.
limitintegerno100Maximum events returned. Defaults to 100.
controllerstringno”default”Name of the UniFi controller to target.