Anpassung an 1-Phasen-Umschaltung für Smart-Me

This commit is contained in:
2025-01-06 09:07:39 +01:00
parent cd2ed4b482
commit 0bba4380d1
2 changed files with 4 additions and 4 deletions

View File

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