This commit is contained in:
belevo\mh
2025-01-06 09:00:32 +01:00
parent 6d938fabf8
commit cd2ed4b482
2 changed files with 7 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ class Batterie extends IPSModule
}
public function SetAktuelle_Leistung(int $power)
{
{
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
@@ -120,7 +120,11 @@ 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.251",
"version": "0.252",
"build": 0,
"date": 0