diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 328cc12..8e699e6 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -567,11 +567,14 @@ class Ladestation_v2 extends IPSModule return $resultArray; }else{ - if ($is_1_ph) { - $resultArray[] = $this->GetValue("Mindestaldestrom") * 230; - } else { - $resultArray[] = $this->GetValue("Mindestaldestrom") * 400 * 1.71; - } + // Schleife wie gehabt + for ($i = (max($this->GetValue("Mindestaldestrom") + 1, 6)); $i <= $current; $i++) { + if ($is_1_ph) { + $resultArray[] = $i * 230; + } else { + $resultArray[] = $i * 400 * 1.71; + } + } }