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); } } }