diff --git a/Batterie/form.json b/Batterie/form.json index e0a7f31..2eb8f13 100644 --- a/Batterie/form.json +++ b/Batterie/form.json @@ -66,6 +66,11 @@ "type": "SelectVariable", "name": "Netzbezug", "caption": "Variable mit dem zu regelnden Netzbezug" + }, + { + "type": "SelectVariable", + "name": "Batterieleistung_Effektiv", + "caption": "Effektive, aktuelle Batterieleistung" } ] } diff --git a/Batterie/module.php b/Batterie/module.php index b36ff33..6713823 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -16,6 +16,7 @@ class Batterie extends IPSModule $this->RegisterPropertyInteger("MaxNachladen",0); $this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0 $this->RegisterPropertyInteger("Interval", 2); // Recheninterval + $this->RegisterPropertyInteger("Batterieleistung_Effektiv", 0); // Recheninterval // Variabeln für Kommunkation mit Manager $this->RegisterVariableFloat("Entladeleistung","Entladeleistung", "",0); @@ -180,6 +181,9 @@ public function RequestAction($Ident, $Value) // IdleCounter verarbeiten $this->ProcessIdleCounter(); + + $this->SetValue("Leistung_Delta", GetValue($this->ReadPropertyInteger("Batterieleistung_Effektiv"))-$power); + } diff --git a/HauptManager/module.php b/HauptManager/module.php index 2bb0f32..4547bb3 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -247,6 +247,7 @@ class HauptManager extends IPSModule "user" => $user["InstanceID"], "Writeback" => $user["Writeback"], "step" => $step, + "Leistung_Delta" => $user["Leistung_Delta"] ]; } } diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 5765895..344e18f 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -309,10 +309,10 @@ class Ladestation_Universal extends IPSModule if($this->ReadPropertyInteger("Ladestation")==4){ // Überprüfe, ob das JSON-Dekodieren erfolgreich war und der Schlüssel "car" existiert - SetValue( + /* SetValue( $this->GetIDForIdent("Ladeleistung_Effektiv"), $this->GetValue("Ladeleistung") - ); + ); */ diff --git a/Manager/module.php b/Manager/module.php index 25598f0..1726fa5 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -182,7 +182,6 @@ class Manager extends IPSModule // Primärschlüssel für die Priorität basierend auf dem Parameter auswählen (für sortierung in gruppen anschliessend) $priorityKey = $Is_Peak_Shaving ? "Sperre_Prio" : "PV_Prio"; - IPS_LogMessage("Filtered_Verbraucher", print_r($filteredVerbraucher)); // Schleife durch alle Prioritäten $priorities = array_unique( array_column($filteredVerbraucher, $priorityKey) diff --git a/library.json b/library.json index 6c3da15..5812650 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.204", + "version": "1.206", "build": 0, "date": 0 } \ No newline at end of file