Umschaltung von Peak aufh überschuss funktionierte noch nicht richtig
This commit is contained in:
@@ -27,7 +27,8 @@ class WP_Steuerung extends IPSModule {
|
|||||||
|
|
||||||
$this->RegisterVariableInteger("WP_Laufzeit_Zahler", "WP_Laufzeit_Zahler", "", 20*12);
|
$this->RegisterVariableInteger("WP_Laufzeit_Zahler", "WP_Laufzeit_Zahler", "", 20*12);
|
||||||
$this->RegisterVariableBoolean("LetzterPeakwert", "LetzterPeakwert", "", false);
|
$this->RegisterVariableBoolean("LetzterPeakwert", "LetzterPeakwert", "", false);
|
||||||
|
$this->RegisterVariableBoolean("LetzterPeakwert_Aenderung", "LetzterPeakwert_Aenderung", "", false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -111,11 +112,11 @@ class WP_Steuerung extends IPSModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
elseif($this->GetValue("CurrentPower")!=$power){
|
elseif($this->GetValue("CurrentPower")!=$power || ($this->GetValue("LetzterPeakwert") != $this->GetValue("LetzterPeakwert_Aenderung")) ){
|
||||||
$this->SetValue("WP_Laufzeit_Zahler", 0);
|
$this->SetValue("WP_Laufzeit_Zahler", 0);
|
||||||
|
|
||||||
$LastPeak = $this->GetValue("LetzterPeakwert");
|
$LastPeak = $this->GetValue("LetzterPeakwert");
|
||||||
|
$this->SetValue("LetzterPeakwert_Aenderung", $LastPeak);
|
||||||
$state = $this->GetValue("Zustand_WP");
|
$state = $this->GetValue("Zustand_WP");
|
||||||
|
|
||||||
if($state == 0){
|
if($state == 0){
|
||||||
@@ -254,7 +255,7 @@ class WP_Steuerung extends IPSModule {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->SetValue("LetzterPeakwert", $Peak);
|
$this->SetValue("LetzterPeakwert", $Peak);
|
||||||
|
|
||||||
|
|
||||||
if($this->GetValue("WP_Laufzeit_Zahler")<(20*12)){
|
if($this->GetValue("WP_Laufzeit_Zahler")<(20*12)){
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.132",
|
"version": "0.133",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user