From ec80612c043b29d34b0f9d355575a42e6b5ecd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 14 Mar 2025 11:00:42 +0100 Subject: [PATCH] =?UTF-8?q?auf=2050=20er=20schritte=20erh=C3=B6ht+?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Batterie/module.php | 4 +--- library.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index f03584d..06ece7c 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -61,7 +61,7 @@ class Batterie extends IPSModule { $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); $stepSize = 250; // Schrittgröße - $stepSizeSmall = 25; // Kleine Schrittgröße + $stepSizeSmall = 50; // Kleine Schrittgröße // Array direkt als Range erzeugen (schneller als Schleife) $array_powersteps = range(-$maxleistung, $maxleistung, $stepSize); @@ -79,7 +79,6 @@ class Batterie extends IPSModule // Zusätzliche Werte berechnen und auf MaxLeistung begrenzen $newValues = array_filter([ - $closestValue - 5 * $stepSizeSmall, $closestValue - 4 * $stepSizeSmall, $closestValue - 3 * $stepSizeSmall, $closestValue - 2 * $stepSizeSmall, @@ -89,7 +88,6 @@ class Batterie extends IPSModule $closestValue + 2 * $stepSizeSmall, $closestValue + 3 * $stepSizeSmall, $closestValue + 4 * $stepSizeSmall, - $closestValue + 5 * $stepSizeSmall ], function ($value) use ($maxleistung) { return $value >= -$maxleistung && $value <= $maxleistung; }); diff --git a/library.json b/library.json index 60f7cd9..5941347 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.185", + "version": "1.186", "build": 0, "date": 0 } \ No newline at end of file