no message

This commit is contained in:
dh
2025-06-17 16:50:25 +02:00
parent 4f421f258c
commit c3677a0724
+4 -4
View File
@@ -365,10 +365,10 @@ class Ladestation_v2 extends IPSModule
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
$response_easee = curl_exec($ch2); $response_easee = curl_exec($ch2);
curl_close($ch2); curl_close($ch2);
IPS_LogMessage("Easee", print_r($response_easee)); IPS_LogMessage("Easee", print_r($response_easee));
if ($response === false || $response_easee === false) { if ($response === false) {
IPS_LogMessage("Ladestation", "Fehler beim Abrufen der API-Daten"); IPS_LogMessage("Ladestation", "Fehler beim Abrufen der API-Daten");
return; return;
} }
@@ -380,9 +380,9 @@ class Ladestation_v2 extends IPSModule
return; return;
} }
if (isset($data['driverIdentifier']) && ($data['driverIdentifier']==$this->ReadPropertyString("Username"))) { if (isset($data['driverIdentifier']) && ($data['driverIdentifier']==$this->ReadPropertyString("Username"))) {
if(isset($easee_data['totalPower'])){ if(isset($easee_data["totalPower"])){
$this->SetValue("Ladeleistung_Effektiv", $easee_data['totalPower']); $this->SetValue("Ladeleistung_Effektiv", $easee_data["totalPower"]);
IPS_LogMessage("Ladestation 1", "1"); IPS_LogMessage("Ladestation 1", "1");
}else{ }else{