Skip to content

summarize_access_activity

Aggregate badge events by door, user, and outcome.

Side effects: None (read-only).

Pulls events over the last hours_back hours (cap 500 to keep the summary tractable) and rolls them up into counts so the LLM can answer “who used which door how often” without re-aggregating client-side. Returns total, granted, denied, plus by_door and by_user maps.

summarize_access_activity(hours_back=24)
ParameterTypeRequiredDefaultDescription
hours_backintegerno24Look-back window in hours. Defaults to 24.
controllerstringno”default”Name of the UniFi controller to target.