# Bypass/Ignore a node based on certain input?

**URL:** <https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356>\
**Category:** General\
**Created:** [11 December 2020 15:40 UTC](https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356 "2020-12-11T15:40:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomJC70](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tomjc70/32/33493_2.png) [@TomJC70](https://discourse.nodered.org/u/TomJC70)\
**Post date:** [11 December 2020 15:40 UTC](https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356/1 "2020-12-11T15:40:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3ec1942efa6763c73f377a677b0bcab82c09b993.png)

Depending on the time of day, the light in the loo is turned on at modest or minimal brightness. On a long-press, it'll go to max brightness. In either case, the light turns off after 10 minutes. That's working fine.

I added that long-press/max brightness for when I'm cleaning, but 10 minutes is not enough.  
I could just up the trigger time, but the 10 minutes is already a bit too long for most bathroom visits.  
Is there some way to disable/ignore the trigger node when the long-press is received?

Edit:  
Almost immediately after posting this, my own light-bulb came on and I came up with a workable solution for the 'long press light needs to stay on indefinitely' by adding a second trigger which retriggers the '10 minute' trigger every 5 minutes, therefore extending the timer.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/677fc95009ee7f699b7f79f9e2eb02335f0f70ab.png)

I am, however, still wondering if there is a way to bypass/ignore a node based on a given input.

---

<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:** [11 December 2020 16:03 UTC](https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356/2 "2020-12-11T16:03:50Z")

</div>

Have a look at the help text for the trigger node, note in particular the `msg.reset` input.

---

<div class="post-metadata">

**Author:** ![TomJC70](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tomjc70/32/33493_2.png) [@TomJC70](https://discourse.nodered.org/u/TomJC70)\
**Post date:** [12 December 2020 07:35 UTC](https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356/3 "2020-12-12T07:35:35Z")

</div>

Turns out I already had a value in the msg.reset. I'm assuming it's a remnant of earlier tries, because I can't remember why.  
Tested and that's working too.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 February 2021 07:35 UTC](https://discourse.nodered.org/t/bypass-ignore-a-node-based-on-certain-input/37356/4 "2021-02-10T07:35:40Z")

</div>

Closed on 10 February 2021 07:35 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
