fehler behoben

This commit is contained in:
belevo\mh
2024-12-23 10:02:26 +01:00
parent 6ab9a59633
commit 670f2b11b8
2 changed files with 4 additions and 3 deletions

View File

@@ -75,6 +75,7 @@ class Batterie extends IPSModule
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand");
$maxleistung = $this->GetValue("MaxBatterieleistung");
$spannung = $this->GetValue("Batteriespannung");
// Batterie entladen oder laden basierend auf der Leistung
if ($power > $maxleistung) {
@@ -109,8 +110,8 @@ class Batterie extends IPSModule
$array_powersteps = $this->GeneratePowerSteps();
$aufdasnachladen =$this->ReadPropertyInteger("AufdasNachladen");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand");
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung");
$batterieladezustand = $this->GetValue("Batterieladezustand");
$maxleistung = $this->GetValue("MaxBatterieleistung");
if ($Peak) {
if ($batterieladezustand <= $minimumentladen) {

View File

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