Anpassung an 1-Phasen-Umschaltung für Smart-Me
This commit is contained in:
@@ -231,14 +231,14 @@ class Ladestation_Universal extends IPSModule
|
|||||||
|
|
||||||
SetValue($this->GetIDForIdent("Fahrzeugstatus"), $data["State"]);
|
SetValue($this->GetIDForIdent("Fahrzeugstatus"), $data["State"]);
|
||||||
|
|
||||||
if($data["MaxAllowedChargingCurrent"]>0){
|
if($data["MaxAllowedChargingCurrent"]>0 && $data["State"] != 1){
|
||||||
if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4 && $data["State"] != 1) {
|
if ($data["ActiveChargingPower"]/$data["MaxAllowedChargingCurrent"] > 0.4/* && $data["State"] != 1*/) {
|
||||||
SetValue($this->GetIDForIdent("Lademodus"), 1);
|
SetValue($this->GetIDForIdent("Lademodus"), 1);
|
||||||
} elseif ($data["State"] != 1) {
|
} elseif ($data["State"] != 1) {
|
||||||
SetValue($this->GetIDForIdent("Lademodus"), 0);
|
SetValue($this->GetIDForIdent("Lademodus"), 0);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
SetValue($this->GetIDForIdent("Lademodus"), 1);
|
//SetValue($this->GetIDForIdent("Lademodus"), 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.252",
|
"version": "0.253",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user