diff --git a/Ladestation_v2/form.json b/Ladestation_v2/form.json index 4faa18c..be54d2e 100644 --- a/Ladestation_v2/form.json +++ b/Ladestation_v2/form.json @@ -52,7 +52,7 @@ { "type": "NumberSpinner", "name": "Zeit_Zwischen_Zustandswechseln", - "caption": "Mindestlaufzeit des Verbrauchers bei Lastschaltung ", + "caption": "(Veraltet, auf 0 lassen, wird in nächster Version entfehrnt) Mindestlaufzeit des Verbrauchers bei Lastschaltung ", "suffix": "" }, { diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index c3f2e27..94ed23d 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -736,7 +736,7 @@ class Ladestation_v2 extends IPSModule if($counter>(90/($this->ReadPropertyInteger("Interval")))){ $this->SetValue("Pending_Counter", 0); - if(max(json_decode($this->GetValue("PowerSteps")))==$this->GetVaue("Power")){ + if((max(json_decode($this->GetValue("PowerSteps")))==$this->GetVaue("Power"))&&(max(json_decode($this->GetValue("PowerSteps"))>0))){ $this->Calc_Max_Current($this->GetValue("Is_1_ph")); }