forked from Github/frigate
Reset motion to false on startup
This commit is contained in:
committed by
Blake Blackshear
parent
3246fcce22
commit
061fb15a80
@@ -314,6 +314,11 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics):
|
|||||||
config.cameras[name].motion.contour_area,
|
config.cameras[name].motion.contour_area,
|
||||||
retain=True,
|
retain=True,
|
||||||
)
|
)
|
||||||
|
client.publish(
|
||||||
|
f"{mqtt_config.topic_prefix}/{name}/motion",
|
||||||
|
"OFF",
|
||||||
|
retain=False,
|
||||||
|
)
|
||||||
|
|
||||||
return client
|
return client
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user