mehr Logging

This commit is contained in:
belevo\mh
2024-12-23 11:51:07 +01:00
parent 6d200b3784
commit e98bcb05c9
2 changed files with 3 additions and 2 deletions

View File

@@ -14,8 +14,8 @@ class Batterie extends IPSModule
$this->RegisterPropertyInteger("Batterieladezustand",0);
$this->RegisterPropertyInteger("Ladestrom", 0);
$this->RegisterPropertyInteger("Entladestrom", 0);
// Variabeln für Kommunkation mit Manager
// Variabeln für Kommunkation mit Manager
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
$this->RegisterVariableString("PowerSteps", "PowerSteps");
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
@@ -80,6 +80,7 @@ class Batterie extends IPSModule
$ladestrom = $this->ReadPropertyInteger("Ladestrom");
$entladestrom = $this->ReadPropertyInteger("Entladestrom");
IPS_LogMessage("Batterie", "power: " . $power);
if ($spannung <= 0) {
IPS_LogMessage("Batterie", "Fehler: Batteriespannung ist 0 oder ungültig.");

View File

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