From 061fb15a80644514c8caa91a38f5f3af3d6b8528 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 15 Jul 2022 07:05:35 -0600 Subject: [PATCH] Reset motion to false on startup --- frigate/mqtt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate/mqtt.py b/frigate/mqtt.py index 4b74d6f62..a1e564f7d 100644 --- a/frigate/mqtt.py +++ b/frigate/mqtt.py @@ -314,6 +314,11 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics): config.cameras[name].motion.contour_area, retain=True, ) + client.publish( + f"{mqtt_config.topic_prefix}/{name}/motion", + "OFF", + retain=False, + ) return client