diff --git a/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp index 003cfaa6..058bc147 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowMQTT.cpp @@ -156,6 +156,9 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph) else if (toUpper(splitted[1]) == "ENERGY_MWH") { mqttServer_setMeterType("energy", "MWh", "h", "MW"); } + else if (toUpper(splitted[1]) == "ENERGY_GJ") { + mqttServer_setMeterType("energy", "GJ", "h", "GJ/h"); + } } if ((toUpper(splitted[0]) == "CLIENTID") && (splitted.size() > 1)) diff --git a/sd-card/html/edit_config_param.html b/sd-card/html/edit_config_param.html index 8ccc667f..2ae92890 100644 --- a/sd-card/html/edit_config_param.html +++ b/sd-card/html/edit_config_param.html @@ -654,6 +654,7 @@ textarea { + $TOOLTIP_MQTT_MeterType