From d77becd824a0c5efe1461cf6c6f984df315c379a Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Fri, 21 Nov 2025 10:12:56 +0100 Subject: [PATCH] no message --- Batterie_2/module.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Batterie_2/module.php b/Batterie_2/module.php index df2c24b..ad7385e 100644 --- a/Batterie_2/module.php +++ b/Batterie_2/module.php @@ -206,29 +206,28 @@ public function RequestAction($Ident, $Value) }elseif (GetValue($this->ReadPropertyInteger("Batterietyp")) == 2) {//Solaredge # code... - $this->SetValue("Laden", 3); - $this->SetValue("Entladen", 4); + //-----------------------Solaredge-------------------------------------// if($this->GetValue("Is_Peak_Shaving")==true){ if ($power >= 0) { $this->SetValue("Ladeleistung", $power); $this->SetValue("Entladeleistung", 0); - $this->SetValue("Laden3_Entladen4", 3); + $this->SetValue("Laden_Entladen", 3); } else { $this->SetValue("Entladeleistung", abs($power)); $this->SetValue("Ladeleistung", 0); - $this->SetValue("Laden3_Entladen4", 4); + $this->SetValue("Laden_Entladen", 4); } }else{ if ($power >= 0) { $this->SetValue("Ladeleistung", $power); $this->SetValue("Entladeleistung", 0); - $this->SetValue("Laden3_Entladen4", 3); + $this->SetValue("Laden_Entladen", 3); } else { $this->SetValue("Entladeleistung", abs($power)); $this->SetValue("Ladeleistung", 0); - $this->SetValue("Laden3_Entladen4", 4); + $this->SetValue("Laden_Entladen", 4); } } }