From aa116282e79201c5791655da3b2c6de94c8a6744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Mon, 11 Nov 2024 13:21:04 +0100 Subject: [PATCH] =?UTF-8?q?server=5Fcom=20zeit=20ge=C3=A4ndert,=20mehr=20l?= =?UTF-8?q?ogging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Belevo_Server_Kommunikation/module.php | 2 +- WP_Steuerung/module.php | 6 +++++- library.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index f912697..6f94b0e 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -37,7 +37,7 @@ class Belevo_Server_Kommunikation extends IPSModule if ($InfluxJaNein) { // Timer auf 5 Minuten setzen - $this->SetTimerInterval("Timer_Influx", 300000); // Alle 5 Minuten -> 5*60*1000=300000 + $this->SetTimerInterval("Timer_Influx", 5000); // Alle 5 Minuten -> 5*60*1000=300000 IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja"); diff --git a/WP_Steuerung/module.php b/WP_Steuerung/module.php index 50ff9d3..995a07e 100644 --- a/WP_Steuerung/module.php +++ b/WP_Steuerung/module.php @@ -66,7 +66,7 @@ class WP_Steuerung extends IPSModule { // Methode zum Setzen des aktuellen Stromverbrauchs public function SetCurrentPower(float $power) { - $sperrzei_abs = 60*60*(GetValue($this->ReadPropertyInteger("Aussentemperatur"))+10)/25*60; + $sperrzei_abs = 60*60*(GetValue($this->ReadPropertyInteger("Aussentemperatur"))+10)/25*6; if($sperrzei_abs>6*60*60){ $sperrzei_abs = 6*60*60; @@ -132,10 +132,14 @@ class WP_Steuerung extends IPSModule { elseif($LastPeak == false && $power == 0){ $this->SetValue("Zustand_WP", 1); $this->SetValue("CurrentPower", 0); + IPS_LogMessage("here", $aktuellezeit); + if($its_lock_time){ $this->SetValue("Zustand_WP", 2); $this->SetValue("CurrentPower", 0); + IPS_LogMessage("herrre", $aktuellezeit); + } diff --git a/library.json b/library.json index 5bc1c8f..11ea9dc 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.118", + "version": "0.119", "build": 0, "date": 0 } \ No newline at end of file