no message
This commit is contained in:
@@ -328,7 +328,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
if (!$ladebereit) {
|
if (!$ladebereit) {
|
||||||
$powerSteps = [0];
|
$powerSteps = [0];
|
||||||
} elseif (!$Peak && !$solarladen) {
|
} elseif (!$Peak && !$solarladen) {
|
||||||
$powerSteps = [max($this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))];
|
$powerSteps = [max(0,$this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))];
|
||||||
} elseif (!$Peak && $solarladen) {
|
} elseif (!$Peak && $solarladen) {
|
||||||
$powerSteps = $this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current"));
|
$powerSteps = $this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current"));
|
||||||
} elseif ($solarladen && $Peak) {
|
} elseif ($solarladen && $Peak) {
|
||||||
|
|||||||
@@ -250,10 +250,10 @@ class Manager_v2 extends IPSModule
|
|||||||
"step" => -1*$step
|
"step" => -1*$step
|
||||||
];}
|
];}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Sortiere die Schritte nach Größe
|
// Sortiere die Schritte nach Größe
|
||||||
usort($allSteps, function ($a, $b) {
|
usort($allSteps, function ($a, $b) {
|
||||||
return $a["step"] <=> $b["step"];
|
return $a["step"] <=> $b["step"];
|
||||||
|
|||||||
Reference in New Issue
Block a user