no message

This commit is contained in:
belevo\mh
2026-05-12 10:06:58 +02:00
parent b3f6ad62e0
commit f6afc892d3
+12 -6
View File
@@ -66,10 +66,16 @@ class Bat_EV_SDL_V4 extends IPSModule
($intervalSec > 0) ? $intervalSec * 1000 : 0
);
$this->BuildBatteryPlan(true);
$this->InitVirtualAccountsIfNeeded();
$this->BuildBatteryPlan(true);
$this->Update();
// Kein automatischer Reset der virtuellen Konten bei ApplyChanges.
// Nur Initialisierung von Zeitstempel/Init-Flag, falls noch nie vorhanden.
if ($this->GetBufferSafe("Int_Init") !== "1") {
$this->SetBuffer("Int_LastTs", (string)microtime(true));
$this->SetBuffer("Int_Init", "1");
}
$this->Update();
}
public function RequestAction($Ident, $Value)
@@ -345,10 +351,10 @@ class Bat_EV_SDL_V4 extends IPSModule
private function InitVirtualAccountsIfNeeded(): void
{
if ($this->GetBufferSafe("Int_Init") === "1") {
return;
if ($this->GetBufferSafe("Int_Init") !== "1") {
$this->SetBuffer("Int_LastTs", (string)microtime(true));
$this->SetBuffer("Int_Init", "1");
}
$this->ResetVirtualAccounts();
}
public function ResetVirtualAccounts(): void