aufgeräumt

This commit is contained in:
mh
2025-01-06 08:58:47 +01:00
parent c209a5c6f2
commit 6d938fabf8
2 changed files with 3 additions and 12 deletions
+2 -11
View File
@@ -68,12 +68,7 @@ class Batterie extends IPSModule
} }
public function SetAktuelle_Leistung(int $power) public function SetAktuelle_Leistung(int $power)
{ /* {
// Batterie-spezifische Eigenschaften abrufen
$array_powersteps = $this->GeneratePowerSteps();
$aktuellerWert = $this->GetValue("Aktuelle_Leistung");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
*/
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen $batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen $maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property $spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
@@ -125,11 +120,7 @@ class Batterie extends IPSModule
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen"); $aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen"); $minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = GetValue($this->ReadPropertyInteger("Batterieladezustand")); $batterieladezustand = GetValue($this->ReadPropertyInteger("Batterieladezustand"));
//$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
IPS_LogMessage("Batterie", "Batterieladezustand: ".$batterieladezustand);
IPS_LogMessage("Batterie", "AufdasNachladen: ".$aufdasnachladen);
IPS_LogMessage("Batterie", "MinimumEntladen:". $minimumentladen);
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.250", "version": "0.251",
"build": 0, "build": 0,
"date": 0 "date": 0