no message

This commit is contained in:
mh
2026-05-04 17:55:48 +02:00
parent dda7f4de9a
commit 1e82108c61
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -96,9 +96,9 @@
"type": "NumberSpinner", "type": "NumberSpinner",
"name": "UpdateIntervalMs", "name": "UpdateIntervalMs",
"caption": "Neuberechnung alle", "caption": "Neuberechnung alle",
"suffix": "ms", "suffix": "S",
"minimum": 100, "minimum": 1,
"maximum": 86400000 "maximum": 86400
}, },
{ {
"type": "CheckBox", "type": "CheckBox",
+3 -3
View File
@@ -9,7 +9,7 @@ class Bat_EV_SDL_V4 extends IPSModule
$this->RegisterPropertyString("Batteries", "[]"); $this->RegisterPropertyString("Batteries", "[]");
$this->RegisterPropertyInteger("SDL_Leistung_Laden", 0); $this->RegisterPropertyInteger("SDL_Leistung_Laden", 0);
$this->RegisterPropertyInteger("SDL_Leistung_Entladen", 0); $this->RegisterPropertyInteger("SDL_Leistung_Entladen", 0);
$this->RegisterPropertyInteger("UpdateIntervalMs", 1000); $this->RegisterPropertyInteger("UpdateIntervalMs", 2);
$this->RegisterPropertyFloat("ReserveHours", 0.5); $this->RegisterPropertyFloat("ReserveHours", 0.5);
$this->RegisterPropertyBoolean("FilterAktiv", false); $this->RegisterPropertyBoolean("FilterAktiv", false);
@@ -46,8 +46,8 @@ class Bat_EV_SDL_V4 extends IPSModule
{ {
parent::ApplyChanges(); parent::ApplyChanges();
$intervalMs = (int)$this->ReadPropertyInteger("UpdateIntervalMs"); $intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval");
$this->SetTimerInterval("UpdateTimer", ($intervalMs > 0) ? $intervalMs : 0); $this->SetTimerInterval("UpdateTimer", ($intervalSec > 0) ? $intervalSec * 1000 : 0);
$this->BuildStaticBatteryConfig(); $this->BuildStaticBatteryConfig();