no message

This commit is contained in:
belevo\mh
2025-09-25 15:12:28 +02:00
parent b0ef738804
commit 25d55a81c2

View File

@@ -26,7 +26,7 @@ class Puffer extends IPSModule
$this->RegisterVariableInteger("Maximaltemperatur"," Berechnete Maximaltemperatur VT","",60);
$this->RegisterVariableInteger("Boilertemperatur", "Boilertemperatur", "", 40);
$this->RegisterVariableInteger("Aussentemperatur", "Aussentemperatur", "", 15);
$this->RegisterVariableBoolean("Hysterese", "","",false);
// Variabeln für Kommunkation mit Manager
@@ -176,13 +176,23 @@ class Puffer extends IPSModule
$boilerTemp = $this->GetValue("Boilertemperatur");
$pufferLeistung = $this->ReadPropertyInteger("PufferLeistung");
$hyst = $this->GetValue("Hysterese");
if($VT < $boilerTemp){
$this->SetValue("Hysterese", false );
}elseif($VT-5 >= $boilerTemp){
$this->SetValue("Hysterese", true);
}
if ($Peak) {
$this->SetValue( "PowerSteps", json_encode([0]) );
} else {
if ($boilerTemp < $VT) {
if ($boilerTemp < $VT && $hyst== true) {
$this->SetValue("PowerSteps", json_encode([$pufferLeistung]));
} elseif ($boilerTemp > $VT - 5 && $hyst== false) {
$this->SetValue("PowerSteps", json_encode([0]));
} else {
$this->SetValue("PowerSteps", json_encode([0]));
}