musste Vorzeichen wieder umkehreen, das sonst nur laden, statt entladen, in SoC kapazität reserve Möglich ist
This commit is contained in:
+2
-2
@@ -349,7 +349,7 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
if($Peak){
|
||||
|
||||
if($batterieladezustand>$aufdasnachladen && $hyst==false){
|
||||
if($batterieladezustand>$aufdasnachladen && $hyst==false){
|
||||
|
||||
$dummy_array[] = $netzbezug;
|
||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
@@ -358,7 +358,7 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
|
||||
$filtered_powersteps = array_filter($array_powersteps, function ($value) {
|
||||
return $value >= 0;
|
||||
return $value <= 0;
|
||||
});
|
||||
$filtered_powersteps_laden = array_values($filtered_powersteps);
|
||||
$this->SetValue("PowerSteps", json_encode($filtered_powersteps_laden));
|
||||
|
||||
Reference in New Issue
Block a user