neuer versuch

This commit is contained in:
2024-11-08 15:58:24 +01:00
parent f0af6d0851
commit 3fe1bb97e4
2 changed files with 65 additions and 94 deletions

View File

@@ -67,6 +67,7 @@ class WP_Steurung extends IPSModule {
public function SetCurrentPower(float $power) {
$sperrzei_abs = 60*60*(GetValue($this->ReadPropertyInteger("Aussentemperatur"))+10)/25*60;
if($sperrzei_abs>6*60*60){
$sperrzei_abs = 6*60*60;
@@ -166,40 +167,10 @@ class WP_Steurung extends IPSModule {
}
else{
$this->SetValue("Zustand_WP", 1);
$this->SetValue("PowerSteps", json_encode([0]));
}
$newState = $this->GetValue("Zustand_WP");
if($newState == 0){
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
}elseif($newState == 1){
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
}elseif($newState == 2){
SetValue($this->ReadPropertyInteger("Sperrkontakt"), true);
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
}elseif($newState == 3){
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), true);
}else{
SetValue($this->ReadPropertyInteger("Sperrkontakt"), false);
SetValue($this->ReadPropertyInteger("Kontakt_Erhoeung"), false);
}
}else{
break;
$newCount = $this->GetValue("WP_Laufzeit_Zahler");
$this->SetValue("WP_Laufzeit_Zahler", ($newCount +1));
}

View File

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