d
This commit is contained in:
@@ -302,7 +302,7 @@ class Ladestation_Universal extends IPSModule
|
||||
SetValue($this->GetIDForIdent("Lademodus"), 0);
|
||||
}
|
||||
}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("pow", $pow);
|
||||
|
||||
$timeout = $this->ReadPropertyInteger("Interval")*$this->ReadPropertyInteger("IdleCounterMax")*2;
|
||||
if(($akt<(0.8*$pow)) && ($pow>0)){
|
||||
IPS_LogMessage("Lades", "Hier2");
|
||||
|
||||
$dummy = $this->GetValue("Power_Count")+1;
|
||||
$this->SetValue("Power_Count", $dummy);
|
||||
|
||||
}elseif($this->GetValue("Power_Count")<=8) {
|
||||
}elseif($this->GetValue("Power_Count")<=$timeout) {
|
||||
IPS_LogMessage("Lades", "Hier3");
|
||||
|
||||
$this->SetValue("Power_Count", 0);
|
||||
@@ -343,7 +344,8 @@ class Ladestation_Universal extends IPSModule
|
||||
IPS_LogMessage("Lades", "Hier4");
|
||||
|
||||
|
||||
if($this->GetValue("Power_Count")>8){
|
||||
if($this->GetValue("Power_Count")>$timeout){
|
||||
|
||||
$maxLeistung = 1.05 * $this->GetValue("Ladeleistung_Effektiv");
|
||||
IPS_LogMessage("Lades", "Hier5");
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.224",
|
||||
"version": "1.225",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user