diff --git a/MQTTBatterySDL/module.php b/MQTTBatterySDL/module.php index 26f188a..8f27fa8 100644 --- a/MQTTBatterySDL/module.php +++ b/MQTTBatterySDL/module.php @@ -175,7 +175,7 @@ class MQTTBatterySDL extends IPSModule if ((int)$soc == $targetSoC) { - RequestAction($reqActionID, 0); + SetValue($reqActionID, 0); return; } @@ -186,7 +186,7 @@ class MQTTBatterySDL extends IPSModule if ($soc < $targetSoC) { - RequestAction( + SetValue( $reqActionID, abs($chargePower) ); @@ -200,7 +200,7 @@ class MQTTBatterySDL extends IPSModule if ($soc > $targetSoC) { - RequestAction( + SetValue( $reqActionID, abs($dischargePower) * -1 );