loggin entfernt
This commit is contained in:
@@ -97,37 +97,27 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
$LegioCounter = $this->GetValue("LegioCounter");
|
$LegioCounter = $this->GetValue("LegioCounter");
|
||||||
|
|
||||||
|
|
||||||
//$boilerPT1 = GetValue($this->ReadPropertyInteger("Boilerfuehler_PT1"));
|
|
||||||
//$boilerTemp = $this->GetValue("Boilertemperatur");
|
|
||||||
// Debugging: Property prüfen
|
|
||||||
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
|
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
|
||||||
IPS_LogMessage("Boiler_2_Stufig_Mit_Fueler", "Boilerfuehler_PT1 ID: $boilerFuehlerPT1ID");
|
|
||||||
|
|
||||||
// Debugging: Existenz der Variable prüfen
|
|
||||||
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
|
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
|
||||||
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
||||||
IPS_LogMessage("Boiler_2_Stufig_Mit_Fueler", "Boilerfuehler_PT1 Value: $boilerPT1");
|
|
||||||
} else {
|
} else {
|
||||||
IPS_LogMessage("Boiler_2_Stufig_Mit_Fueler", "Boilerfuehler_PT1 existiert nicht!");
|
|
||||||
$boilerPT1 = 0.0; // Standardwert
|
$boilerPT1 = 0.0; // Standardwert
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debugging: Boilertemperatur lesen und debuggen
|
|
||||||
$boilerTempID = $this->GetIDForIdent("Boilertemperatur");
|
$boilerTempID = $this->GetIDForIdent("Boilertemperatur");
|
||||||
if (IPS_VariableExists($boilerTempID)) {
|
if (IPS_VariableExists($boilerTempID)) {
|
||||||
$boilerTemp = $this->GetValue("Boilertemperatur");
|
$boilerTemp = $this->GetValue("Boilertemperatur");
|
||||||
IPS_LogMessage("Boiler_2_Stufig_Mit_Fueler", "Boilertemperatur: $boilerTemp");
|
|
||||||
} else {
|
} else {
|
||||||
IPS_LogMessage("Boiler_2_Stufig_Mit_Fueler", "Boilertemperatur Variable existiert nicht!");
|
|
||||||
$boilerTemp = 0.0; // Standardwert
|
$boilerTemp = 0.0; // Standardwert
|
||||||
}
|
}
|
||||||
|
|
||||||
// PT
|
// PT
|
||||||
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
$time_constant = 120; // Zeitkonstante in Sekunden (1 Minute)
|
||||||
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
||||||
$alpha = $delta_t / ($time_constant + $delta_t);
|
$alpha = $delta_t / ($time_constant + $delta_t);
|
||||||
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
|
$newBoilerTemp = $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp);
|
||||||
$this->SetValue("Boilertemperatur", $newBoilerTemp);
|
$this->SetValue("Boilertemperatur", $newBoilerTemp);
|
||||||
//$this->SetValue("Boilertemperatur", $boilerTemp + $alpha * ($boilerPT1 - $boilerTemp ));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.249",
|
"version": "0.250",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user