no message

This commit is contained in:
belevo\mh
2025-11-21 10:27:23 +01:00
parent a86b71ef37
commit 3ae82e92e6

View File

@@ -176,33 +176,33 @@ public function RequestAction($Ident, $Value)
$batterietyp = GetValue($this->ReadPropertyInteger("Batterietyp"));
$batterietyp = $this->ReadPropertyInteger("Batterietyp");
if ($batterietyp == 1) {//Goodwe
//-----------------------Gooodwee-------------------------------------//
if($this->GetValue("Is_Peak_Shaving")==true){
if ($power >= 0) {
$this->SetValue("Goodwe_EntLadeleistung", $abs($power));
$this->SetValue("Goodwe_EntLadeleistung", abs($power));
$this->SetValue("Laden_Entladen", 11);
} else {
$this->SetValue("Goodwe_EntLadeleistung", $abs($power));
$this->SetValue("Goodwe_EntLadeleistung", abs($power));
$this->SetValue("Laden_Entladen", 12);
}
}else{
if ($power >= 0) {
$this->SetValue("Goodwe_EntLadeleistung", $abs($power));
$this->SetValue("Goodwe_EntLadeleistung", abs($power));
$this->SetValue("Laden_Entladen", 11);
} else {
$this->SetValue("Goodwe_EntLadeleistung", $abs($power));
$this->SetValue("Goodwe_EntLadeleistung", abs($power));
$this->SetValue("Laden_Entladen", 12);
}
}
}elseif (GetValue($this->ReadPropertyInteger("Batterietyp")) == 2) {//Solaredge
}elseif ($batterietyp == 2) {//Solaredge
//-----------------------Solaredge-------------------------------------//
if($this->GetValue("Is_Peak_Shaving")==true){