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"