diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 7510078..fc94f70 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -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"); diff --git a/library.json b/library.json index 9aac48b..ca9bc22 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.224", + "version": "1.225", "build": 0, "date": 0 } \ No newline at end of file