evt fehler behoben
This commit is contained in:
+16
-3
@@ -12,8 +12,8 @@ class Batterie extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
$this->RegisterPropertyInteger("AufdasNachladen",0);
|
||||||
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
$this->RegisterPropertyInteger("MinimumEntladen",0);
|
||||||
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
$this->RegisterPropertyInteger("Batterieladezustand",0);
|
||||||
$this->RegisterPropertyFloat("Entladeleistung",0);
|
$this->ReadPropertyInteger("Entladeleistung",0);
|
||||||
$this->RegisterPropertyFloat("Ladeleistung",0);
|
$this->ReadPropertyInteger("Ladeleistung",0);
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
||||||
@@ -91,15 +91,28 @@ public function RequestAction($Ident, $Value)
|
|||||||
public function SetAktuelle_Leistung(int $power)
|
public function SetAktuelle_Leistung(int $power)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
if ($power >= 0){
|
if ($power >= 0){
|
||||||
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
|
SetValue($this->ReadPropertyFloat("Ladeleistung"), $power);
|
||||||
SetValue($this->ReadPropertyFloat("Entladeleistung"),0);
|
SetValue($this->ReadPropertyFloat("Entladeleistung"),0);
|
||||||
}else{
|
}else{
|
||||||
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
|
SetValue($this->ReadPropertyFloat("Entladeleistung"), abs($power));
|
||||||
SetValue($this->ReadPropertyFloat("Ladeleistung"), 0);
|
SetValue($this->ReadPropertyFloat("Ladeleistung"), 0);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
$ladeleistungID = $this->ReadPropertyInteger("Ladeleistung");
|
||||||
|
$entladeleistungID = $this->ReadPropertyInteger("Entladeleistung");
|
||||||
|
|
||||||
|
if ($ladeleistungID > 0 && IPS_VariableExists($ladeleistungID)) {
|
||||||
|
SetValue($ladeleistungID, floatval($power));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($entladeleistungID > 0 && IPS_VariableExists($entladeleistungID)) {
|
||||||
|
SetValue($entladeleistungID, floatval(abs($power)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$entladeleistungID = $this->ReadPropertyFloat("Entladeleistung");
|
$entladeleistungID = $this->ReadPropertyFloat("Entladeleistung");
|
||||||
$ladeleistungID = $this->ReadPropertyFloat("Ladeleistung");
|
$ladeleistungID = $this->ReadPropertyFloat("Ladeleistung");
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.062",
|
"version": "1.063",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user