1.045
This commit is contained in:
+7
-5
@@ -12,7 +12,8 @@ class Batterie extends IPSModule
|
||||
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
||||
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
||||
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
||||
|
||||
//$this->RegisterPropertyFloat("Ladestrom",0);
|
||||
//$this->RegisterPropertyFloat("Entladestrom",0);
|
||||
|
||||
// Variabeln für Kommunkation mit Manager
|
||||
$this->RegisterVariableFloat("Ladestrom", "Ladestrom", "", 0);
|
||||
@@ -93,10 +94,11 @@ public function RequestAction($Ident, $Value)
|
||||
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
|
||||
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
|
||||
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
|
||||
$ladestrom = GetValue($this->GetIDForIdent("Ladestrom"));
|
||||
$entladestrom = GetValue($this->GetIDForIdent("Entladestrom"));
|
||||
|
||||
IPS_LogMessage("Batterie", "power: " . $power);
|
||||
//$ladestrom = GetValue($this->GetIDForIdent("Ladestrom"));
|
||||
//$entladestrom = GetValue($this->GetIDForIdent("Entladestrom"));
|
||||
$ladestrom = $this->ReadPropertyFloat("Ladestrom");
|
||||
$entladestrom = $this->ReadPropertyFloat("Entladestrom");
|
||||
|
||||
|
||||
if ($spannung <= 0) {
|
||||
IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig.");
|
||||
|
||||
Reference in New Issue
Block a user