Zeitkonstamte hinzugefügt

This commit is contained in:
belevo\mh
2025-01-07 13:59:09 +01:00
parent 58b21dbe3a
commit 18513f6e49
3 changed files with 10 additions and 3 deletions

View File

@@ -19,6 +19,12 @@
}
]
},
{
"type": "NumberSpinner",
"name": "ZeitKonstante",
"caption": "Zeit Konstante",
"suffix": ""
},
{
"type": "NumberSpinner",
"name": "IdleCounterMax",

View File

@@ -9,6 +9,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
// Boiler spezifische Properties
$this->RegisterPropertyInteger("BoilerLeistungTeillast", 3000);
$this->RegisterPropertyInteger("BoilerLeistungVolllast", 6000);
$this->RegisterPropertyInteger("ZeitKonstante", 120);
$this->RegisterPropertyInteger("Boilerfuehler_PT1", 0);
$this->RegisterPropertyInteger("Kontakt_Teillast", 0);
$this->RegisterPropertyInteger("Kontakt_Volllast", 0);
@@ -51,7 +52,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
public function RequestAction($Ident, $Value)
{
IPS_LogMessage("Boiler Debug", "RequestAction triggered: $Ident = $Value");
switch ($Ident) {
@@ -130,7 +131,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
}
// PT
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
$alpha = $delta_t / ($time_constant + $delta_t);
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.267",
"version": "0.268",
"build": 0,
"date": 0