pub fn entity(
prefix: &str,
base: &str,
device_id: &str,
device_name: &str,
model: &str,
manufacturer: Option<&str>,
key: &str,
unit: &str,
) -> (String, Value)Expand description
The discovery topic and payload for one reading of one device.