diff --git a/MQTTBatterySDL/module.php b/MQTTBatterySDL/module.php index 8f27fa8..92f6b06 100644 --- a/MQTTBatterySDL/module.php +++ b/MQTTBatterySDL/module.php @@ -146,7 +146,7 @@ class MQTTBatterySDL extends IPSModule if ($strategy == 'activate') { - RequestAction( + SetValue( $reqActionID, $setpoint * -1 ); @@ -160,7 +160,7 @@ class MQTTBatterySDL extends IPSModule if ($strategy == 'stop') { - RequestAction($reqActionID, 0); + SetValue($reqActionID, 0); if ($this->IsValidVariable($powerProductionID)) { SetValue($powerProductionID, 0);