This commit is contained in:
belevo\mh
2025-03-05 10:54:39 +01:00
parent 3a9da82421
commit 85ada5c468
2 changed files with 10 additions and 8 deletions

View File

@@ -230,6 +230,13 @@ public function RequestAction($Ident, $Value)
$this->SetValue("Hysterese_Netz", true); $this->SetValue("Hysterese_Netz", true);
} }
if ($batterieladezustand >= 100) {
$filtered_powersteps_entladen = array_filter($array_powersteps, function ($value) {
return $value < 0;
});
$this->SetValue("PowerSteps", json_encode($filtered_powersteps_entladen));
}
if ($batterieladezustand < $aufdasnachladen) { if ($batterieladezustand < $aufdasnachladen) {
$this->SetValue("Hysterese", true); $this->SetValue("Hysterese", true);
$this->SetValue("Hysterese_Netz", false); $this->SetValue("Hysterese_Netz", false);
@@ -251,11 +258,6 @@ public function RequestAction($Ident, $Value)
IPS_LogMessage("Batterie", ": solar: Keine Hysterese"); IPS_LogMessage("Batterie", ": solar: Keine Hysterese");
} }
} elseif ($batterieladezustand >= 100) {
$filtered_powersteps_entladen = array_filter($array_powersteps, function ($value) {
return $value < 0;
});
$this->SetValue("PowerSteps", json_encode($filtered_powersteps_entladen));
} else { } else {
$dummy_array[] = 0; $dummy_array[] = 0;
$this->SetValue("PowerSteps", json_encode($dummy_array)); $this->SetValue("PowerSteps", json_encode($dummy_array));

View File

@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "1.231", "version": "1.232",
"build": 0, "build": 0,
"date": 0 "date": 0
} }