fehler behoben

This commit is contained in:
mh
2024-12-23 10:02:26 +01:00
parent 6ab9a59633
commit 670f2b11b8
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -75,6 +75,7 @@ class Batterie extends IPSModule
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); $batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand");
$maxleistung = $this->GetValue("MaxBatterieleistung"); $maxleistung = $this->GetValue("MaxBatterieleistung");
$spannung = $this->GetValue("Batteriespannung");
// Batterie entladen oder laden basierend auf der Leistung // Batterie entladen oder laden basierend auf der Leistung
if ($power > $maxleistung) { if ($power > $maxleistung) {
@@ -109,8 +110,8 @@ class Batterie extends IPSModule
$array_powersteps = $this->GeneratePowerSteps(); $array_powersteps = $this->GeneratePowerSteps();
$aufdasnachladen =$this->ReadPropertyInteger("AufdasNachladen"); $aufdasnachladen =$this->ReadPropertyInteger("AufdasNachladen");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); $batterieladezustand = $this->GetValue("Batterieladezustand");
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); $maxleistung = $this->GetValue("MaxBatterieleistung");
if ($Peak) { if ($Peak) {
if ($batterieladezustand <= $minimumentladen) { if ($batterieladezustand <= $minimumentladen) {
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.217", "version": "0.218",
"build": 0, "build": 0,
"date": 0 "date": 0