diff --git a/Batterie/module.php b/Batterie/module.php index acdb867..e31abf2 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -21,6 +21,7 @@ class Batterie extends IPSModule $this->RegisterVariableBoolean("Idle", "Idle", "", 0); $this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio"); $this->RegisterVariableInteger("PV_Prio", "PV_Prio"); + $this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0); // Hilfsvariabeln für Idle zustand $this->RegisterPropertyInteger("IdleCounterMax", 2); @@ -69,10 +70,11 @@ class Batterie extends IPSModule public function SetAktuelle_Leistung(int $power) { // Batterie-spezifische Eigenschaften abrufen - $spannung = $this->ReadPropertyInteger("Batteriespannung"); - $entladestrom = $this->ReadVariableInteger("Entladestrom"); - $ladestrom = $this->ReadVariableInteger("Ladestrom"); - $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); + $array_powersteps = $this->GeneratePowerSteps(); + $aktuellerWert = $this->GetValue("Aktuelle_Leistung"); + $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); + $batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); + $maxleistung = $this->GetValue("MaxBatterieleistung"); // Batterie entladen oder laden basierend auf der Leistung if ($power > $maxleistung) { diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index 7760b86..6b1ed24 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -97,6 +97,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule $LegioCounter = $this->GetValue("LegioCounter"); $boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur")); + //Platzhalter PT1 $minTemp = $this->GetValue("Mindesttemperatur"); $maxTemp = $this->GetValue("Maximaltemperatur"); $LegioTemp = $this->GetValue("Legionellentemperatur"); diff --git a/library.json b/library.json index 181df40..13539cf 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.216", + "version": "0.217", "build": 0, "date": 0