forked from Github/frigate
MQTT: Birdseye enabled/disabled and mode change support (#8291)
* support enabled and mode change for birdseye via mqtt * resolve feedback from PR review https://github.com/blakeblackshear/frigate/pull/8291#discussion_r1370083613 * change birdseye mode topic to set * type in the docs * these commented out lines should have never been in here
This commit is contained in:
@@ -89,6 +89,18 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
"OFF",
|
||||
retain=False,
|
||||
)
|
||||
self.publish(
|
||||
f"{camera_name}/birdseye/state",
|
||||
"ON" if camera.birdseye.enabled else "OFF",
|
||||
retain=True,
|
||||
)
|
||||
self.publish(
|
||||
f"{camera_name}/birdseye_mode/state",
|
||||
camera.birdseye.mode.value.upper()
|
||||
if camera.birdseye.enabled
|
||||
else "OFF",
|
||||
retain=True,
|
||||
)
|
||||
|
||||
self.publish("available", "online", retain=True)
|
||||
|
||||
@@ -160,6 +172,8 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
"ptz_autotracker",
|
||||
"motion_threshold",
|
||||
"motion_contour_area",
|
||||
"birdseye",
|
||||
"birdseye_mode",
|
||||
]
|
||||
|
||||
for name in self.config.cameras.keys():
|
||||
|
||||
Reference in New Issue
Block a user