"blinken der station entfehrnt, counter reduziert

This commit is contained in:
2025-04-15 07:57:35 +02:00
parent 6f9a39beeb
commit 397983447e
+8 -8
View File
@@ -163,7 +163,7 @@ class Ladestation_v2 extends IPSModule
$counter = $this->GetValue("Pending_Counter"); $counter = $this->GetValue("Pending_Counter");
if($counter>(35/($this->ReadPropertyInteger("Interval")))){ if($counter>(25/($this->ReadPropertyInteger("Interval")))){
$this->SetValue("Pending_Counter", 0); $this->SetValue("Pending_Counter", 0);
if($this->GetValue("Ladeleistung_Effektiv")>7500){ if($this->GetValue("Ladeleistung_Effektiv")>7500){
@@ -211,12 +211,12 @@ class Ladestation_v2 extends IPSModule
$data = json_decode($response, true); $data = json_decode($response, true);
if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) { if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) {
if ($data["car"] != 1) { /*if ($data["car"] != 1) {
$this->SetValue("Car_detected", true); $this->SetValue("Car_detected", true);
} }
else{ else{
$this->SetValue("Car_detected", false); $this->SetValue("Car_detected", false);
} }*/
$this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]*10); $this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]*10);
$this->SetValue("Fahrzeugstatus", $data["car"]); $this->SetValue("Fahrzeugstatus", $data["car"]);
} }
@@ -230,12 +230,12 @@ class Ladestation_v2 extends IPSModule
$data = json_decode($response, true); $data = json_decode($response, true);
if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) { if (json_last_error() === JSON_ERROR_NONE && isset($data["car"])) {
if ($data["car"] != 1) { /*if ($data["car"] != 1) {
$this->SetValue("Car_detected", true); $this->SetValue("Car_detected", true);
} }
else{ else{
$this->SetValue("Car_detected", false); $this->SetValue("Car_detected", false);
} }*/
$this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]); $this->SetValue("Ladeleistung_Effektiv", $data["nrg"][11]);
$this->SetValue("Fahrzeugstatus", $data["car"]); $this->SetValue("Fahrzeugstatus", $data["car"]);
} }
@@ -251,12 +251,12 @@ class Ladestation_v2 extends IPSModule
$data = json_decode($response, true); $data = json_decode($response, true);
if (json_last_error() === JSON_ERROR_NONE && isset($data["State"])) { if (json_last_error() === JSON_ERROR_NONE && isset($data["State"])) {
if ($data["State"] != 1) { /*if ($data["car"] != 1) {
$this->SetValue("Car_detected", true); $this->SetValue("Car_detected", true);
} }
else{ else{
$this->SetValue("Car_detected", false); $this->SetValue("Car_detected", false);
} }*/
$this->SetValue("Ladeleistung_Effektiv", round($data["ActiveChargingPower"]*1000)); $this->SetValue("Ladeleistung_Effektiv", round($data["ActiveChargingPower"]*1000));
$this->SetValue("Fahrzeugstatus", $data["State"]); $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->SetValue("Pending_Counter", 0);
$this->Calc_Max_Current($this->GetValue("Is_1_ph")); $this->Calc_Max_Current($this->GetValue("Is_1_ph"));