Deconflicting Delay Node for PIR and Ikea Remote

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 ```)

``` 
   code goes here 
```

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

See this post for more details - How to share code or flow json

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.