no message

This commit is contained in:
2025-06-17 16:50:25 +02:00
parent 4f421f258c
commit c3677a0724

View File

@@ -365,10 +365,10 @@ class Ladestation_v2 extends IPSModule
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
$response_easee = curl_exec($ch2);
curl_close($ch2);
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");
return;
}
@@ -380,9 +380,9 @@ class Ladestation_v2 extends IPSModule
return;
}
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");
}else{