From 7b81a0d94e2258960b9b8f474f4f7c4844492483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 10 Jun 2025 13:42:00 +0200 Subject: [PATCH] no message --- Ansteuerung_Askoheat/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ansteuerung_Askoheat/module.php b/Ansteuerung_Askoheat/module.php index 50bfc7c..68deb5a 100644 --- a/Ansteuerung_Askoheat/module.php +++ b/Ansteuerung_Askoheat/module.php @@ -133,7 +133,7 @@ class Ansteuerung_Askoheat extends IPSModule { if($power>0){ - RequestAction($this->ReadPropertyInteger("Variable_Leistung"), $this->ReadPropertyInteger("BoilerLeistung")/$power); + RequestAction($this->ReadPropertyInteger("Variable_Leistung"), round($power / round(($this->ReadPropertyInteger("BoilerLeistung")/7)))); }else{ @@ -163,7 +163,7 @@ class Ansteuerung_Askoheat extends IPSModule public function Calc_Seven_Steps(int $power) { $steps = []; - $increment = $power / 7; + $increment = round($power / 7); for ($i = 0; $i <= 7; $i++) { $steps[] = $i * $increment;