no message

This commit is contained in:
2025-03-19 16:16:33 +01:00
parent 62ec8e8537
commit 787f47c28e
6 changed files with 13 additions and 4 deletions

View File

@@ -66,6 +66,11 @@
"type": "SelectVariable", "type": "SelectVariable",
"name": "Netzbezug", "name": "Netzbezug",
"caption": "Variable mit dem zu regelnden Netzbezug" "caption": "Variable mit dem zu regelnden Netzbezug"
},
{
"type": "SelectVariable",
"name": "Batterieleistung_Effektiv",
"caption": "Effektive, aktuelle Batterieleistung"
} }
] ]
} }

View File

@@ -16,6 +16,7 @@ class Batterie extends IPSModule
$this->RegisterPropertyInteger("MaxNachladen",0); $this->RegisterPropertyInteger("MaxNachladen",0);
$this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0 $this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0
$this->RegisterPropertyInteger("Interval", 2); // Recheninterval $this->RegisterPropertyInteger("Interval", 2); // Recheninterval
$this->RegisterPropertyInteger("Batterieleistung_Effektiv", 0); // Recheninterval
// Variabeln für Kommunkation mit Manager // Variabeln für Kommunkation mit Manager
$this->RegisterVariableFloat("Entladeleistung","Entladeleistung", "",0); $this->RegisterVariableFloat("Entladeleistung","Entladeleistung", "",0);
@@ -180,6 +181,9 @@ public function RequestAction($Ident, $Value)
// IdleCounter verarbeiten // IdleCounter verarbeiten
$this->ProcessIdleCounter(); $this->ProcessIdleCounter();
$this->SetValue("Leistung_Delta", GetValue($this->ReadPropertyInteger("Batterieleistung_Effektiv"))-$power);
} }

View File

@@ -247,6 +247,7 @@ class HauptManager extends IPSModule
"user" => $user["InstanceID"], "user" => $user["InstanceID"],
"Writeback" => $user["Writeback"], "Writeback" => $user["Writeback"],
"step" => $step, "step" => $step,
"Leistung_Delta" => $user["Leistung_Delta"]
]; ];
} }
} }

View File

@@ -309,10 +309,10 @@ class Ladestation_Universal extends IPSModule
if($this->ReadPropertyInteger("Ladestation")==4){ if($this->ReadPropertyInteger("Ladestation")==4){
// Überprüfe, ob das JSON-Dekodieren erfolgreich war und der Schlüssel "car" existiert // Überprüfe, ob das JSON-Dekodieren erfolgreich war und der Schlüssel "car" existiert
SetValue( /* SetValue(
$this->GetIDForIdent("Ladeleistung_Effektiv"), $this->GetIDForIdent("Ladeleistung_Effektiv"),
$this->GetValue("Ladeleistung") $this->GetValue("Ladeleistung")
); ); */

View File

@@ -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) // 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"; $priorityKey = $Is_Peak_Shaving ? "Sperre_Prio" : "PV_Prio";
IPS_LogMessage("Filtered_Verbraucher", print_r($filteredVerbraucher));
// Schleife durch alle Prioritäten // Schleife durch alle Prioritäten
$priorities = array_unique( $priorities = array_unique(
array_column($filteredVerbraucher, $priorityKey) array_column($filteredVerbraucher, $priorityKey)

View File

@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "1.204", "version": "1.206",
"build": 0, "build": 0,
"date": 0 "date": 0
} }