Skip to content

Commit

Permalink
disable restarting solar-powered inverters
Browse files Browse the repository at this point in the history
now that users can tell the DPL that their inverter is not powered by a
battery but powered by solar panels, we shall not restart inverters to
reset the daily yield value, if they are solar powered. these inverters
will reboot every night by themselves.
  • Loading branch information
schlimmchen committed Mar 14, 2024
1 parent 8895791 commit 5c6b4a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PowerLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,12 @@ void PowerLimiterClass::calcNextInverterRestart()
return;
}

if (config.PowerLimiter.IsInverterSolarPowered) {
_nextInverterRestart = 1;
MessageOutput.println("[DPL::calcNextInverterRestart] not restarting solar-powered inverters");
return;
}

// read time from timeserver, if time is not synced then return
struct tm timeinfo;
if (getLocalTime(&timeinfo, 5)) {
Expand Down

0 comments on commit 5c6b4a8

Please sign in to comment.