# Disable / Enable Node from the front-end

**URL:** <https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564>\
**Category:** General\
**Created:** [11 November 2021 09:56 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564 "2021-11-11T09:56:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmejialo](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fmejialo](https://discourse.nodered.org/u/fmejialo)\
**Post date:** [11 November 2021 09:56 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/1 "2021-11-11T09:56:40Z")

</div>

Hi, I need to eneable o disable a wemo-emulator node from the dashboard.

I am creating an application to automate pools and I have several nodes that communicate with Amazon Alexa through the wemo-emulator node, depending on the functions that you want to enable from the dashboard for the operation of the pool, I need to deactivate the nodes of wemo-emulated so that they are not recognized by Amazon Alexa devices. Does anyone know how I can perform this function, since I am a new person in the design of applications through node red.

Thanks.

Example: if I deactivate the filtering process with a switch button, I need the wemo-emulator node that corresponds to the filtering function to be deactivated so that it is not identified by Alexa.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 November 2021 10:01 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/2 "2021-11-11T10:01:24Z")

</div>

Is this about creating a custom node? If not, could you move it to general or dashboard category please?

---

<div class="post-metadata">

**Author:** ![fmejialo](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fmejialo](https://discourse.nodered.org/u/fmejialo)\
**Post date:** [11 November 2021 10:11 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/3 "2021-11-11T10:11:24Z")

</div>

Thanks for your explanation, as I said in the question, I am new to this and I have no idea what to do.

---

<div class="post-metadata">

**Author:** ![fmejialo](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fmejialo](https://discourse.nodered.org/u/fmejialo)\
**Post date:** [11 November 2021 10:15 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/4 "2021-11-11T10:15:46Z")

</div>

But as in the question I asked, is it possible to develop a node that allows me to do this? Who can help me in the development of a node that allows me to disable any node that I select from the node red dashboard?

Thanks.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 November 2021 11:48 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/5 "2021-11-11T11:48:38Z")

</div>

I don't think it is a new custom node you are after. I also think you are confusing some terms. The Dashboard is an extension to Node-RED that provides a _user_-facing UI. The Editor is the UI that flow authors and administrators use.

As far as I'm aware, there is no way to deactivate a selection of nodes in the Editor. Only by opening the config panel for each node.

What you might be able to do is to use tabs or groups so that you can pre-group some nodes and have only a single thing to deactivate.

---

<div class="post-metadata">

**Author:** ![PiMo131](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pimo131/32/34978_2.png) [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Post date:** [12 November 2021 00:54 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/6 "2021-11-12T00:54:31Z")

</div>

I don't think you can disable any node, but you can stop messages from reaching the node.

You could write a function node based on a specific requirement. That only returns the message if a certain requirement is met.

A 'no code' option is to use the simple gate node:

> **[node-red-contrib-simple-gate](https://flows.nodered.org/node/node-red-contrib-simple-gate)**
>
> A gate node for node-RED

---

<div class="post-metadata">

**Author:** ![fmejialo](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fmejialo](https://discourse.nodered.org/u/fmejialo)\
**Post date:** [13 November 2021 08:52 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/7 "2021-11-13T08:52:34Z")

</div>

Thanks for your answer, I am going to see how I use the node that you recommend to correct the function I have, thank you very much

---

<div class="post-metadata">

**Author:** ![PiMo131](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pimo131/32/34978_2.png) [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Post date:** [14 November 2021 20:57 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/8 "2021-11-14T20:57:26Z")

</div>

No problem. If you share (a part of) your flow I'll might be able to make a suggestion.

---

<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:** [28 November 2021 20:58 UTC](https://discourse.nodered.org/t/disable-enable-node-from-the-front-end/53564/9 "2021-11-28T20:58:06Z")

</div>

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