[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:
Florian authored and GitHub committed 2021-03-14 19:31:53 -05:00
1 parent 625f7f358b
commit 0e8b619bb9
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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