1.045
This commit is contained in:
@@ -29,12 +29,25 @@
|
||||
"caption": "Minimum des Batterieladezustand",
|
||||
"suffix": ""
|
||||
},
|
||||
{
|
||||
"type": "SelectVariable",
|
||||
"name": "Batterieladezustand",
|
||||
"caption": "Batterieladezustand",
|
||||
"test": true
|
||||
},
|
||||
{
|
||||
"type": "SelectVariable",
|
||||
"name": "Batterieladezustand",
|
||||
"caption": "Batterieladezustand",
|
||||
"test": true
|
||||
},
|
||||
{
|
||||
"type": "SelectVariable",
|
||||
"name": "Batterieladezustand",
|
||||
"caption": "Batterieladezustand",
|
||||
"test": true
|
||||
}
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.044",
|
||||
"version": "1.045",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user