From 545f180637ae239862ef29017aa8bfe0464fc3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 19 Sep 2025 16:14:31 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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; + } + } }