String auslesen statt Integer
This commit is contained in:
@@ -358,7 +358,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
return;
|
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("Ladeleistung_Effektiv", $this->GetValue("Power"));
|
||||||
$this->SetValue("Fahrzeugstatus", 2);
|
$this->SetValue("Fahrzeugstatus", 2);
|
||||||
$car_on_station = true;
|
$car_on_station = true;
|
||||||
@@ -602,7 +602,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
CURLOPT_TIMEOUT => 30,
|
CURLOPT_TIMEOUT => 30,
|
||||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||||
CURLOPT_CUSTOMREQUEST => "POST",
|
CURLOPT_CUSTOMREQUEST => "POST",
|
||||||
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}",
|
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."",
|
"Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."",
|
||||||
"content-type: application/*+json"
|
"content-type: application/*+json"
|
||||||
@@ -644,7 +644,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
CURLOPT_TIMEOUT => 30,
|
CURLOPT_TIMEOUT => 30,
|
||||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||||
CURLOPT_CUSTOMREQUEST => "POST",
|
CURLOPT_CUSTOMREQUEST => "POST",
|
||||||
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}",
|
CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}",
|
||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
"Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."",
|
"Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."",
|
||||||
"content-type: application/*+json"
|
"content-type: application/*+json"
|
||||||
|
|||||||
Reference in New Issue
Block a user