This commit is contained in:
belevo\mh
2025-02-24 07:31:15 +01:00
parent c3fa7ed3e2
commit fc5e2c76d9
3 changed files with 21 additions and 6 deletions

View File

@@ -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
}
]
}

View File

@@ -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.");

View File

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