diff --git a/HauptManager/module.php b/HauptManager/module.php index 6c99461..1453195 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -12,7 +12,7 @@ class HauptManager extends IPSModule $this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0 $this->RegisterPropertyString("Verbraucher_Liste", "[]"); - $this->RegisterVariableInteger("Gesamtnetzbezug", 0); + $this->RegisterVariableInteger("Gesamtnetzbezug", "Gesamtnetzbezug", "", 0); // Timer registrieren $this->RegisterTimer("Timer_DistributeEnergy",5000,"IPS_RequestAction(" .$this->InstanceID .', "DistributeEnergy", "");'); diff --git a/Manager/module.php b/Manager/module.php index 65eae43..ec30a02 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -336,11 +336,11 @@ class Manager extends IPSModule $answerArray = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true); - foreach($answerArray["User"] as $user){} + foreach($answerArray["User"] as $user){ IPS_RequestAction($user["InstanceID"],"SetAktuelle_Leistung",$user["Set_Leistung"]); IPS_RequestAction($user["InstanceID"],"GetCurrentData", $answerArray["Is_Peak_Shaving"]); - + } diff --git a/library.json b/library.json index ca9bc22..57df96f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.225", + "version": "1.226", "build": 0, "date": 0 } \ No newline at end of file