From 8d3f10277cc47f2dfb5d6be9e0d157deb91dbfec Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 4 May 2026 18:51:31 +0200 Subject: [PATCH] no message --- Bat_EV_SDL_V4/form.json | 6 +++--- Bat_EV_SDL_V4/module.php | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Bat_EV_SDL_V4/form.json b/Bat_EV_SDL_V4/form.json index 68b156b..9415ad9 100644 --- a/Bat_EV_SDL_V4/form.json +++ b/Bat_EV_SDL_V4/form.json @@ -151,9 +151,9 @@ "type": "NumberSpinner", "name": "UpdateInterval", "caption": "Update Intervall", - "suffix": " min", - "minimum": 0, - "digits": 0 + "suffix": "S", + "minimum": 1, + "digits": 20 }, { "type": "CheckBox", diff --git a/Bat_EV_SDL_V4/module.php b/Bat_EV_SDL_V4/module.php index afbb2b7..d4cc61b 100644 --- a/Bat_EV_SDL_V4/module.php +++ b/Bat_EV_SDL_V4/module.php @@ -14,7 +14,7 @@ class Bat_EV_SDL_V4 extends IPSModule $this->RegisterPropertyFloat("ReserveHoursEntladen", 0.5); // h $this->RegisterPropertyFloat("SDL_Start_Pos_Config", 50.0); // % $this->RegisterPropertyFloat("EV_Start_Pos_Config", 50.0); // % - $this->RegisterPropertyInteger("UpdateInterval", 5); // Minuten + $this->RegisterPropertyInteger("UpdateInterval", 2); // Sekunden $this->RegisterPropertyBoolean("FilterAktiv", true); // Status @@ -56,8 +56,11 @@ class Bat_EV_SDL_V4 extends IPSModule { parent::ApplyChanges(); - $intervalMin = (int)$this->ReadPropertyInteger("UpdateInterval"); - $this->SetTimerInterval("UpdateTimer", ($intervalMin > 0) ? $intervalMin * 60 * 1000 : 0); + $intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval"); + $this->SetTimerInterval( + "UpdateTimer", + ($intervalSec > 0) ? $intervalSec * 1000 : 0 + ); $this->BuildBatteryPlan(true); $this->InitVirtualAccountsIfNeeded();