[BREAKING] Change uptime unit from seconds to minutes (#897)
* Change uptime from s to min to prevent going to the max of unsigned long
This commit is contained in:
1 parent
625f7f358b
commit
0e8b619bb9
2 files changed
+3
-3
No files matched your search
@@ -174,7 +174,7 @@ void pubMqttDiscovery() {
|
||||
createDiscovery("sensor", //set Type
|
||||
subjectSYStoMQTT, "SYS: Uptime", (char*)getUniqueId("uptime", "").c_str(), //set state_topic,name,uniqueId
|
||||
"", "", "{{ value_json.uptime }}", //set availability_topic,device_class,value_template,
|
||||
"", "", "s", //set,payload_on,payload_off,unit_of_meas,
|
||||
"", "", "min", //set,payload_on,payload_off,unit_of_meas,
|
||||
0, //set off_delay
|
||||
"", "", true, "", //set,payload_avalaible,payload_not avalaible ,is a gateway entity, command topic
|
||||
"", "", "", "", false // device name, device manufacturer, device model, device mac, retain
|
||||
|
||||
Reference in new issue
Block a user