diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 8785c37..7ef87f5 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -299,11 +299,11 @@ class Ladestation_v2 extends IPSModule $Ladebereit = GetValue($this->GetIDForIdent("Ladebereit")); if (!$Ladebereit) { - $this->sendPowerToStation($this->GetValue("Is_1_ph"), 0); + $this->sendPowerToStation(0); } elseif (!$peak && !$solarladen) { // Wenn weder Peak noch Solarladen aktiv sind, setze Ladeleistung auf MaxLeistung - $this->sendPowerToStation($this->Get_Current_From_Power($this->GetValue("Is_1_ph"), $this->GetValue("Max_Current"))); + $this->sendPowerToStation($this->Get_Current_From_Power($this->GetValue("Is_1_ph"), $power)); } else { // Ansonsten setze Ladeleistung auf die aktuelle Leistungsvorgabe (Aktuelle_Leistung)