From 4f9564be3d5b8039b490bd042b0240abcec75934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 7 Mar 2025 14:45:38 +0100 Subject: [PATCH] logging --- Batterie/module.php | 11 ++++++----- library.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index ee37497..244264e 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -153,6 +153,7 @@ public function RequestAction($Ident, $Value) public function GetCurrentData(bool $Peak) { + IPS_LogMessage("Batterie", "Currentdata"); $array_powersteps = $this->GeneratePowerSteps(); $aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen"); @@ -182,7 +183,7 @@ public function RequestAction($Ident, $Value) $hyst = $this->GetValue("Hysterese"); if($Peak){ - IPS_LogMessage("Manager", "Im if teil"); + IPS_LogMessage("Batterie", "Im if teil"); if($batterieladezustand>=$aufdasnachladen && $hyst==false){ @@ -202,11 +203,11 @@ public function RequestAction($Ident, $Value) } }else{ - IPS_LogMessage("Manager", "Im else teil"); + IPS_LogMessage("Batterie", "Im else teil"); if($batterieladezustand>99){ - IPS_LogMessage("Manager", "im 1"); + IPS_LogMessage("Batterie", "im 1"); $filtered_powersteps_entladen = array_filter($array_powersteps, function ($value) { return $value <= 0; @@ -216,14 +217,14 @@ public function RequestAction($Ident, $Value) }elseif($batterieladezustand>=$aufdasnachladen && $hyst==false){ $this->SetValue("PowerSteps", json_encode($array_powersteps)); - IPS_LogMessage("Manager", "im 2"); + IPS_LogMessage("Batterie", "im 2"); }else{ $dummy_array[] = $this->ReadPropertyInteger("MaxNachladen"); $this->SetValue("PowerSteps", json_encode($dummy_array)); - IPS_LogMessage("Manager", "im 3"); + IPS_LogMessage("Batterie", "im 3"); } diff --git a/library.json b/library.json index 29b1294..04a090c 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.250", + "version": "1.251", "build": 0, "date": 0 } \ No newline at end of file