diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 82a74e0..5449b70 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -145,7 +145,8 @@ class Ladestation_v2 extends IPSModule public function Get_Car_Status(int $carType) { $plug_state = false; - + $ch = curl_init(); + switch ($carType) { case 1: curl_setopt($ch, CURLOPT_URL, "http://" . $this->ReadPropertyString("IP_Adresse") . "/mqtt?payload=");