d
This commit is contained in:
@@ -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");
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user