car durch state ersertzt

This commit is contained in:
2024-12-19 11:35:53 +01:00
parent fd69427ea5
commit 170db38fd4
2 changed files with 3 additions and 3 deletions

View File

@@ -232,9 +232,9 @@ class Ladestation_Universal extends IPSModule
SetValue($this->GetIDForIdent("Fahrzeugstatus"), $data["State"]);
if($data["MaxAllowedChargingCurrent"]>0){
if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4 && $data["car"] != 1) {
if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4 && $data["State"] != 1) {
SetValue($this->GetIDForIdent("Lademodus"), 1);
} elseif ($data["car"] != 1) {
} elseif ($data["State"] != 1) {
SetValue($this->GetIDForIdent("Lademodus"), 0);
}
}else{

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.207",
"version": "0.208",
"build": 0,
"date": 0
}