This commit is contained in:
belevo\mh
2024-12-11 16:47:53 +01:00
parent a98bd5607f
commit 04d67d2e0d
2 changed files with 5 additions and 5 deletions

View File

@@ -11,11 +11,11 @@ class Batterie extends IPSModule
$this->RegisterPropertyInteger("Batteriespannung", 50);
$this->RegisterPropertyInteger("AufdasNachladen",0);
$this->RegisterPropertyInteger("MinimumEntladen",0);
$this->RegisterPropertyInteger("Entladestrom",0);
$this->RegisterPropertyInteger("Ladestrom",0);
$this->RegisterPropertyInteger("Batterieladezustand",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,8 +68,8 @@ class Batterie extends IPSModule
{
// Batterie-spezifische Eigenschaften abrufen
$spannung = $this->ReadPropertyInteger("Batteriespannung");
$entladestrom = $this->ReadPropertyInteger("Entladestrom");
$ladestrom = $this->ReadPropertyInteger("Ladestrom");
$entladestrom = $this->ReadVariableInteger("Entladestrom");
$ladestrom = $this->ReadVariableInteger("Ladestrom");
$maxleistung = $this->ReadPropertyInteger("MaxBatterieleistung");
// Batterie entladen oder laden basierend auf der Leistung

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.188",
"version": "0.189",
"build": 0,
"date": 0
}