erweitert
This commit is contained in:
@@ -29,6 +29,21 @@
|
|||||||
"caption": "Minimum des Batterieladezustand",
|
"caption": "Minimum des Batterieladezustand",
|
||||||
"suffix": ""
|
"suffix": ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type":"Select",
|
||||||
|
"name":"Batteriemanagement",
|
||||||
|
"caption":"Batteriemanagement",
|
||||||
|
"options":[
|
||||||
|
{
|
||||||
|
"caption":"Vom Wechelrichterhertseller",
|
||||||
|
"value":1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"caption":"Von der Firma Belevo",
|
||||||
|
"value":4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "SelectVariable",
|
"type": "SelectVariable",
|
||||||
"name": "Batterieladezustand",
|
"name": "Batterieladezustand",
|
||||||
|
|||||||
+21
-7
@@ -12,10 +12,13 @@ class Batterie extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
||||||
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
||||||
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
||||||
$this->RegisterPropertyFloat("Entladeleistung",0);
|
$this->RegisterPropertyInteger("Batteriemanagement", 1);
|
||||||
$this->RegisterPropertyFloat("Ladeleistung",0);
|
//$this->RegisterPropertyFloat("Entladeleistung",0);
|
||||||
|
//$this->RegisterPropertyFloat("Ladeleistung",0);
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
|
$this->RegisterVariableFloat("Entladeleistung","Entladeleistung",0);
|
||||||
|
$this->RegisterVariableFloat("Ladeleistung","Ladeleistung",0);
|
||||||
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
||||||
$this->RegisterVariableString("PowerSteps", "PowerSteps");
|
$this->RegisterVariableString("PowerSteps", "PowerSteps");
|
||||||
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
|
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
|
||||||
@@ -26,8 +29,6 @@ class Batterie extends IPSModule
|
|||||||
|
|
||||||
|
|
||||||
$this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0);
|
$this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0);
|
||||||
//$this->RegisterVariableInteger("AktuelleLadeleistung", "Aktuelle Ladeleistung", "", 0);
|
|
||||||
//$this->RegisterVariableInteger("AktuelleEntladeleistung", "Aktuelle Entladeleistung", "", 0);
|
|
||||||
// Hilfsvariabeln für Idle zustand
|
// Hilfsvariabeln für Idle zustand
|
||||||
$this->RegisterPropertyInteger("IdleCounterMax", 2);
|
$this->RegisterPropertyInteger("IdleCounterMax", 2);
|
||||||
$this->RegisterVariableInteger("IdleCounter", "IdleCounter", "", 0);
|
$this->RegisterVariableInteger("IdleCounter", "IdleCounter", "", 0);
|
||||||
@@ -91,19 +92,32 @@ public function RequestAction($Ident, $Value)
|
|||||||
public function SetAktuelle_Leistung(int $power)
|
public function SetAktuelle_Leistung(int $power)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$batterieManagement = $this->ReadPropertyInteger("Batteriemanagement");
|
||||||
|
// Wechselrichter steuert das Laden/Entladen der Batterie
|
||||||
|
if ($batterieManagement == 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if ($power >= 0){
|
if ($power >= 0){
|
||||||
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
|
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
|
||||||
SetValue($this->ReadPropertyFloat("Entladeleistung"),0);
|
SetValue($this->ReadPropertyFloat("Entladeleistung"),0);
|
||||||
}else{
|
}else{
|
||||||
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
|
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
|
||||||
SetValue($this->ReadPropertyFloat("Ladeleistung"), 0);
|
SetValue($this->ReadPropertyFloat("Ladeleistung"), 0);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
if ($power >= 0) {
|
||||||
|
SetValue($this->GetIDForIdent("Ladeleistung"), $power);
|
||||||
|
SetValue($this->GetIDForIdent("Entladeleistung"), 0);
|
||||||
|
} else {
|
||||||
|
SetValue($this->GetIDForIdent("Entladeleistung"), abs($power));
|
||||||
|
SetValue($this->GetIDForIdent("Ladeleistung"), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$entladeleistungID = $this->ReadPropertyFloat("Entladeleistung");
|
$entladeleistungID = $this->ReadPropertyFloat("Entladeleistung");
|
||||||
$ladeleistungID = $this->ReadPropertyFloat("Ladeleistung");
|
$ladeleistungID = $this->ReadPropertyFloat("Ladeleistung");
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.067",
|
"version": "1.068",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user