From 8b3a1bef47560b83247c28bad583ebaf14f13ed6 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Thu, 11 Apr 2024 08:36:59 +0200 Subject: [PATCH] Fix: show AC input power of Huawei AC charger in live view makes the value match its description. since most values in the top part of the live view are related to the AC side of the system, it makes sense to use the correct value rather than to change the description. --- src/WebApi_ws_live.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebApi_ws_live.cpp b/src/WebApi_ws_live.cpp index 7f42bf443..505f167ae 100644 --- a/src/WebApi_ws_live.cpp +++ b/src/WebApi_ws_live.cpp @@ -80,7 +80,7 @@ void WebApiWsLiveClass::generateOnBatteryJsonResponse(JsonVariant& root, bool al if (config.Huawei.Enabled) { const RectifierParameters_t * rp = HuaweiCan.get(); - addTotalField(huaweiObj, "Power", rp->output_power, "W", 2); + addTotalField(huaweiObj, "Power", rp->input_power, "W", 2); } if (!all) { _lastPublishHuawei = millis(); }