mirror of
https://codeberg.org/icewind/wifi-prometheus-exporter.git
synced 2026-06-03 16:44:11 +02:00
topic?
This commit is contained in:
parent
6577bfce35
commit
b531a8710e
1 changed files with 2 additions and 2 deletions
|
|
@ -215,11 +215,11 @@ async fn send_update(
|
|||
Update::New => {
|
||||
client
|
||||
.publish(
|
||||
format!("home-assistant/device_tracker/wifi-{}/config", mac),
|
||||
format!("homeassistant/device_tracker/wifi-{}/config", mac),
|
||||
QoS::AtLeastOnce,
|
||||
false,
|
||||
format!(
|
||||
r#"{{"state_topic": "wifi-exporter/{mac}/state", "name": "Wifi device {mac}", "payload_home": "connected", "payload_not_home": "disconnected"}}"#,
|
||||
r#"{{"state_topic": "wifi-exporter/{mac}/state", "name": "Wifi device {mac}", " payload_available": "connected", " payload_not_available": "disconnected", "unique_id": "wifi-{mac}}}"#,
|
||||
mac = mac
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue