no message

This commit is contained in:
belevo\mh
2026-01-26 07:23:43 +01:00
parent ff9fc91aae
commit d23b317093

View File

@@ -57,7 +57,7 @@ class Bat_EV_SDL extends IPSModule
public function Update()
{
// Damit dir ein Fehler nicht wieder als -32603 "durchschlägt"
try {
if (!GetValue($this->GetIDForIdent("State"))) {
@@ -166,7 +166,7 @@ class Bat_EV_SDL extends IPSModule
$real_kWh = $capKWh / 100.0 * $socPct;
// --- Deine 3 Fälle (minimal abgesichert, keine Änderung der Grundfunktion) ---
if ($underKWh < $real_kWh && $upKWh > $real_kWh) {
if ($underKWh <= $real_kWh && $upKWh >= $real_kWh) {
$SDL_SOC = 50.0;
$EV_SOC = ($capKWh > 0.0) ? (($real_kWh - $underKWh) * 100.0 / $capKWh) : 0.0;