From 73fded1292af869a08c78d72358c6d893bbdc934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Bo=CC=88hm?= Date: Mon, 13 Jan 2025 19:29:27 +0100 Subject: [PATCH] revert "Fix: Don't check shading for max increase when inverter limit is below 15%" Reverted as it leads to frequent high changes of the limit. --- src/PowerLimiterSolarInverter.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/PowerLimiterSolarInverter.cpp b/src/PowerLimiterSolarInverter.cpp index 119e49663..9daeab08b 100644 --- a/src/PowerLimiterSolarInverter.cpp +++ b/src/PowerLimiterSolarInverter.cpp @@ -27,14 +27,6 @@ uint16_t PowerLimiterSolarInverter::getMaxIncreaseWatts() const // the maximum increase possible for this inverter int16_t maxTotalIncrease = getConfiguredMaxPowerWatts() - getCurrentOutputAcWatts(); - // when the current limit is less than 15% of the max power of the inverter - // the output will not match the limit as the inverters are not able to work - // with those low limits. In this case we assume that the inverter is able to - // provide more power and we return the maximum possible increase. - // thanks spcqike for creating a table that can be found here: - // https://github.com/hoylabs/OpenDTU-OnBattery/issues/1087#issuecomment-2216787552 - if (getCurrentLimitWatts() < getInverterMaxPowerWatts() * 0.15) { return maxTotalIncrease; } - auto pStats = _spInverter->Statistics(); std::vector dcMppts = _spInverter->getMppts(); size_t dcTotalMppts = dcMppts.size();