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