# I need help with rule, how to write - WHEN item Door\_Status changed \*after 1 minute to chech\* THEN?

**URL:** <https://community.openhab.org/t/i-need-help-with-rule-how-to-write-when-item-door-status-changed-after-1-minute-to-chech-then/93438>\
**Category:** Scripts & Rules\
**Created:** [February 23, 2020, 8:27pm UTC](https://community.openhab.org/t/i-need-help-with-rule-how-to-write-when-item-door-status-changed-after-1-minute-to-chech-then/93438 "2020-02-23T20:27:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ljsquare](https://community.openhab.org/user_avatar/community.openhab.org/ljsquare/32/26819_2.png) [@ljsquare](https://community.openhab.org/u/ljsquare)\
**Post date:** [February 23, 2020, 8:59pm UTC](https://community.openhab.org/t/i-need-help-with-rule-how-to-write-when-item-door-status-changed-after-1-minute-to-chech-then/93438/3 "2020-02-23T20:59:28Z")

</div>

First of all, please use code fencing ([How to ask a good question / Help Us Help You](https://community.openhab.org/t/how-to-ask-a-good-question-help-us-help-you/58396))

I can’t see what your plan is, but I think you can solve it with a timer:

```php
rule “Alarm”
when
    Item Door_Status changed
then
   createTimer(now.plusMinutes(1), [|
        if (Door_Status.state == OPEN && Corridor_Right.state == ON)
        {
          Kitchen_Left.sendCommand(ON)
          Gateway_SoundVolume.sendCommand(20)
          Gateway_Sound.sendCommand(1)
        }
  ]
end
```

---

_[View the full topic](https://community.openhab.org/t/i-need-help-with-rule-how-to-write-when-item-door-status-changed-after-1-minute-to-chech-then/93438)._
