diff --git a/Bat_EV_SDL_V4/module.php b/Bat_EV_SDL_V4/module.php index 38b7708..949df33 100644 --- a/Bat_EV_SDL_V4/module.php +++ b/Bat_EV_SDL_V4/module.php @@ -68,13 +68,12 @@ class Bat_EV_SDL_V4 extends IPSModule $this->BuildBatteryPlan(true); - // Kein automatischer Reset der virtuellen Konten bei ApplyChanges. - // Nur Initialisierung von Zeitstempel/Init-Flag, falls noch nie vorhanden. - if ($this->GetBufferSafe("Int_Init") !== "1") { + // Kein Reset bei ApplyChanges. + // Nur Zeitstempel setzen, falls noch keiner vorhanden ist. + if ($this->GetBufferSafe("Int_LastTs") === "") { $this->SetBuffer("Int_LastTs", (string)microtime(true)); - $this->SetBuffer("Int_Init", "1"); } - + $this->Update(); }