diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index d458ea9..933d44c 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -388,7 +388,7 @@ class Ladestation_v2 extends IPSModule if (json_last_error() === JSON_ERROR_NONE && isset($easee_data["chargerOpMode"])) { - if ($easee_data["chargerOpMode"] != 1 && $easee_data["chargerOpMode"] != 6 && $easee_data["chargerOpMode"] != 7) { + if ($easee_data["chargerOpMode"] != 1 && $easee_data["chargerOpMode"] != 2 && $easee_data["chargerOpMode"] != 6 && $easee_data["chargerOpMode"] != 7) { $car_on_station = true; } else{ @@ -670,7 +670,7 @@ class Ladestation_v2 extends IPSModule // Nichts zu tun für Dummy station return; case 5: - if($this->ReadPropertyString("Username") != $data["driverIdentifier"]){ + if($this->ReadPropertyString("Username") != $this->GetValue("Letzer_User")){ return; } $url2 = "https://api.easee.com/api/chargers/".$this->ReadPropertyString("Seriennummer")."/commands/set_dynamic_charger_current";