From 92790e7d883fe9eef86e99e4c455bb7f5a9f7d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 21 Mar 2025 14:55:47 +0100 Subject: [PATCH] no message --- Ladestation_Universal/module.php | 6 +++--- library.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 00ed30f..b98213e 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -295,7 +295,7 @@ class Ladestation_Universal extends IPSModule SetValue($this->GetIDForIdent("Fahrzeugstatus"), $data["State"]); - if($data["MaxAllowedChargingCurrent"]>0 && $data["State"] != 1){ + if($this->GetValue("Aktuelle_Leistung")>0){ if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4/* && $data["State"] != 1*/) { SetValue($this->GetIDForIdent("Lademodus"), 1); } elseif ($data["State"] != 1) { @@ -321,9 +321,9 @@ 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)){ - $dummy = $this->GetValue("Power_Count")+1 + $dummy = $this->GetValue("Power_Count")+1; $this->SetValue("Power_Count", $dummy); }elseif($this->GetValue("Power_Count")<=8) { diff --git a/library.json b/library.json index 3c8f304..9a75b56 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.219", + "version": "1.221", "build": 0, "date": 0 } \ No newline at end of file