no message
This commit is contained in:
@@ -133,7 +133,7 @@ class Ansteuerung_Askoheat extends IPSModule
|
|||||||
{
|
{
|
||||||
if($power>0){
|
if($power>0){
|
||||||
|
|
||||||
RequestAction($this->ReadPropertyInteger("Variable_Leistung"), $this->ReadPropertyInteger("BoilerLeistung")/$power);
|
RequestAction($this->ReadPropertyInteger("Variable_Leistung"), round($power / round(($this->ReadPropertyInteger("BoilerLeistung")/7))));
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
@@ -163,7 +163,7 @@ class Ansteuerung_Askoheat extends IPSModule
|
|||||||
public function Calc_Seven_Steps(int $power)
|
public function Calc_Seven_Steps(int $power)
|
||||||
{
|
{
|
||||||
$steps = [];
|
$steps = [];
|
||||||
$increment = $power / 7;
|
$increment = round($power / 7);
|
||||||
|
|
||||||
for ($i = 0; $i <= 7; $i++) {
|
for ($i = 0; $i <= 7; $i++) {
|
||||||
$steps[] = $i * $increment;
|
$steps[] = $i * $increment;
|
||||||
|
|||||||
Reference in New Issue
Block a user