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