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