no message

This commit is contained in:
2025-10-29 10:50:16 +01:00
parent 848468ef08
commit 2dc76b869e
2 changed files with 8 additions and 1 deletions

View File

@@ -172,6 +172,13 @@ class Manager extends IPSModule
$Peakleistung = $this->ReadPropertyInteger("Peakleistung");
$Ueberschussleistung = $this->ReadPropertyInteger("Ueberschussleistung");
if($this->GetValue("Is_Peak_Shaving")){
$Netzbezug += $totalAktuelle_Leistung;
}else{
$Netzbezug -= $totalAktuelle_Leistung;
}
// Fallunterscheidung ob auf Solarladen oder Peakshaving gerregelt wird.
if ($Netzbezug < ($Peakleistung + $Ueberschussleistung) / 2) {
$remainingPower = -1 * (-1 * $Ueberschussleistung + $Netzbezug);