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)
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.