diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 4f31b28..b357372 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -741,7 +741,7 @@ class Ladestation_v2 extends IPSModule IPS_LogMessage("asdf2", "asdf2". $this->GetValue("Power")); IPS_LogMessage("asdf3", "asdf1". $this->GetValue("Power")==max(json_decode($this->GetValue("PowerSteps")))); IPS_LogMessage("asdf4", "asdf1". max(json_decode($this->GetValue("PowerSteps"))>0)); - if(((max(json_decode($this->GetValue("PowerSteps"))))==$this->GetValue("Power"))&&((max(json_decode($this->GetValue("PowerSteps")))>0))){ + if(((int)(max(json_decode($this->GetValue("PowerSteps"))))==((int)$this->GetValue("Power")))&&((max(json_decode($this->GetValue("PowerSteps")))>0))){ $this->Calc_Max_Current($this->GetValue("Is_1_ph")); }