# Deconflicting Delay Node for PIR and Ikea Remote

**URL:** <https://discourse.nodered.org/t/deconflicting-delay-node-for-pir-and-ikea-remote/70157>\
**Category:** General\
**Tags:** delay, zigbee\
**Created:** [6 November 2022 11:17 UTC](https://discourse.nodered.org/t/deconflicting-delay-node-for-pir-and-ikea-remote/70157 "2022-11-06T11:17:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 November 2022 11:32 UTC](https://discourse.nodered.org/t/deconflicting-delay-node-for-pir-and-ikea-remote/70157/2 "2022-11-06T11:32:23Z")

</div>

Welcome to the forum @Blacke1991

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

I (obviously) haven't looked at the flow yet, but assuming you are using a Trigger node for the delay (which is amost certainly the easiest way) then you can configure the trigger node to cancel the delay when it receives a specific payload. You can use that to cancel it when the On button is pressed.

---

_[View the full topic](https://discourse.nodered.org/t/deconflicting-delay-node-for-pir-and-ikea-remote/70157)._
