Hi,
I have a question about the Sample Rule in Github:
import org.openhab.model.script.actions.Timer
var Timer timer
rule “do something if item state is 0 for more than 10 seconds”
when
Item MyItem changed
then
if(MyItem.state==0) {
timer = createTimer(now.plusSeconds(10)) [|
// do something!
]
} else {
if(timer!=null) {
timer.cancel
timer = null
}
}
end
If I set the timer to 3600 seconds (1 hour), is OpenHAB able to run other rules or does the system just stay in this rule until the time is over?
Because I need to check if a value does not change over 1-2 hours and of course should perform other rules in this time.
Thank you in advance!