batterie wert nach abfrage
This commit is contained in:
@@ -154,6 +154,13 @@ public function RequestAction($Ident, $Value)
|
|||||||
public function GetCurrentData(bool $Peak)
|
public function GetCurrentData(bool $Peak)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$array_powersteps = $this->GeneratePowerSteps();
|
||||||
|
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
|
||||||
|
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
|
||||||
|
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung");
|
||||||
|
$dummy_array = [];
|
||||||
|
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand");
|
||||||
|
|
||||||
if ($this->ReadPropertyInteger("Batteriemanagement") == 1) {
|
if ($this->ReadPropertyInteger("Batteriemanagement") == 1) {
|
||||||
$dummy_array[] = 0;
|
$dummy_array[] = 0;
|
||||||
return $this->SetValue("PowerSteps", json_encode($dummy_array));
|
return $this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||||
@@ -164,13 +171,6 @@ public function RequestAction($Ident, $Value)
|
|||||||
$netzbezug = $maxleistung * (-1);
|
$netzbezug = $maxleistung * (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$array_powersteps = $this->GeneratePowerSteps();
|
|
||||||
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
|
|
||||||
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
|
|
||||||
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung");
|
|
||||||
$dummy_array = [];
|
|
||||||
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand");
|
|
||||||
|
|
||||||
if($batterieladezustand>(5+$aufdasnachladen)){
|
if($batterieladezustand>(5+$aufdasnachladen)){
|
||||||
|
|
||||||
$this->SetValue("Hysterese", false);
|
$this->SetValue("Hysterese", false);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.236",
|
"version": "1.237",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user