From 7984c1930c043202f65ca6166306e61e7801cff9 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Wed, 5 Mar 2025 11:58:34 +0100 Subject: [PATCH] - --- Batterie/module.php | 6 +++++- library.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index 4b2a7b5..ca53cd2 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -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); diff --git a/library.json b/library.json index 1e6a048..4556480 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.234", + "version": "1.235", "build": 0, "date": 0 } \ No newline at end of file