diff --git a/Boiler_2_Stufig_Landwirtschaft/module.php b/Boiler_2_Stufig_Landwirtschaft/module.php index afbcd0e..42c59bd 100644 --- a/Boiler_2_Stufig_Landwirtschaft/module.php +++ b/Boiler_2_Stufig_Landwirtschaft/module.php @@ -115,7 +115,7 @@ class Boiler_2_Stufig_Landwirtschaft extends IPSModule public function canBoilerReachTemperature($boilervolumen, $boilerTemper, $nextTemp, $remainingTime, $vollleistung) { $tempDiff = $nextTemp - $boilerTemper; - $requiredHeat = calculateRequiredHeat($boilervolumen, $tempDiff); + $requiredHeat = $this->calculateRequiredHeat($boilervolumen, $tempDiff); $availableHeat = $vollleistung * $remainingTime * 3600; // Leistung in Watt * Zeit in Sekunden return $availableHeat >= $requiredHeat; } @@ -208,12 +208,12 @@ class Boiler_2_Stufig_Landwirtschaft extends IPSModule $vollLeistung = $this->ReadPropertyInteger("BoilerLeistungVolllast"); - $nextEntry = getNextTimeAndTemperature($this->ReadPropertyInteger("Zeitplan")); + $nextEntry = $this->getNextTimeAndTemperature($this->ReadPropertyInteger("Zeitplan")); if ($nextEntry !== null) { - $remainingTime = calculateRemainingTime($nextEntry['Uhrzeit']); + $remainingTime = $this->calculateRemainingTime($nextEntry['Uhrzeit']); $nextTemp = $nextEntry['Solltemperatur']; - if (!canBoilerReachTemperature($this->ReadPropertyInteger("Boilervolumen"), $boilerTemp, $nextTemp, $remainingTime, $vollLeistung)) { + if (!$this->canBoilerReachTemperature($this->ReadPropertyInteger("Boilervolumen"), $boilerTemp, $nextTemp, $remainingTime, $vollLeistung)) { $minTemp = $nextTemp; } } diff --git a/library.json b/library.json index d0ccf91..6b746d3 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.030", + "version": "1.031", "build": 0, "date": 0 } \ No newline at end of file