Add option for gal/min rate for Home Assistant MQTT Autodiscovery (#3868)

Add gal/min as an option
This commit is contained in:
Rick Auch
2025-08-17 08:27:21 -05:00
committed by GitHub
parent c320e4c921
commit 73afc07652
3 changed files with 14 additions and 6 deletions

View File

@@ -161,6 +161,9 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph)
else if (toUpper(splitted[1]) == "WATER_GAL") {
mqttServer_setMeterType("water", "gal", "h", "gal/h");
}
else if (toUpper(splitted[1]) == "WATER_GAL_MIN") {
mqttServer_setMeterType("water", "gal", "min", "gal/min"); // min = Minutes
}
else if (toUpper(splitted[1]) == "GAS_M3") {
mqttServer_setMeterType("gas", "", "h", "m³/h");
}