no message
This commit is contained in:
@@ -593,11 +593,25 @@ class Bat_EV_SDL_V4 extends IPSModule
|
||||
$globalSDLpct = ($sdlTotal > 0.0) ? max(0.0, min(100.0, $virtSDL / $sdlTotal * 100.0)) : 0.0;
|
||||
$globalEVpct = ($evTotal > 0.0) ? max(0.0, min(100.0, $virtEV / $evTotal * 100.0)) : 0.0;
|
||||
|
||||
/*
|
||||
foreach ($batteries as &$bat) {
|
||||
// Mit globalem virtuellem SoC sortieren. Bei Bedarf später pro Batterie virtualisieren.
|
||||
$bat["SDL_SOC"] = $globalSDLpct;
|
||||
$bat["EV_SOC"] = $globalEVpct;
|
||||
}
|
||||
unset($bat);*/
|
||||
|
||||
//SoC nach priosierung
|
||||
foreach ($batteries as &$bat) {
|
||||
|
||||
// Reale Batterie-SoC als Sortierwert verwenden.
|
||||
// Laden: Batterie mit tieferem SoC zuerst.
|
||||
// Entladen: Batterie mit höherem SoC zuerst.
|
||||
$realSocPct = (float)($bat["real_SOC_pct"] ?? 0.0);
|
||||
|
||||
$bat["SDL_SOC"] = $realSocPct;
|
||||
$bat["EV_SOC"] = $realSocPct;
|
||||
}
|
||||
unset($bat);
|
||||
|
||||
$distributePower = function (float $targetPower, string $mode) use ($batteries): array {
|
||||
|
||||
Reference in New Issue
Block a user