diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index a551143..a33b9f5 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -666,8 +666,8 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float // GoodWe: nur powerbat_laden if (strpos($t, "goodwe") !== false) { - $setW($varPowerCharge, $chargeW); - $setW($varPowerDisch, 0.0); + $setW($varPowerCharge, (int)$chargeW); + $setW($varPowerDisch, (int)0); return; } @@ -687,8 +687,8 @@ private function WriteByVendorRegistersSingleMode(string $typ, array $cfg, float // GoodWe: Entladen nutzt trotzdem powerbat_laden (immer positiv) if (strpos($t, "goodwe") !== false) { - $setW($varPowerCharge, $dischargeW); - $setW($varPowerDisch, 0.0); + $setW($varPowerCharge, (int)$dischargeW); + $setW($varPowerDisch, (int)0); return; }