no message
This commit is contained in:
@@ -85,6 +85,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": "AktuelleBatterieleistung",
|
||||||
|
"caption": "Variable mit der aktueller Batterieleistung"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "Label",
|
"type": "Label",
|
||||||
|
|||||||
+5
-2
@@ -15,7 +15,8 @@ class Batterie extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("Batteriemanagement", 1);
|
$this->RegisterPropertyInteger("Batteriemanagement", 1);
|
||||||
$this->RegisterPropertyInteger("Batterietyp", 1);
|
$this->RegisterPropertyInteger("Batterietyp", 1);
|
||||||
$this->RegisterPropertyInteger("MaxNachladen",0);
|
$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
|
$this->RegisterPropertyInteger("Interval", 2); // Recheninterval
|
||||||
|
|
||||||
|
|
||||||
@@ -379,6 +380,8 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
|
|
||||||
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
|
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
|
||||||
|
$bat_leistung = GetValue($this->ReadPropertyInteger("AktuelleBatterieleistung"));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (abs($netzbezug) > $maxentladeleistung) {
|
if (abs($netzbezug) > $maxentladeleistung) {
|
||||||
//$netzbezug = $maxentladeleistung * (-1);
|
//$netzbezug = $maxentladeleistung * (-1);
|
||||||
@@ -387,7 +390,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
|
|
||||||
if ($Peak && $netzbezug > 0) {
|
if ($Peak && $netzbezug > 0) {
|
||||||
$netzbezug = -min($netzbezug, $maxentladeleistung);
|
$netzbezug = -min($netzbezug, $maxentladeleistung) + $bat_leistung;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($batterieladezustand>(5+$aufdasnachladen)){
|
if($batterieladezustand>(5+$aufdasnachladen)){
|
||||||
|
|||||||
Reference in New Issue
Block a user