this hinzugefühgt an diversen stellen

This commit is contained in:
2024-11-11 08:32:12 +01:00
parent 0cff847133
commit c9a39c37b1
2 changed files with 9 additions and 9 deletions

View File

@@ -66,18 +66,18 @@ class WP_Steuerung extends IPSModule {
// Methode zum Setzen des aktuellen Stromverbrauchs
public function SetCurrentPower(float $power) {
$sperrzei_abs = 60*60*(GetValue($this->ReadPropertyInteger("Aussentemperatur"))+10)/25*60;
$sperrzei_abs = 60*60*($this->GetValue($this->ReadPropertyInteger("Aussentemperatur"))+10)/25*60;
if($sperrzei_abs>6*60*60){
$sperrzei_abs = 6*60*60;
}
if(GetValue($this->ReadPropertyInteger("Wolkenschwellwert"))<GetValue($this->ReadPropertyInteger("Wolkenwert")) || $sperrzei_abs < 0 ){
if($this->GetValue($this->ReadPropertyInteger("Wolkenschwellwert"))<$this->GetValue($this->ReadPropertyInteger("Wolkenwert")) || $sperrzei_abs < 0 ){
$sperrzei_abs = 0;
}
$sperrzeit = GetValue($this->ReadPropertyInteger("Referenzzeit"))%86400 - $sperrzei_abs;
$entsperrzeit = GetValue($this->ReadPropertyInteger("Referenzzeit"))%86400;
$sperrzeit = $this->GetValue($this->ReadPropertyInteger("Referenzzeit"))%86400 - $sperrzei_abs;
$entsperrzeit = $this->GetValue($this->ReadPropertyInteger("Referenzzeit"))%86400;
$aktuellezeit = time()%86400;
$its_lock_time = false;
@@ -126,7 +126,7 @@ class WP_Steuerung extends IPSModule {
}elseif($state == 2) // Sperre
{
if($LastPeak && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))) {
if($LastPeak && $power == $this->GetValue($this->ReadPropertyInteger("WP_Leistung"))) {
$this->SetValue("Zustand_WP", 1);
if($its_lock_time){
$this->SetValue("Zustand_WP", 2);
@@ -135,7 +135,7 @@ class WP_Steuerung extends IPSModule {
$this->SetValue("Zustand_WP", 2);
}
elseif($LastPeak == false && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))){
elseif($LastPeak == false && $power == $this->etValue($this->ReadPropertyInteger("WP_Leistung"))){
$this->SetValue("Zustand_WP", 3);
}
@@ -149,13 +149,13 @@ class WP_Steuerung extends IPSModule {
}elseif($state == 3) // Erhöht
{
if($LastPeak && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))) {
if($LastPeak && $power == $this->GetValue($this->ReadPropertyInteger("WP_Leistung"))) {
$this->SetValue("Zustand_WP", 1);
} elseif($LastPeak && $power == 0){
$this->SetValue("Zustand_WP", 2);
}
elseif($LastPeak == false && $power == GetValue($this->ReadPropertyInteger("WP_Leistung"))){
elseif($LastPeak == false && $power == $this->GetValue($this->ReadPropertyInteger("WP_Leistung"))){
$this->SetValue("Zustand_WP", 3);
}

View File

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