diff --git a/Verbraucher_extern/module.php b/Verbraucher_extern/module.php index 63dd815..751c127 100644 --- a/Verbraucher_extern/module.php +++ b/Verbraucher_extern/module.php @@ -128,6 +128,7 @@ class Verbraucher_extern extends IPSModule public function SetAktuelle_Leistung(float $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);