weiter eloggin und evt fehler behoben

This commit is contained in:
belevo\mh
2025-02-25 15:14:44 +01:00
parent c050bdc7bf
commit 3a4fb9a6da
2 changed files with 5 additions and 3 deletions

View File

@@ -180,7 +180,8 @@ public function RequestAction($Ident, $Value)
// Hier Modul auf Wechselrichter 1 stellen
elseif ($batterieladezustand >= $aufdasnachladen) {
$dummy_array[] = $this->ReadPropertyInteger("Netzbezug")*(-1);
$netzbezug = $this->ReadPropertyInteger("Netzbezug");
$dummy_array[] = $netzbezug*(-1);
IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array));
$this->SetValue("PowerSteps", json_encode($dummy_array));
@@ -195,7 +196,8 @@ public function RequestAction($Ident, $Value)
if ($batterieladezustand <= $aufdasnachladen) {
$dummy_array[] = $this->ReadPropertyInteger("NachLaden");
$nachladen = $this->ReadPropertyInteger("NachLaden");
$dummy_array[] = $nachladen;
$this->SetValue("PowerSteps", json_encode($dummy_array));
}elseif ($batterieladezustand = 100) {

View File

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