no message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user