no message

This commit is contained in:
mh
2026-05-04 18:51:31 +02:00
parent 2e69afa9f4
commit 8d3f10277c
2 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -151,9 +151,9 @@
"type": "NumberSpinner", "type": "NumberSpinner",
"name": "UpdateInterval", "name": "UpdateInterval",
"caption": "Update Intervall", "caption": "Update Intervall",
"suffix": " min", "suffix": "S",
"minimum": 0, "minimum": 1,
"digits": 0 "digits": 20
}, },
{ {
"type": "CheckBox", "type": "CheckBox",
+6 -3
View File
@@ -14,7 +14,7 @@ class Bat_EV_SDL_V4 extends IPSModule
$this->RegisterPropertyFloat("ReserveHoursEntladen", 0.5); // h $this->RegisterPropertyFloat("ReserveHoursEntladen", 0.5); // h
$this->RegisterPropertyFloat("SDL_Start_Pos_Config", 50.0); // % $this->RegisterPropertyFloat("SDL_Start_Pos_Config", 50.0); // %
$this->RegisterPropertyFloat("EV_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); $this->RegisterPropertyBoolean("FilterAktiv", true);
// Status // Status
@@ -56,8 +56,11 @@ class Bat_EV_SDL_V4 extends IPSModule
{ {
parent::ApplyChanges(); parent::ApplyChanges();
$intervalMin = (int)$this->ReadPropertyInteger("UpdateInterval"); $intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval");
$this->SetTimerInterval("UpdateTimer", ($intervalMin > 0) ? $intervalMin * 60 * 1000 : 0); $this->SetTimerInterval(
"UpdateTimer",
($intervalSec > 0) ? $intervalSec * 1000 : 0
);
$this->BuildBatteryPlan(true); $this->BuildBatteryPlan(true);
$this->InitVirtualAccountsIfNeeded(); $this->InitVirtualAccountsIfNeeded();