diff --git a/Verbraucher_extern/module.php b/Verbraucher_extern/module.php index c060551..81bc395 100644 --- a/Verbraucher_extern/module.php +++ b/Verbraucher_extern/module.php @@ -132,13 +132,7 @@ class Verbraucher_extern extends IPSModule $this->CheckIdle($power); $verbraucherListe = json_decode($this->ReadPropertyString("Verbraucher_Liste"), true); - $kombinationen = [];//$this->kombinationenRekursiv($verbraucherListe, $power); - - foreach ($verbraucherListe as $verbraucher) { - $writeVarID = $verbraucher['Write_Var']; - $pNenn = $verbraucher['P_Nenn']; - SetValue($writeVarID, 4); - } + $this->berechneInverseKombinationen(); $this->SetValue("Leistung_Delta", GetValue($this->ReadPropertyInteger("delta_power"))); }