Alarmgong, Alarmlicht und Hoftor Steuerung

This commit is contained in:
Patrick Niebeling
2020-11-28 13:07:21 +01:00
parent 1193e1a93c
commit f2a79a737b
9 changed files with 171 additions and 18 deletions

92
rules/REMWEBIO001.rules Normal file
View File

@ -0,0 +1,92 @@
rule "Steuerung Tor 1"
when
Item REMWEBIO001_Ausgang0 changed to ON
then
Thread::sleep(1000)
REMWEBIO001_Ausgang0.sendCommand(OFF)
end
rule "MTF 1 (3-19-1) - Status 2"
when
Item FFStatus67641319 changed to 2
then
if( StartupSwitch.state == ON && FunctioncheckSwitch.state!=ON ) {
REMWEBIO001_Ausgang0.sendCommand(ON)
}
end
rule "Steuerung Tor 2"
when
Item REMWEBIO001_Ausgang1 changed to ON
then
Thread::sleep(1000)
REMWEBIO001_Ausgang1.sendCommand(OFF)
end
rule "LF 8/6-1 (3-42-1) - Status 2"
when
Item FFStatus67641342 changed to 2
then
if( StartupSwitch.state == ON && FunctioncheckSwitch.state!=ON ) {
REMWEBIO001_Ausgang1.sendCommand(ON)
}
end
rule "Steuerung Tor 3"
when
Item REMWEBIO002_Ausgang2 changed to ON
then
Thread::sleep(1000)
REMWEBIO001_Ausgang2.sendCommand(OFF)
end
rule "LF 8/6-2 (3-42-2) - Status 2"
when
Item FFStatus67641349 changed to 2
then
if( StartupSwitch.state == ON && FunctioncheckSwitch.state!=ON ) {
REMWEBIO001_Ausgang2.sendCommand(ON)
}
end
rule "Steuerung Tor 4"
when
Item REMWEBIO001_Ausgang3 changed to ON
then
Thread::sleep(1000)
REMWEBIO001_Ausgang3.sendCommand(OFF)
end
rule "MTF 2 (3-19-2) - Status 2"
when
Item FFStatus67641317 changed to 2
then
if( StartupSwitch.state == ON && FunctioncheckSwitch.state!=ON ) {
REMWEBIO001_Ausgang4.sendCommand(ON)
}
end
rule "Steuerung Tor 5"
when
Item REMWEBIO001_Ausgang4 changed to ON
then
Thread::sleep(1000)
REMWEBIO001_Ausgang4.sendCommand(OFF)
end
rule "RW1 (3-51-1) - Status 2"
when
Item FFStatus67641351 changed to 2
then
if( StartupSwitch.state == ON && FunctioncheckSwitch.state!=ON ) {
REMWEBIO001_Ausgang5.sendCommand(ON)
}
end
rule "Steuerung Alarmlicht & Gong"
when
Item REMWEBIO001_Ausgang5 changed to ON
then
Thread::sleep(6000)
REMWEBIO001_Ausgang5.sendCommand(OFF)
end