From b7494ad2d1d353ce91d9620dc52eb0f0a97cb82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 21 Mar 2025 14:40:28 +0100 Subject: [PATCH] =?UTF-8?q?=C3=BCberarbeteet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ladestation_Universal/module.php | 8 ++++---- library.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 16488bb..90c8f6e 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -302,7 +302,7 @@ class Ladestation_Universal extends IPSModule SetValue($this->GetIDForIdent("Lademodus"), 0); } }else{ - //SetValue($this->GetIDForIdent("Lademodus"), 1); + SetValue($this->GetIDForIdent("Lademodus"), 1); } } @@ -321,18 +321,18 @@ class Ladestation_Universal extends IPSModule $this->SetValue("Peak", $Peak); - if($this->GetValue("Aktuelle_Leistung")<(0.8*$this->GetValue("Power")) && $this->GetValue("Power")>0){ + if(($this->GetValue("Aktuelle_Leistung")<(0.8*$this->GetValue("Power"))) && $this->GetValue("Power")>0){ $this->SetValue("Power_Count", $this->GetValue("Power_Count")+1); - }elseif($this->GetValue("Power_Count")<=4) { + }elseif($this->GetValue("Power_Count")<=8) { $this->SetValue("Power_Count", 0); } - if($this->GetValue("Power_Count")>4){ + if($this->GetValue("Power_Count")>8){ $maxLeistung = 1.05 * $this->GetValue("Aktuelle_Leistung"); } diff --git a/library.json b/library.json index 2ed3408..6ef4008 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.216", + "version": "1.217", "build": 0, "date": 0 } \ No newline at end of file