diff --git a/src/WebApi_Huawei.cpp b/src/WebApi_Huawei.cpp index 2a7689aee..691c6504f 100644 --- a/src/WebApi_Huawei.cpp +++ b/src/WebApi_Huawei.cpp @@ -50,7 +50,7 @@ void WebApiHuaweiClass::getJsonData(JsonObject& root) { root[F("input_temp")]["u"] = "°C"; root[F("output_temp")]["v"] = rp->output_temp; root[F("output_temp")]["u"] = "°C"; - root[F("efficiency")]["v"] = rp->efficiency; + root[F("efficiency")]["v"] = rp->efficiency * 100; root[F("efficiency")]["u"] = "%"; } diff --git a/src/WebApi_ws_Huawei.cpp b/src/WebApi_ws_Huawei.cpp index 1c3873bf5..4cf8eb841 100644 --- a/src/WebApi_ws_Huawei.cpp +++ b/src/WebApi_ws_Huawei.cpp @@ -96,7 +96,7 @@ void WebApiWsHuaweiLiveClass::generateJsonResponse(JsonVariant& root) root[F("input_temp")]["u"] = "°C"; root[F("output_temp")]["v"] = rp->output_temp; root[F("output_temp")]["u"] = "°C"; - root[F("efficiency")]["v"] = rp->efficiency; + root[F("efficiency")]["v"] = rp->efficiency * 100; root[F("efficiency")]["u"] = "%"; } diff --git a/webapp/src/components/HuaweiView.vue b/webapp/src/components/HuaweiView.vue index a9ca8067c..a0917ebb8 100644 --- a/webapp/src/components/HuaweiView.vue +++ b/webapp/src/components/HuaweiView.vue @@ -70,7 +70,7 @@