no message
This commit is contained in:
+3
-3
@@ -173,14 +173,14 @@ class Manager extends IPSModule
|
|||||||
$Ueberschussleistung = $this->ReadPropertyInteger("Ueberschussleistung");
|
$Ueberschussleistung = $this->ReadPropertyInteger("Ueberschussleistung");
|
||||||
|
|
||||||
if($this->GetValue("Is_Peak_Shaving")){
|
if($this->GetValue("Is_Peak_Shaving")){
|
||||||
$Netzbezug += $totalAktuelle_Leistung;
|
$Netzbezug_korr = $Netzbezug + $totalAktuelle_Leistung;
|
||||||
}else{
|
}else{
|
||||||
$Netzbezug -= $totalAktuelle_Leistung;
|
$Netzbezug_korr = $Netzbezug - $totalAktuelle_Leistung;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallunterscheidung ob auf Solarladen oder Peakshaving gerregelt wird.
|
// Fallunterscheidung ob auf Solarladen oder Peakshaving gerregelt wird.
|
||||||
if ($Netzbezug < ($Peakleistung + $Ueberschussleistung) / 2) {
|
if ($Netzbezug_korr < ($Peakleistung + $Ueberschussleistung) / 2) {
|
||||||
$remainingPower = -1 * (-1 * $Ueberschussleistung + $Netzbezug);
|
$remainingPower = -1 * (-1 * $Ueberschussleistung + $Netzbezug);
|
||||||
$Is_Peak_Shaving = false;
|
$Is_Peak_Shaving = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user