no message
This commit is contained in:
@@ -21,7 +21,8 @@ class Puffer_Speicher extends IPSModule
|
||||
$this->RegisterPropertyBoolean("Puffertemperatur_glätten", false);
|
||||
$this->RegisterPropertyString("Zeitplan", "");
|
||||
$this->RegisterPropertyInteger("Interval", 5); // Recheninterval
|
||||
|
||||
$this->leistungArray = [0];
|
||||
|
||||
// Puffer spezifische Variablen
|
||||
$this->RegisterVariableInteger("Steigung","Steigung","",0);
|
||||
$this->RegisterVariableInteger("Maximaltemperatur"," Berechnete Maximaltemperatur VT","",60);
|
||||
@@ -62,8 +63,6 @@ class Puffer_Speicher extends IPSModule
|
||||
$json = $this->ReadPropertyString("LeistungsStufen");
|
||||
$leistungsStufen = json_decode($json, true);
|
||||
|
||||
// Array mit Werten aufbauen, erste Stufe = 0
|
||||
$leistungArray = [0]; // Startwert 0
|
||||
|
||||
if (is_array($leistungsStufen)) {
|
||||
foreach ($leistungsStufen as $stufe) {
|
||||
@@ -74,7 +73,7 @@ class Puffer_Speicher extends IPSModule
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sort($leistungArray, SORT_NUMERIC);
|
||||
// Optional: Debug-Ausgabe
|
||||
IPS_LogMessage("LeistungArray", json_encode($leistungArray));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user