Ability to enable / disable motion detection via MQTT (#3117)

* Starting working on adding motion toggle

* Add all info to mqtt command

* Send motion to correct funs

* Update mqtt docs

* Fixes for contingencies

* format

* mypy

* Tweak behavior

* Fix motion breaking frames

* Fix bad logic in detect set

* Always set value for motion boxes
This commit is contained in:
Nicolas Mowen
2022-04-26 06:29:28 -06:00
committed by GitHub
parent b75929a846
commit 0a4d658c7f
6 changed files with 53 additions and 2 deletions

View File

@@ -91,6 +91,7 @@ class FrigateApp:
"detection_enabled": mp.Value(
"i", self.config.cameras[camera_name].detect.enabled
),
"motion_enabled": mp.Value("i", True),
"improve_contrast_enabled": mp.Value(
"i", self.config.cameras[camera_name].motion.improve_contrast
),