Remove the intial unknown values on the notification and motion
This commit is contained in:
1 file changed
+8
-8
+8
-8
@@ -303,14 +303,14 @@ async fn listen_on_camera(camera: NeoInstance, mqtt_instance: MqttInstance) -> R
|
||||
.await
|
||||
.with_context(|| format!("Failed to publish status for {}", camera_name))?;
|
||||
let _drop_message = mqtt_instance.last_will("status", "disconnected").await?;
|
||||
mqtt_instance
|
||||
.send_message("status/motion", "unknown", true)
|
||||
.await
|
||||
.with_context(|| format!("Failed to publish motion unknown for {}", camera_name))?;
|
||||
mqtt_instance
|
||||
.send_message("status/notification", "unknown", true)
|
||||
.await
|
||||
.with_context(|| format!("Failed to publish push notification unknown for {}", camera_name))?;
|
||||
// mqtt_instance
|
||||
// .send_message("status/motion", "unknown", true)
|
||||
// .await
|
||||
// .with_context(|| format!("Failed to publish motion unknown for {}", camera_name))?;
|
||||
// mqtt_instance
|
||||
// .send_message("status/notification", "unknown", true)
|
||||
// .await
|
||||
// .with_context(|| format!("Failed to publish push notification unknown for {}", camera_name))?;
|
||||
let _drop_message2 = mqtt_instance.last_will("status/motion", "unknown").await?;
|
||||
|
||||
if let Some(discovery_config) = config.discovery.as_ref() {
|
||||
|
||||
Reference in new issue
Block a user