Currentpower angepasst

This commit is contained in:
2024-11-11 10:43:18 +01:00
parent 8d0c09ada3
commit 8435a0c089
2 changed files with 17 additions and 5 deletions

View File

@@ -105,21 +105,33 @@ class WP_Steuerung extends IPSModule {
{ {
if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) { if($LastPeak && $power == ($this->ReadPropertyInteger("WP_Leistung"))) {
$this->SetValue("Zustand_WP", 1); $this->SetValue("Zustand_WP", 1);
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
if($its_lock_time){ if($its_lock_time){
$this->SetValue("Zustand_WP", 2); $this->SetValue("Zustand_WP", 2);
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
} }
} elseif($LastPeak && $power == 0){ } elseif($LastPeak && $power == 0){
$this->SetValue("Zustand_WP", 2); $this->SetValue("Zustand_WP", 2);
$this->SetValue("CurrentPower", 0)
} }
elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){ elseif($LastPeak == false && $power == ($this->ReadPropertyInteger("WP_Leistung"))){
$this->SetValue("Zustand_WP", 3); $this->SetValue("Zustand_WP", 3);
$this->SetValue("CurrentPower", $this->ReadPropertyInteger("WP_Leistung"))
} }
elseif($LastPeak == false && $power == 0){ elseif($LastPeak == false && $power == 0){
$this->SetValue("Zustand_WP", 1); $this->SetValue("Zustand_WP", 1);
$this->SetValue("CurrentPower", 0)
if($its_lock_time){ if($its_lock_time){
$this->SetValue("Zustand_WP", 2); $this->SetValue("Zustand_WP", 2);
$this->SetValue("CurrentPower", 0)
} }
} }

View File

@@ -6,7 +6,7 @@
"compatibility": { "compatibility": {
"version": "7.1" "version": "7.1"
}, },
"version": "0.113", "version": "0.114",
"build": 0, "build": 0,
"date": 0 "date": 0
} }