no message

This commit is contained in:
2025-04-08 07:15:21 +02:00
parent dd6e1462e6
commit 6333035017

View File

@@ -248,7 +248,7 @@ class Ladestation_v2 extends IPSModule
public function Get_Array_From_Current(bool $is_1_ph, float $current)
{
$resultArray = [];
$resultArray[] = 0;
for ($i = 6; $i <= $current; $i++) {
if ($is_1_ph) {
$resultArray[] = $i * 230;
@@ -328,7 +328,7 @@ class Ladestation_v2 extends IPSModule
if (!$ladebereit) {
$powerSteps = [0];
} elseif (!$Peak && !$solarladen) {
$powerSteps = [max(0,$this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))];
$powerSteps = [max($this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))];
} elseif (!$Peak && $solarladen) {
$powerSteps = $this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current"));
} elseif ($solarladen && $Peak) {