diff --git a/Verbraucher_extern/module.php b/Verbraucher_extern/module.php index 751c127..718597f 100644 --- a/Verbraucher_extern/module.php +++ b/Verbraucher_extern/module.php @@ -128,9 +128,10 @@ class Verbraucher_extern extends IPSModule public function SetAktuelle_Leistung(float $power) { + $this->CheckIdle($power); $this->SetValue("Aktuelle_Leistung", $power); $this->SetValue("Bezogene_Energie", ($this->GetValue("Bezogene_Energie") + ($this->GetValue("Aktuelle_Leistung")*($this->ReadPropertyInteger("Interval")/3600)))); - $this->CheckIdle($power); + $verbraucherListe = json_decode($this->ReadPropertyString("Verbraucher_Liste"), true); $this->berechneInverseKombinationen();