diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 96ef12e..4eba544 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -135,7 +135,7 @@ class Ladestation_v2 extends IPSModule public function Detect_Car(int $carType) { - if($this->GetValue("Car_detected")){ + if($this->GetValue("Car_detected")==true){ if($this->Get_Car_Status($carType)==true){ $this->SetValue("Car_detected", true); if($this->GetValue("Max_Current")<6){