jetzt aber

This commit is contained in:
belevo\mh
2025-02-25 15:24:26 +01:00
parent 3a4fb9a6da
commit 32986e9c7f
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -180,7 +180,7 @@ public function RequestAction($Ident, $Value)
// Hier Modul auf Wechselrichter 1 stellen
elseif ($batterieladezustand >= $aufdasnachladen) {
$netzbezug = $this->ReadPropertyInteger("Netzbezug");
$netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
$dummy_array[] = $netzbezug*(-1);
IPS_LogMessage("Batterie", "Dummy Array: " . json_encode($dummy_array));
$this->SetValue("PowerSteps", json_encode($dummy_array));
@@ -196,8 +196,9 @@ public function RequestAction($Ident, $Value)
if ($batterieladezustand <= $aufdasnachladen) {
$nachladen = $this->ReadPropertyInteger("NachLaden");
$nachladen = GetValue($this->ReadPropertyInteger("NachLaden"));
$dummy_array[] = $nachladen;
IPS_LogMessage("Batterie", ": Nachladen " .$nachladen);
$this->SetValue("PowerSteps", json_encode($dummy_array));
}elseif ($batterieladezustand = 100) {