Currentpower angepasst
This commit is contained in:
@@ -105,21 +105,33 @@ class WP_Steuerung extends IPSModule {
|
||||
{
|
||||
if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) {
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
|
||||
}
|
||||
} elseif($LastPeak && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){
|
||||
$this->SetValue("Zustand_WP", 3);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.113",
|
||||
"version": "0.114",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user