This commit is contained in:
belevo\mh
2025-03-05 11:58:34 +01:00
parent 3ce7d866f9
commit 7984c1930c
2 changed files with 6 additions and 2 deletions

View File

@@ -201,6 +201,8 @@ public function RequestAction($Ident, $Value)
$filtered_powersteps_laden = array_values($filtered_powersteps);
$this->SetValue("PowerSteps", json_encode($filtered_powersteps_laden));
IPS_LogMessage("Batterie", ": peak: Hysterese");
IPS_LogMessage("Debug", "peak: Hysterese Hysterese_Netz: " . ($inhystere_netz ? "true" : "false"));
IPS_LogMessage("Debug", "peak: Hysterese Hysterese: " . ($inhystere ? "true" : "false"));
} elseif ($inhystere_netz == true && $inhystere == false) {
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
@@ -211,6 +213,8 @@ public function RequestAction($Ident, $Value)
}
$this->SetValue("PowerSteps", json_encode($dummy_array));
IPS_LogMessage("Batterie", "Peak: netzbezug, keine hysterese");
IPS_LogMessage("Debug", "Peak: netzbezug, keine hysterese Hysterese_Netz: " . ($inhystere_netz ? "true" : "false"));
IPS_LogMessage("Debug", "Peak: netzbezug, keine hysterese Hysterese: " . ($inhystere ? "true" : "false"));
} elseif ($inhystere_netz == false && $inhystere == false) {
$this->SetValue("PowerSteps", json_encode($array_powersteps));
@@ -225,7 +229,7 @@ public function RequestAction($Ident, $Value)
} else { // Solar
if ($batterieladezustand >= 5 + $aufdasnachladen) {
$this->SetValue("Hysterese", false);
$this->SetValue("Hysterese_Netz", true);