«
Openhab Language with Delay Support
rule 'Delay sleeps between execution elements' do
on_start
run { logger.info("Sleeping") }
delay 5.seconds
run { logger.info("Awake") }
end
rule 'Multiple delays can exist in a rule' do
on_start
run { logger.info("Sleeping") }
delay 5.seconds
run { logger.info("Sleeping Again") }
end