div evt behoben
This commit is contained in:
@@ -12,10 +12,10 @@ class Batterie extends IPSModule
|
||||
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
||||
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
||||
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
||||
|
||||
$this->RegisterPropertyInteger("Ladestrom", 0);
|
||||
$this->RegisterPropertyInteger("Entladestrom", 0);
|
||||
// Variabeln für Kommunkation mit Manager
|
||||
$this->RegisterVariableInteger("Ladestrom", "Ladestrom", "", 0);
|
||||
$this->RegisterVariableInteger("Entladestrom", "Entladestrom", "", 0);
|
||||
|
||||
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
||||
$this->RegisterVariableString("PowerSteps", "PowerSteps");
|
||||
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
|
||||
@@ -68,14 +68,18 @@ class Batterie extends IPSModule
|
||||
}
|
||||
|
||||
public function SetAktuelle_Leistung(int $power)
|
||||
{
|
||||
{ /*
|
||||
// Batterie-spezifische Eigenschaften abrufen
|
||||
$array_powersteps = $this->GeneratePowerSteps();
|
||||
$aktuellerWert = $this->GetValue("Aktuelle_Leistung");
|
||||
$minimumentladen = $this->ReadPropertyInteger("MinimumEntladen");
|
||||
*/
|
||||
$batterieladezustand = $this->ReadPropertyInteger("Batterieladezustand"); // Als Property gelesen
|
||||
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung"); // Als Property gelesen
|
||||
$spannung = $this->ReadPropertyInteger("Batteriespannung"); // Spannung ebenfalls als Property
|
||||
$ladestrom = $this->ReadPropertyInteger("Ladestrom");
|
||||
$entladestrom = $this->ReadPropertyInteger("Entladestrom");
|
||||
|
||||
|
||||
if ($spannung <= 0) {
|
||||
IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig.");
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.219",
|
||||
"version": "0.220",
|
||||
|
||||
"build": 0,
|
||||
"date": 0
|
||||
|
||||
Reference in New Issue
Block a user