This commit is contained in:
@@ -50,8 +50,6 @@ final class ManagerRegler
|
||||
float $netzleistung,
|
||||
string $bisherigeBetriebsart,
|
||||
bool $peakAktiv,
|
||||
float $umschaltschwelleUeberschuss,
|
||||
float $umschaltschwelleLastspitze,
|
||||
float $sollwertSolarladen,
|
||||
float $wirksameLastspitzengrenze,
|
||||
float $umschaltdifferenzProzent
|
||||
@@ -67,9 +65,9 @@ final class ManagerRegler
|
||||
}
|
||||
|
||||
$kandidat = $bisherigeBetriebsart;
|
||||
if ($netzleistung < $umschaltschwelleUeberschuss) {
|
||||
if ($netzleistung < $sollwertSolarladen) {
|
||||
$kandidat = self::BETRIEBSART_PV;
|
||||
} elseif ($netzleistung > $umschaltschwelleLastspitze) {
|
||||
} elseif ($netzleistung > $wirksameLastspitzengrenze) {
|
||||
$kandidat = self::BETRIEBSART_PEAK;
|
||||
} elseif (!in_array($kandidat, [self::BETRIEBSART_PV, self::BETRIEBSART_PEAK], true)) {
|
||||
$kandidat = self::BETRIEBSART_PV;
|
||||
|
||||
Reference in New Issue
Block a user