batterie wert nach abfrage
This commit is contained in:
@@ -154,6 +154,13 @@ public function RequestAction($Ident, $Value)
|
||||
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) {
|
||||
$dummy_array[] = 0;
|
||||
return $this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
@@ -164,13 +171,6 @@ public function RequestAction($Ident, $Value)
|
||||
$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)){
|
||||
|
||||
$this->SetValue("Hysterese", false);
|
||||
|
||||
Reference in New Issue
Block a user