no message
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user