aufgeräumt

This commit is contained in:
belevo\mh
2025-01-06 08:58:47 +01:00
parent c209a5c6f2
commit 6d938fabf8
2 changed files with 3 additions and 12 deletions

View File

@@ -68,12 +68,7 @@ class Batterie extends IPSModule
}
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
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
@@ -125,11 +120,7 @@ class Batterie extends IPSModule
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$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 ($batterieladezustand <= $minimumentladen) {

View File

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