batteriezustand
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.228",
|
||||
"version": "0.229",
|
||||
|
||||
"build": 0,
|
||||
"date": 0
|
||||
|
||||
Reference in New Issue
Block a user