Skip to content

Commit

Permalink
[DISC] Add statistics to relevant sensors (#1832)
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile authored Dec 9, 2023
1 parent a0919bb commit 296248f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main/ZmqttDiscovery.ino
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void pubMqttDiscovery() {
0, //set off_delay
Gateway_AnnouncementMsg, will_Message, true, "", //set,payload_available,payload_not available ,is a gateway entity, command topic
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
# if defined(ESP8266) || defined(ESP32)
createDiscovery("sensor", //set Type
Expand All @@ -485,7 +485,7 @@ void pubMqttDiscovery() {
0, //set off_delay
Gateway_AnnouncementMsg, will_Message, true, "", //set,payload_available,payload_not available ,is a gateway entity, command topic
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
createDiscovery("sensor", //set Type
subjectSYStoMQTT, "SYS: IP", (char*)getUniqueId("ip", "").c_str(), //set state_topic,name,uniqueId
Expand Down Expand Up @@ -718,7 +718,7 @@ void pubMqttDiscovery() {
HTUsensor[i][5], HTUsensor[i][6], HTUsensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand All @@ -734,7 +734,7 @@ void pubMqttDiscovery() {
LM75sensor[5], LM75sensor[6], LM75sensor[7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
# endif

Expand All @@ -754,7 +754,7 @@ void pubMqttDiscovery() {
AHTsensor[i][5], AHTsensor[i][6], AHTsensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand All @@ -776,7 +776,7 @@ void pubMqttDiscovery() {
DHTsensor[i][5], DHTsensor[i][6], DHTsensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand Down Expand Up @@ -815,7 +815,7 @@ void pubMqttDiscovery() {
BH1750sensor[i][5], BH1750sensor[i][6], BH1750sensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand Down Expand Up @@ -859,7 +859,7 @@ void pubMqttDiscovery() {
TEMT6000sensor[i][5], TEMT6000sensor[i][6], TEMT6000sensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand All @@ -882,7 +882,7 @@ void pubMqttDiscovery() {
TSL2561sensor[i][5], TSL2561sensor[i][6], TSL2561sensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand Down Expand Up @@ -937,7 +937,7 @@ void pubMqttDiscovery() {
INA226sensor[i][5], INA226sensor[i][6], INA226sensor[i][7],
0, Gateway_AnnouncementMsg, will_Message, true, "",
"", "", "", "", false, // device name, device manufacturer, device model, device ID, retain
stateClassNone //State Class
stateClassMeasurement //State Class
);
}
# endif
Expand Down

0 comments on commit 296248f

Please sign in to comment.