mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-14 10:42:49 +03:00
Dynamically enable/disable GenAI (#19139)
* config * dispatcher and mqtt * docs * use config updater * add switch to frontend
This commit is contained in:
committed by
Blake Blackshear
parent
22478df4d6
commit
8719216fa6
@@ -122,6 +122,11 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
"ON" if camera.review.detections.enabled_in_config else "OFF",
|
||||
retain=True,
|
||||
)
|
||||
self.publish(
|
||||
f"{camera_name}/genai/state",
|
||||
"ON" if camera.genai.enabled_in_config else "OFF",
|
||||
retain=True,
|
||||
)
|
||||
|
||||
if self.config.notifications.enabled_in_config:
|
||||
self.publish(
|
||||
@@ -215,6 +220,7 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
"birdseye_mode",
|
||||
"review_alerts",
|
||||
"review_detections",
|
||||
"genai",
|
||||
]
|
||||
|
||||
for name in self.config.cameras.keys():
|
||||
|
||||
Reference in New Issue
Block a user