mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 08:34:21 +02:00
generic online message
This commit is contained in:
parent
2eaa04a6d2
commit
f10c826f26
1 changed files with 5 additions and 0 deletions
|
|
@ -149,6 +149,11 @@ pub fn format_device_state<W: Write>(
|
|||
println!("{} has no name set, skipping", device.hostname);
|
||||
return Ok(());
|
||||
}
|
||||
writeln!(
|
||||
writer,
|
||||
"tasmota_online{{tasmota_id=\"{}\", name=\"{}\"}} 1",
|
||||
device.hostname, state.name
|
||||
)?;
|
||||
if let Some(switch_state) = state.state {
|
||||
writeln!(
|
||||
writer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue