# Disable communication between nodes by trigger

**URL:** https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428
**Category:** Dashboard
**Created:** [12 December 2020 23:56 UTC](https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428 "2020-12-12T23:56:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![IvanPoluda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpoluda/32/33569_2.png) [@IvanPoluda](https://discourse.nodered.org/u/IvanPoluda)
#### Post date: [12 December 2020 23:56 UTC](https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428/1 "2020-12-12T23:56:03Z")

</div>

I have a set of nodes that, depending on some events, make a button enabled or disabled (sending msg.enabled=true/false). This state is sent to the button every 3 seconds. There is also an event that should enable or disable the same button for 10 seconds, while the previous trigger should not change this state. How can I implement this?

---

<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: [13 December 2020 07:16 UTC](https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428/2 "2020-12-13T07:16:20Z")

</div>

Welcome to the forum @IvanPoluda.

You could use a Trigger node in combination with a node-red-contrib-simple-gate. The gate node can block the regular update based on the trigger node messages, which also disable/enable the button.

---

<div class="post-metadata">

### Author: ![IvanPoluda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ivanpoluda/32/33569_2.png) [@IvanPoluda](https://discourse.nodered.org/u/IvanPoluda)
#### Post date: [13 December 2020 09:52 UTC](https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428/3 "2020-12-13T09:52:06Z")

</div>

Colin, thank you so much! This is exactly what I was looking for! Have a nice day!))

---

<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: [12 January 2021 09:52 UTC](https://discourse.nodered.org/t/disable-communication-between-nodes-by-trigger/37428/4 "2021-01-12T09:52:12Z")

</div>

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