evt Fehler korrigiert
This commit is contained in:
@@ -91,13 +91,11 @@ public function RequestAction($Ident, $Value)
|
||||
public function SetAktuelle_Leistung(int $power)
|
||||
{
|
||||
|
||||
$entladeleistung = $this->ReadPropertyFloat("Entladeleistung");
|
||||
$ladeleistung = $this->ReadPropertyFloat("Ladeleistung");
|
||||
|
||||
if ($power >= 0){
|
||||
SetValue($this->ReadPropertyInteger("Ladeleistung"), $power);
|
||||
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
|
||||
}else{
|
||||
SetValue($this->ReadPropertyInteger("Entladeleistung"), abs($power));
|
||||
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user