diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index edd4522..ea2c40a 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -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) {