ka
This commit is contained in:
+2
-2
@@ -127,11 +127,11 @@ class Batterie extends IPSModule
|
||||
|
||||
} else { // Solar
|
||||
|
||||
$filtered_powersteps = array_filter($array_powersteps, function ($value) use ($maxleistung) {
|
||||
$filtered_powersteps_solar = array_filter($array_powersteps, function ($value) use ($maxleistung) {
|
||||
return $value > $maxleistung; // Hochpass filtern
|
||||
});
|
||||
|
||||
$this->SetValue("PowerSteps", json_encode($filtered_powersteps));
|
||||
$this->SetValue("PowerSteps", json_encode($filtered_powersteps_solar));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user