batteriezustand

This commit is contained in:
belevo\mh
2024-12-24 08:08:39 +01:00
parent 50b8adedd6
commit 7f03cc84d5
2 changed files with 5 additions and 2 deletions

View File

@@ -90,10 +90,12 @@ class Batterie extends IPSModule
if ($power > $maxleistung) {
$ladestrom = ($power - $maxleistung) / $spannung;
$this->SetValue("Ladestrom", $ladestrom);
$this->SetValue("Entladestrom", 0);
IPS_LogMessage("Batterie", "Ladestrom: " . $ladestrom);
} else {
$entladestrom = $power / $spannung;
$this->SetValue("Entladestrom", $entladestrom);
$this->SetValue("Ladestrom", 0);
IPS_LogMessage("Batterie", "Entladestrom: " . $entladestrom);
}
@@ -122,7 +124,8 @@ class Batterie extends IPSModule
$array_powersteps = $this->GeneratePowerSteps();
$aufdasnachladen = $this->ReadPropertyInteger("AufdasNachladen");
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
$batteriezustand = GetValue($this->GetIDForIdent("Batteriezustand"));
//$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
IPS_LogMessage("Batterie", "Batterieladezustand: ".$batterieladezustand);
IPS_LogMessage("Batterie", "AufdasNachladen: ".$aufdasnachladen);

View File

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