no message

This commit is contained in:
belevo\mh
2026-05-04 09:32:00 +02:00
parent 9e8e503241
commit 50ad7deac9
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -85,6 +85,11 @@
"type": "SelectVariable",
"name": "Netzbezug",
"caption": "Variable mit dem zu regelnden Netzbezug"
},
{
"type": "SelectVariable",
"name": "AktuelleBatterieleistung",
"caption": "Variable mit der aktueller Batterieleistung"
},
{
"type": "Label",
+5 -2
View File
@@ -15,7 +15,8 @@ class Batterie extends IPSModule
$this->RegisterPropertyInteger("Batteriemanagement", 1);
$this->RegisterPropertyInteger("Batterietyp", 1);
$this->RegisterPropertyInteger("MaxNachladen",0);
$this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0
$this->RegisterPropertyInteger("Netzbezug", 0);
$this->RegisterPropertyInteger("AktuelleBatterieleistung", 0);// Initialisierung mit 0
$this->RegisterPropertyInteger("Interval", 2); // Recheninterval
@@ -379,6 +380,8 @@ public function RequestAction($Ident, $Value)
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
$bat_leistung = GetValue($this->ReadPropertyInteger("AktuelleBatterieleistung"));
/*
if (abs($netzbezug) > $maxentladeleistung) {
//$netzbezug = $maxentladeleistung * (-1);
@@ -387,7 +390,7 @@ public function RequestAction($Ident, $Value)
if ($Peak && $netzbezug > 0) {
$netzbezug = -min($netzbezug, $maxentladeleistung);
$netzbezug = -min($netzbezug, $maxentladeleistung) + $bat_leistung;
}
if($batterieladezustand>(5+$aufdasnachladen)){