semikolon vergessen
This commit is contained in:
@@ -105,32 +105,32 @@ class WP_Steuerung extends IPSModule {
|
||||
{
|
||||
if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) {
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"));
|
||||
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"));
|
||||
|
||||
}
|
||||
} elseif($LastPeak && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
$this->SetValue("CurrentPower", 0);
|
||||
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){
|
||||
$this->SetValue("Zustand_WP", 3);
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
|
||||
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"));
|
||||
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
$this->SetValue("CurrentPower", 0);
|
||||
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
$this->SetValue("CurrentPower", 0)
|
||||
$this->SetValue("CurrentPower", 0);
|
||||
|
||||
}
|
||||
|
||||
@@ -138,43 +138,74 @@ class WP_Steuerung extends IPSModule {
|
||||
|
||||
}elseif($state == 2) // Sperre
|
||||
{
|
||||
if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) {
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
}
|
||||
} elseif($LastPeak && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){
|
||||
$this->SetValue("Zustand_WP", 3);
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
if($its_lock_time){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
}
|
||||
|
||||
}
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}elseif($state == 3) // Erhöht
|
||||
{
|
||||
if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) {
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
} elseif($LastPeak && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 2);
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){
|
||||
$this->SetValue("Zustand_WP", 3);
|
||||
|
||||
}
|
||||
elseif($LastPeak == false && $power == 0){
|
||||
$this->SetValue("Zustand_WP", 1);
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.114",
|
||||
"version": "0.115",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user