From 848496cfb0dec65dd0bc5015c329845c63c1a6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 19 Dec 2024 10:56:04 +0100 Subject: [PATCH] /0 behoben --- Ladestation_Universal/module.php | 5 +++-- library.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index decbd08..c78a505 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -230,13 +230,14 @@ class Ladestation_Universal extends IPSModule ); SetValue($this->GetIDForIdent("Fahrzeugstatus"), $data["State"]); - + + if($data["MaxAllowedChargingCurrent"]>0){ if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4 && $data["car"] != 1) { SetValue($this->GetIDForIdent("Lademodus"), 1); } elseif ($data["car"] != 1) { SetValue($this->GetIDForIdent("Lademodus"), 0); } - } + }} } } diff --git a/library.json b/library.json index 541d95f..5832438 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.202", + "version": "0.203", "build": 0, "date": 0 } \ No newline at end of file