no message
This commit is contained in:
@@ -206,29 +206,28 @@ public function RequestAction($Ident, $Value)
|
|||||||
|
|
||||||
}elseif (GetValue($this->ReadPropertyInteger("Batterietyp")) == 2) {//Solaredge
|
}elseif (GetValue($this->ReadPropertyInteger("Batterietyp")) == 2) {//Solaredge
|
||||||
# code...
|
# code...
|
||||||
$this->SetValue("Laden", 3);
|
|
||||||
$this->SetValue("Entladen", 4);
|
|
||||||
//-----------------------Solaredge-------------------------------------//
|
//-----------------------Solaredge-------------------------------------//
|
||||||
if($this->GetValue("Is_Peak_Shaving")==true){
|
if($this->GetValue("Is_Peak_Shaving")==true){
|
||||||
if ($power >= 0) {
|
if ($power >= 0) {
|
||||||
$this->SetValue("Ladeleistung", $power);
|
$this->SetValue("Ladeleistung", $power);
|
||||||
$this->SetValue("Entladeleistung", 0);
|
$this->SetValue("Entladeleistung", 0);
|
||||||
$this->SetValue("Laden3_Entladen4", 3);
|
$this->SetValue("Laden_Entladen", 3);
|
||||||
} else {
|
} else {
|
||||||
$this->SetValue("Entladeleistung", abs($power));
|
$this->SetValue("Entladeleistung", abs($power));
|
||||||
$this->SetValue("Ladeleistung", 0);
|
$this->SetValue("Ladeleistung", 0);
|
||||||
$this->SetValue("Laden3_Entladen4", 4);
|
$this->SetValue("Laden_Entladen", 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if ($power >= 0) {
|
if ($power >= 0) {
|
||||||
$this->SetValue("Ladeleistung", $power);
|
$this->SetValue("Ladeleistung", $power);
|
||||||
$this->SetValue("Entladeleistung", 0);
|
$this->SetValue("Entladeleistung", 0);
|
||||||
$this->SetValue("Laden3_Entladen4", 3);
|
$this->SetValue("Laden_Entladen", 3);
|
||||||
} else {
|
} else {
|
||||||
$this->SetValue("Entladeleistung", abs($power));
|
$this->SetValue("Entladeleistung", abs($power));
|
||||||
$this->SetValue("Ladeleistung", 0);
|
$this->SetValue("Ladeleistung", 0);
|
||||||
$this->SetValue("Laden3_Entladen4", 4);
|
$this->SetValue("Laden_Entladen", 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user