summarize_access_activity
summarize_access_activity
Section titled “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.
Example
Section titled “Example”summarize_access_activity(hours_back=24)Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hours_back | integer | no | 24 | Look-back window in hours. Defaults to 24. |
controller | string | no | ”default” | Name of the UniFi controller to target. |