no message

This commit is contained in:
belevo\mh
2026-05-05 14:54:15 +02:00
parent dff98c2ad8
commit d4edb78d37
+5
View File
@@ -45,6 +45,8 @@ class Bat_EV_SDL_V4 extends IPSModule
$this->RegisterVariableFloat("SDL_Start_Pos", "SDL Start SoC (%)", "", 35);
$this->RegisterVariableFloat("EV_Start_Pos", "EV Start SoC (%)", "", 36);
$this->RegisterVariableBoolean("Virtual_Reset", "Virtuelle Konten Reset", "~Switch", 37);
$this->RegisterVariableFloat("Aktuelle_Leistung_Batterien", "Aktuelle Leistung Batterien", "", 38);
$this->EnableAction("Virtual_Reset");
// Debug
@@ -141,6 +143,9 @@ class Bat_EV_SDL_V4 extends IPSModule
$calcRounded = $this->RoundArray($calc, 3);
$this->SetIdentValue("CalcJSON", json_encode($calcRounded, JSON_PRETTY_PRINT));
$totalBat = $this->GetTotalBatteryPowerIstW();
$this->SetIdentValue("Aktuelle_Leistung_Batterien", round($totalBat * -1, 0));
} catch (Throwable $e) {
$this->SendDebug("Update ERROR", $e->getMessage() . " @ " . $e->getFile() . ":" . $e->getLine(), 0);
$this->WriteAllZero("Exception: " . $e->getMessage());