NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix small audio events details (#6978)
Nicolas Mowen7ee17c7af871
diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.mdindex 8915db6b3a..f23a32270a 100644--- a/docs/docs/configuration/index.md+++ b/docs/docs/configuration/index.md@@ -467,10 +467,11 @@ cameras:# Required: the path to the stream# NOTE: path may include environment variables, which must begin with 'FRIGATE_' and be referenced in {}- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2- # Required: list of roles for this stream. valid values are: detect,record,rtmp- # NOTICE: In addition to assigning the record and rtmp roles,+ # Required: list of roles for this stream. valid values are: audio,detect,record,rtmp+ # NOTICE: In addition to assigning the audio, record, and rtmp roles,# they must also be enabled in the camera config.roles:+ - audio- detect- record- rtmpdiff --git a/docs/docs/integrations/mqtt.md b/docs/docs/integrations/mqtt.mdindex cde7605590..229285676b 100644--- a/docs/docs/integrations/mqtt.md+++ b/docs/docs/integrations/mqtt.md@@ -109,11 +109,19 @@ Same data available at `/api/stats` published at a configurable interval.### `frigate/<camera_name>/detect/set`-Topic to turn detection for a camera on and off. Expected values are `ON` and `OFF`.+Topic to turn object detection for a camera on and off. Expected values are `ON` and `OFF`.### `frigate/<camera_name>/detect/state`-Topic with current state of detection for a camera. Published values are `ON` and `OFF`.+Topic with current state of object detection for a camera. Published values are `ON` and `OFF`.++### `frigate/<camera_name>/audio/set`++Topic to turn audio detection for a camera on and off. Expected values are `ON` and `OFF`.++### `frigate/<camera_name>/audio/state`++Topic with current state of audio detection for a camera. Published values are `ON` and `OFF`.### `frigate/<camera_name>/recordings/set`diff --git a/frigate/comms/mqtt.py b/frigate/comms/mqtt.pyindex 4ddfbe7f13..2859a04a2c 100644--- a/frigate/comms/mqtt.py+++ b/frigate/comms/mqtt.py@@ -149,6 +149,7 @@ class MqttClient(Communicator): # type: ignore[misc]"recordings","snapshots","detect",+ "audio","motion","improve_contrast","motion_threshold",diff --git a/frigate/events/audio.py b/frigate/events/audio.pyindex 4f40334d42..e1d25e0188 100644--- a/frigate/events/audio.py+++ b/frigate/events/audio.py@@ -206,7 +206,7 @@ class AudioEventMaintainer(threading.Thread):now - detection.get("last_detection", now)> self.config.audio.max_not_heard):- self.detections[detection["label"]] = None+ del self.detections[detection["label"]]requests.put(f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",json={