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.
This commit is contained in:
Bernhard Kirchen 2024-04-11 08:36:59 +02:00 committed by Bernhard Kirchen
parent f634f58788
commit 8b3a1bef47

View File

@ -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(); }