no message

This commit is contained in:
belevo\mh
2026-04-30 14:43:55 +02:00
parent 43939e8a03
commit 28fb62c88c
+1 -21
View File
@@ -168,13 +168,7 @@ public function Update()
$underKWh = (float)($c["underKWh"] ?? 0.0);
$upKWh = (float)($c["upKWh"] ?? 0.0);
// Grenz-Anker nur wenn SDL selbst Richtung Grenze fährt (dein Wunsch)
if ($real_kWh > $upKWh && $pSdlSollW > 0.0) {
$sdlHitUpperBySDL = true;
}
if ($real_kWh < $underKWh && $pSdlSollW < 0.0) {
$sdlHitLowerBySDL = true;
}
// EV-Fenster (dynamisch erweitert bei SDL virt leer/voll)
$evUnderKWh = $underKWh;
@@ -368,21 +362,7 @@ public function Update()
$this->SendDebug("SDL", "Reset wegen CacheHash-Change auf Startpunkt: Esdl_kWh=" . round($Esdl_kWh, 3), 0);
}
// Physikalischer Grenz-Anker (deine Logik)
if ($sdlHitUpperBySDL || $sdlHitLowerBySDL) {
$Esdl_kWh = max(0.0, min($SDL_kWh_ges, $real_kWh_sdl_ges));
$dtH = 0.0;
$this->SetBuffer("Int_LastTs", (string)$now);
$this->SendDebug(
"SDL",
"Physikalischer Grenz-Anker: Esdl_kWh=" . round($Esdl_kWh, 3) .
" upper=" . ($sdlHitUpperBySDL ? "1" : "0") .
" lower=" . ($sdlHitLowerBySDL ? "1" : "0"),
0
);
}
// ==========================================================
// FIX #2: Integrator mit IST-Leistung statt SOLL-Leistung