From f634f58788ecb2b57a90291cda1d46a97c463a07 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Thu, 11 Apr 2024 08:13:31 +0200 Subject: [PATCH] Fix: DPL: use correct channel type to get inverter efficiency --- src/PowerLimiter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerLimiter.cpp b/src/PowerLimiter.cpp index f3163f841..138076a8b 100644 --- a/src/PowerLimiter.cpp +++ b/src/PowerLimiter.cpp @@ -352,7 +352,7 @@ int32_t PowerLimiterClass::inverterPowerDcToAc(std::shared_ptr CONFIG_T& config = Configuration.get(); float inverterEfficiencyPercent = inverter->Statistics()->getChannelFieldValue( - TYPE_AC, CH0, FLD_EFF); + TYPE_INV, CH0, FLD_EFF); // fall back to hoymiles peak efficiency as per datasheet if inverter // is currently not producing (efficiency is zero in that case)