From e53d8609d81a2481e090048c696f5d70f0d526ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 17 Jun 2025 07:53:43 +0200 Subject: [PATCH] String auslesen statt Integer --- Ladestation_v2/module.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index a39b19b..1a38577 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -358,7 +358,7 @@ class Ladestation_v2 extends IPSModule return; } - if (isset($data['driverIdentifier']) && ($data['driverIdentifier']==$this->ReadPropertyInteger("Username"))) { + if (isset($data['driverIdentifier']) && ($data['driverIdentifier']==$this->ReadPropertyString("Username"))) { $this->SetValue("Ladeleistung_Effektiv", $this->GetValue("Power")); $this->SetValue("Fahrzeugstatus", 2); $car_on_station = true; @@ -602,7 +602,7 @@ class Ladestation_v2 extends IPSModule CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", - CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}", + CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}", CURLOPT_HTTPHEADER => [ "Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."", "content-type: application/*+json" @@ -644,7 +644,7 @@ class Ladestation_v2 extends IPSModule CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", - CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}", + CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}", CURLOPT_HTTPHEADER => [ "Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."", "content-type: application/*+json"