1.045
This commit is contained in:
@@ -29,6 +29,18 @@
|
|||||||
"caption": "Minimum des Batterieladezustand",
|
"caption": "Minimum des Batterieladezustand",
|
||||||
"suffix": ""
|
"suffix": ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "SelectVariable",
|
||||||
|
"name": "Batterieladezustand",
|
||||||
|
"caption": "Batterieladezustand",
|
||||||
|
"test": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SelectVariable",
|
||||||
|
"name": "Batterieladezustand",
|
||||||
|
"caption": "Batterieladezustand",
|
||||||
|
"test": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "SelectVariable",
|
"type": "SelectVariable",
|
||||||
"name": "Batterieladezustand",
|
"name": "Batterieladezustand",
|
||||||
@@ -36,5 +48,6 @@
|
|||||||
"test": true
|
"test": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-4
@@ -12,7 +12,8 @@ class Batterie extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
||||||
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
||||||
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
||||||
|
//$this->RegisterPropertyFloat("Ladestrom",0);
|
||||||
|
//$this->RegisterPropertyFloat("Entladestrom",0);
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
$this->RegisterVariableFloat("Ladestrom", "Ladestrom", "", 0);
|
$this->RegisterVariableFloat("Ladestrom", "Ladestrom", "", 0);
|
||||||
@@ -93,10 +94,11 @@ public function RequestAction($Ident, $Value)
|
|||||||
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
|
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
|
||||||
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
|
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
|
||||||
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
|
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
|
||||||
$ladestrom = GetValue($this->GetIDForIdent("Ladestrom"));
|
//$ladestrom = GetValue($this->GetIDForIdent("Ladestrom"));
|
||||||
$entladestrom = GetValue($this->GetIDForIdent("Entladestrom"));
|
//$entladestrom = GetValue($this->GetIDForIdent("Entladestrom"));
|
||||||
|
$ladestrom = $this->ReadPropertyFloat("Ladestrom");
|
||||||
|
$entladestrom = $this->ReadPropertyFloat("Entladestrom");
|
||||||
|
|
||||||
IPS_LogMessage("Batterie", "power: " . $power);
|
|
||||||
|
|
||||||
if ($spannung <= 0) {
|
if ($spannung <= 0) {
|
||||||
IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig.");
|
IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig.");
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.044",
|
"version": "1.045",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user