no message

This commit is contained in:
belevo\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",
"name": "UpdateInterval",
"caption": "Update Intervall",
"suffix": " min",
"minimum": 0,
"digits": 0
"suffix": "S",
"minimum": 1,
"digits": 20
},
{
"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("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();