weiterer teil

This commit is contained in:
2024-11-08 15:59:25 +01:00
parent 3fe1bb97e4
commit 1c1114f5ba
2 changed files with 30 additions and 1 deletions

View File

@@ -169,6 +169,35 @@ class WP_Steurung extends IPSModule {
$this->SetValue("Zustand_WP", 1);
}
$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{
$newCount = $this->GetValue("WP_Laufzeit_Zahler");

View File

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