überarbeteet

This commit is contained in:
dh
2025-03-21 14:40:28 +01:00
parent 6af06cfc49
commit b7494ad2d1
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -302,7 +302,7 @@ class Ladestation_Universal extends IPSModule
SetValue($this->GetIDForIdent("Lademodus"), 0); SetValue($this->GetIDForIdent("Lademodus"), 0);
} }
}else{ }else{
//SetValue($this->GetIDForIdent("Lademodus"), 1); SetValue($this->GetIDForIdent("Lademodus"), 1);
} }
} }
@@ -321,18 +321,18 @@ class Ladestation_Universal extends IPSModule
$this->SetValue("Peak", $Peak); $this->SetValue("Peak", $Peak);
if($this->GetValue("Aktuelle_Leistung")<(0.8*$this->GetValue("Power")) && $this->GetValue("Power")>0){ if(($this->GetValue("Aktuelle_Leistung")<(0.8*$this->GetValue("Power"))) && $this->GetValue("Power")>0){
$this->SetValue("Power_Count", $this->GetValue("Power_Count")+1); $this->SetValue("Power_Count", $this->GetValue("Power_Count")+1);
}elseif($this->GetValue("Power_Count")<=4) { }elseif($this->GetValue("Power_Count")<=8) {
$this->SetValue("Power_Count", 0); $this->SetValue("Power_Count", 0);
} }
if($this->GetValue("Power_Count")>4){ if($this->GetValue("Power_Count")>8){
$maxLeistung = 1.05 * $this->GetValue("Aktuelle_Leistung"); $maxLeistung = 1.05 * $this->GetValue("Aktuelle_Leistung");
} }
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "1.216", "version": "1.217",
"build": 0, "build": 0,
"date": 0 "date": 0
} }