no message
This commit is contained in:
+4
-14
@@ -28,28 +28,18 @@
|
|||||||
"caption": "Maximum Nachladen",
|
"caption": "Maximum Nachladen",
|
||||||
"suffix": ""
|
"suffix": ""
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "Label",
|
|
||||||
"caption": "Bei Deye wird vorerst der Ladezustand in V angegeben."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "NumberSpinner",
|
"type": "NumberSpinner",
|
||||||
"name": "AufdasNachladen",
|
"name": "AufdasNachladen",
|
||||||
"caption": "Auf so viel Spannung nachladen",
|
"caption": "Auf so viel % nachladen",
|
||||||
"suffix": "V",
|
"suffix": ""
|
||||||
"minimum": 49,
|
|
||||||
"maximum": 56,
|
|
||||||
"step": 0.1
|
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumberSpinner",
|
"type": "NumberSpinner",
|
||||||
"name": "MinimumEntladen",
|
"name": "MinimumEntladen",
|
||||||
"caption": "Minimumspannung des Batterieladezustand",
|
"caption": "Minimal % des Batterieladezustand",
|
||||||
"suffix": "V",
|
"suffix": ""
|
||||||
"minimum": 49,
|
|
||||||
"maximum": 56,
|
|
||||||
"step": 0.1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"Select",
|
"type":"Select",
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ class Batterie_Deye extends IPSModule
|
|||||||
|
|
||||||
// Batterie spezifische Eigenschaften
|
// Batterie spezifische Eigenschaften
|
||||||
$this->RegisterPropertyInteger("MaxBatterieleistung", 0);
|
$this->RegisterPropertyInteger("MaxBatterieleistung", 0);
|
||||||
|
// Batteriespannug ist jetzt in % nicht mehr in V
|
||||||
$this->RegisterPropertyInteger("Batteriespannung", 50);
|
$this->RegisterPropertyInteger("Batteriespannung", 50);
|
||||||
$this->RegisterPropertyFloat("AufdasNachladen",0);
|
$this->RegisterPropertyFloat("AufdasNachladen",0);
|
||||||
$this->RegisterPropertyFloat("MinimumEntladen",0);
|
$this->RegisterPropertyFloat("MinimumEntladen",0);
|
||||||
@@ -153,7 +154,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
$this->SetValue("Ladestrom", $lade_strom);
|
$this->SetValue("Ladestrom", $lade_strom);
|
||||||
$this->SetValue("Entladestrom", 0);
|
$this->SetValue("Entladestrom", 0);
|
||||||
$this->SetValue("Batteriespannung_laden_entladen", 56);
|
$this->SetValue("Batteriespannung_laden_entladen", 100);
|
||||||
|
|
||||||
} elseif ($y > 0) {
|
} elseif ($y > 0) {
|
||||||
|
|
||||||
@@ -172,7 +173,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
$this->SetValue("Entladestrom", $entlade_strom);
|
$this->SetValue("Entladestrom", $entlade_strom);
|
||||||
$this->SetValue("Ladestrom", 0);
|
$this->SetValue("Ladestrom", 0);
|
||||||
$this->SetValue("Batteriespannung_laden_entladen", 49);
|
$this->SetValue("Batteriespannung_laden_entladen", 5);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -234,7 +235,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
//$a = 2.54 * pow($V, 2) - 252 * $V + 6255.4;
|
//$a = 2.54 * pow($V, 2) - 252 * $V + 6255.4;
|
||||||
$ladestrom_1 = $this->GetValue("Ladestrom");
|
$ladestrom_1 = $this->GetValue("Ladestrom");
|
||||||
$entadestrom_1 = $this->GetValue("Entladedestrom");
|
$entadestrom_1 = $this->GetValue("Entladedestrom");
|
||||||
|
/*
|
||||||
if ($ladestrom_1 > 0 ) {
|
if ($ladestrom_1 > 0 ) {
|
||||||
$V = GetValue($this->ReadPropertyInteger("Batteriespannung")) - 1;
|
$V = GetValue($this->ReadPropertyInteger("Batteriespannung")) - 1;
|
||||||
}elseif ($entadestrom_1 > 0) {
|
}elseif ($entadestrom_1 > 0) {
|
||||||
@@ -243,9 +244,9 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
$V = GetValue($this->ReadPropertyInteger("Batteriespannung"));
|
$V = GetValue($this->ReadPropertyInteger("Batteriespannung"));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
IPS_LogMessage("Batterie", "Currentdata");
|
IPS_LogMessage("Batterie", "Currentdata");
|
||||||
|
$V = GetValue($this->ReadPropertyInteger("Batteriespannung"));
|
||||||
$array_powersteps = $this->GeneratePowerSteps($this->GetValue("Aktuelle_Leistung"));
|
$array_powersteps = $this->GeneratePowerSteps($this->GetValue("Aktuelle_Leistung"));
|
||||||
$aufdasnachladen = $this->ReadPropertyFloat("AufdasNachladen");
|
$aufdasnachladen = $this->ReadPropertyFloat("AufdasNachladen");
|
||||||
$minimumentladen = $this->ReadPropertyFloat("MinimumEntladen");
|
$minimumentladen = $this->ReadPropertyFloat("MinimumEntladen");
|
||||||
@@ -268,7 +269,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
$netzbezug = $maxleistung * (-1);
|
$netzbezug = $maxleistung * (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($batterieladezustand>(1.5+$aufdasnachladen)){
|
if($batterieladezustand>(5+$aufdasnachladen)){
|
||||||
|
|
||||||
$this->SetValue("Hysterese", false);
|
$this->SetValue("Hysterese", false);
|
||||||
|
|
||||||
@@ -312,7 +313,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
IPS_LogMessage("Batterie", "Im else teil");
|
IPS_LogMessage("Batterie", "Im else teil");
|
||||||
|
|
||||||
|
|
||||||
if($batterieladezustand>55.9){
|
if($batterieladezustand>99.9){
|
||||||
IPS_LogMessage("Batterie", "im 1");
|
IPS_LogMessage("Batterie", "im 1");
|
||||||
|
|
||||||
$filtered_powersteps = array_filter($array_powersteps, function ($value) {
|
$filtered_powersteps = array_filter($array_powersteps, function ($value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user