If the status of the motion detector changes from ON to OFF, then a command should be executed after 30 minutes.
If, however, the status changes back to ON within these 30 minutes, the rule should be interrupted and then start again when the status changes back to OFF.
rule "MotionDetector"
when
Item MotionDetector changed to OFF
then
Dummy.postUpdate(ON)
end
rule "Dummy"
when
Item Dummy changed to OFF
then
if (MotionDetector.state == OFF) {
// ...
}
end
I know, but it makes no odds. I both cases I have to check MotionDetector.state.So I can save this part.
It’s only one example of many. @hermann1514 has to decide himself, how to do.
We can philosophise hours about that. Lets solve major problems.