__Dave__

Untitled

Aug 19th, 2021 (edited)
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. rule "Lueftung2 AN"
  2. when
  3.   Item Switch_Guest_WC received update
  4. then
  5.   if (Switch_Guest_WC.state == ON) {
  6.     timer = createTimer(now.plusMinutes(1), [|
  7.       if (Switch_Guest_WC.state == ON)
  8.         Switch_5.sendCommand(ON)
  9.     ])
  10.   }
  11.   else if (Switch_Guest_WC.state == OFF) {
  12.     timer = createTimer(now.plusMinutes(3), [|
  13.       Switch_5.sendCommand(OFF)
  14.     ])
  15.   }
  16. end
Add Comment
Please, Sign In to add comment