This commit is contained in:
2025-03-21 16:00:51 +01:00
parent e439cba34d
commit 07fff1cbb3
2 changed files with 6 additions and 4 deletions

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);
} }
} }
@@ -328,13 +328,14 @@ class Ladestation_Universal extends IPSModule
IPS_LogMessage("akt", $akt); IPS_LogMessage("akt", $akt);
IPS_LogMessage("pow", $pow); IPS_LogMessage("pow", $pow);
$timeout = $this->ReadPropertyInteger("Interval")*$this->ReadPropertyInteger("IdleCounterMax")*2;
if(($akt<(0.8*$pow)) && ($pow>0)){ if(($akt<(0.8*$pow)) && ($pow>0)){
IPS_LogMessage("Lades", "Hier2"); IPS_LogMessage("Lades", "Hier2");
$dummy = $this->GetValue("Power_Count")+1; $dummy = $this->GetValue("Power_Count")+1;
$this->SetValue("Power_Count", $dummy); $this->SetValue("Power_Count", $dummy);
}elseif($this->GetValue("Power_Count")<=8) { }elseif($this->GetValue("Power_Count")<=$timeout) {
IPS_LogMessage("Lades", "Hier3"); IPS_LogMessage("Lades", "Hier3");
$this->SetValue("Power_Count", 0); $this->SetValue("Power_Count", 0);
@@ -343,7 +344,8 @@ class Ladestation_Universal extends IPSModule
IPS_LogMessage("Lades", "Hier4"); IPS_LogMessage("Lades", "Hier4");
if($this->GetValue("Power_Count")>8){ if($this->GetValue("Power_Count")>$timeout){
$maxLeistung = 1.05 * $this->GetValue("Ladeleistung_Effektiv"); $maxLeistung = 1.05 * $this->GetValue("Ladeleistung_Effektiv");
IPS_LogMessage("Lades", "Hier5"); IPS_LogMessage("Lades", "Hier5");

View File

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