geräumt
This commit is contained in:
@@ -86,12 +86,12 @@ class Batterie extends IPSModule
|
||||
$ladestrom = ($power - $maxleistung) / $spannung;
|
||||
$this->SetValue("Ladestrom", $ladestrom);
|
||||
$this->SetValue("Entladestrom", 0);
|
||||
IPS_LogMessage("Batterie", "Ladestrom: " . $ladestrom);
|
||||
//IPS_LogMessage("Batterie", "Ladestrom: " . $ladestrom);
|
||||
} else {
|
||||
$entladestrom = $power / $spannung;
|
||||
$this->SetValue("Entladestrom", $entladestrom);
|
||||
$this->SetValue("Ladestrom", 0);
|
||||
IPS_LogMessage("Batterie", "Entladestrom: " . $entladestrom);
|
||||
//IPS_LogMessage("Batterie", "Entladestrom: " . $entladestrom);
|
||||
}
|
||||
|
||||
// Prüfe auf Änderung der Leistung im Vergleich zur letzten Einstellung
|
||||
@@ -120,11 +120,9 @@ 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);
|
||||
|
||||
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung");
|
||||
|
||||
|
||||
if ($Peak) {
|
||||
if ($batterieladezustand <= $minimumentladen) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.253",
|
||||
"version": "0.254",
|
||||
|
||||
"build": 0,
|
||||
"date": 0
|
||||
|
||||
Reference in New Issue
Block a user