diff --git a/frigate/api/app.py b/frigate/api/app.py index 7ab54ad86..75b29d566 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -153,6 +153,7 @@ def config(request: Request): config["plus"] = {"enabled": request.app.frigate_config.plus_api.is_active()} config["model"]["colormap"] = config_obj.model.colormap + config["model"]["all_attributes"] = config_obj.model.all_attributes # use merged labelamp for detector_config in config["detectors"].values(): diff --git a/web/src/components/filter/SearchFilterGroup.tsx b/web/src/components/filter/SearchFilterGroup.tsx index e8599895d..8aa87f8e4 100644 --- a/web/src/components/filter/SearchFilterGroup.tsx +++ b/web/src/components/filter/SearchFilterGroup.tsx @@ -61,7 +61,9 @@ export default function SearchFilterGroup({ } const cameraConfig = config.cameras[camera]; cameraConfig.objects.track.forEach((label) => { - labels.add(label); + if (!config.model.all_attributes.includes(label)) { + labels.add(label); + } }); if (cameraConfig.audio.enabled_in_config) { diff --git a/web/src/types/frigateConfig.ts b/web/src/types/frigateConfig.ts index 8ed3119dc..9f5b93717 100644 --- a/web/src/types/frigateConfig.ts +++ b/web/src/types/frigateConfig.ts @@ -343,6 +343,7 @@ export interface FrigateConfig { width: number; colormap: { [key: string]: [number, number, number] }; attributes_map: { [key: string]: [string] }; + all_attributes: [string]; }; motion: Record | null;