Fix missing lowpowermode attribute (#1281)

LowPowerMode is not used outside of the BT gateway, removing it from discoveyr fixes #1267
This commit is contained in:
Florian authored and GitHub committed 2022-10-10 18:30:46 -05:00
1 parent aea3ac2577
commit bbaabcc20d
1 file changed
+2
+2
View File
@@ -400,6 +400,7 @@ void pubMqttDiscovery() {
# endif
# endif
# ifdef ESP32
# ifdef ZgatewayBT
createDiscovery("sensor", //set Type
subjectSYStoMQTT, "SYS: Low Power Mode", (char*)getUniqueId("lowpowermode", "").c_str(), //set state_topic,name,uniqueId
"", "", "{{ value_json.lowpowermode }}", //set availability_topic,device_class,value_template,
@@ -409,6 +410,7 @@ void pubMqttDiscovery() {
"", "", "", "", false, // device name, device manufacturer, device model, device MAC
stateClassNone //State Class
);
# endif
# if defined(ZboardM5STICKC) || defined(ZboardM5STICKCP) || defined(ZboardM5TOUGH)
createDiscovery("sensor", //set Type
subjectSYStoMQTT, "SYS: Bat voltage", (char*)getUniqueId("m5batvoltage", "").c_str(), //set state_topic,name,uniqueId