no message

This commit is contained in:
belevo\mh
2025-11-21 10:12:56 +01:00
parent 0d58d224a6
commit d77becd824

View File

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