var timeout = 5 // sec rule "Relais 1" when Item relais1Switch received update then if (relais1Switch.state == "ON") createTimer(now.plusSeconds(timeout)) [| relais1Switch.postUpdate("OFF") executeCommandLine("/etc/openhab2/scripts/relais.py 23 OFF") ] end