From 7f26e7992a8539994455c119201e9a457f5d24ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 25 Jun 2025 15:56:38 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index db2eea5..952242b 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -574,9 +574,6 @@ class Ladestation_v2 extends IPSModule $this->Calc_Max_Current($this->GetValue("Is_1_ph")); } - - - return $powerSteps; } @@ -635,13 +632,13 @@ class Ladestation_v2 extends IPSModule CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", - CURLOPT_POSTFIELDS => "{\"amps\":". 0 .",\"minutes\":0}", + CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}", CURLOPT_HTTPHEADER => [ "Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."", "content-type: application/*+json" ], ]); - + break; default: return "Invalid station type."; } @@ -680,7 +677,7 @@ class Ladestation_v2 extends IPSModule CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", - CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":0}", + CURLOPT_POSTFIELDS => "{\"amps\":". $value .",\"minutes\":1}", CURLOPT_HTTPHEADER => [ "Authorization: Bearer ".GetValue($this->ReadPropertyInteger("Token_Easee"))."", "content-type: application/*+json"