Reset motion to false on startup

This commit is contained in:
Nick Mowen 2022-07-15 07:05:35 -06:00 committed by Blake Blackshear
parent 3246fcce22
commit 061fb15a80

View File

@ -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