"blinken der station entfehrnt, counter reduziert
This commit is contained in:
@@ -163,7 +163,7 @@ class Ladestation_v2 extends IPSModule
|
||||
|
||||
$counter = $this->GetValue("Pending_Counter");
|
||||
|
||||
if($counter>(35/($this->ReadPropertyInteger("Interval")))){
|
||||
if($counter>(25/($this->ReadPropertyInteger("Interval")))){
|
||||
|
||||
$this->SetValue("Pending_Counter", 0);
|
||||
if($this->GetValue("Ladeleistung_Effektiv")>7500){
|
||||
@@ -211,12 +211,12 @@ class Ladestation_v2 extends IPSModule
|
||||
$data = json_decode($response, true);
|
||||
|
||||
if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) {
|
||||
if ($data["car"] != 1) {
|
||||
/*if ($data["car"] != 1) {
|
||||
$this->SetValue("Car_detected", true);
|
||||
}
|
||||
else{
|
||||
$this->SetValue("Car_detected", false);
|
||||
}
|
||||
}*/
|
||||
$this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]*10);
|
||||
$this->SetValue("Fahrzeugstatus", $data["car"]);
|
||||
}
|
||||
@@ -230,12 +230,12 @@ class Ladestation_v2 extends IPSModule
|
||||
$data = json_decode($response, true);
|
||||
|
||||
if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) {
|
||||
if ($data["car"] != 1) {
|
||||
/*if ($data["car"] != 1) {
|
||||
$this->SetValue("Car_detected", true);
|
||||
}
|
||||
else{
|
||||
$this->SetValue("Car_detected", false);
|
||||
}
|
||||
}*/
|
||||
$this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]);
|
||||
$this->SetValue("Fahrzeugstatus", $data["car"]);
|
||||
}
|
||||
@@ -251,12 +251,12 @@ class Ladestation_v2 extends IPSModule
|
||||
$data = json_decode($response, true);
|
||||
|
||||
if (json_last_error() === JSON_ERROR_NONE && isset($data["State"])) {
|
||||
if ($data["State"] != 1) {
|
||||
/*if ($data["car"] != 1) {
|
||||
$this->SetValue("Car_detected", true);
|
||||
}
|
||||
else{
|
||||
$this->SetValue("Car_detected", false);
|
||||
}
|
||||
}*/
|
||||
$this->SetValue("Ladeleistung_Effektiv", round($data["ActiveChargingPower"]*1000));
|
||||
$this->SetValue("Fahrzeugstatus", $data["State"]);
|
||||
|
||||
@@ -417,7 +417,7 @@ class Ladestation_v2 extends IPSModule
|
||||
|
||||
}
|
||||
|
||||
if($counter>(35/($this->ReadPropertyInteger("Interval")))){
|
||||
if($counter>(25/($this->ReadPropertyInteger("Interval")))){
|
||||
|
||||
$this->SetValue("Pending_Counter", 0);
|
||||
$this->Calc_Max_Current($this->GetValue("Is_1_ph"));
|
||||
|
||||
Reference in New Issue
Block a user