diff --git a/frigate/http.py b/frigate/http.py index 43fa17883..a2b16857f 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -50,12 +50,14 @@ def events_summary(): Event.camera, Event.label, fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')).alias('day'), + Event.zones, fn.COUNT(Event.id).alias('count') ) .group_by( Event.camera, Event.label, - fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')) + fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')), + Event.zones ) )