batterie wert nach abfrage

This commit is contained in:
2025-03-07 13:39:07 +01:00
parent 2c24e098d0
commit 835ef39022
2 changed files with 8 additions and 8 deletions

View File

@@ -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);

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.236",
"version": "1.237",
"build": 0,
"date": 0
}