diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 1979681..e272a2c 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -349,7 +349,7 @@ class Ladestation_v2 extends IPSModule $ch2 = curl_init(); $url2 = "https://api.easee.com/api/chargers/".$this->ReadPropertyString("Seriennummer")."/state"; - curl_setopt_array($ch, [ + curl_setopt_array($ch2, [ CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30,