diff --git a/Boiler_2_Stufig_Mit_Fueler/form.json b/Boiler_2_Stufig_Mit_Fueler/form.json index 7b61f49..d6bd2a4 100644 --- a/Boiler_2_Stufig_Mit_Fueler/form.json +++ b/Boiler_2_Stufig_Mit_Fueler/form.json @@ -19,6 +19,12 @@ } ] }, + { + "type": "NumberSpinner", + "name": "ZeitKonstante", + "caption": "Zeit Konstante", + "suffix": "" + }, { "type": "NumberSpinner", "name": "IdleCounterMax", diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index f5a50e0..cf08493 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -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); diff --git a/library.json b/library.json index b30908b..3d8a4c1 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.267", + "version": "0.268", "build": 0, "date": 0