import reguł
This commit is contained in:
26
rules/wc.rules
Normal file
26
rules/wc.rules
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
rule "Sprawdzaj zajętość WC"
|
||||
when
|
||||
Item lWC_lux received update
|
||||
then
|
||||
if (lWC_lux.state > 3) {
|
||||
sWC_occupied.postUpdate(ON)
|
||||
} else {
|
||||
sWC_occupied.postUpdate(OFF)
|
||||
}
|
||||
end
|
||||
|
||||
/* HOLIDAY */
|
||||
|
||||
rule "Psikaj w WC"
|
||||
when
|
||||
Item sWC_occupied changed from ON to OFF or
|
||||
Time cron "0 50 05 * * ?" or
|
||||
Time cron "0 20 15 ? * MON-FRI" or
|
||||
Time cron "0 10/20 15-21 ? * MON-FRI" or
|
||||
Time cron "0 0,20,40 8-22 ? * SAT,SUN"
|
||||
then
|
||||
sD1MINI04_refresh.sendCommand(ON)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user