# On Off Dash Button

**URL:** <https://discourse.nodered.org/t/on-off-dash-button/38345>\
**Category:** Dashboard\
**Created:** [1 January 2021 07:25 UTC](https://discourse.nodered.org/t/on-off-dash-button/38345 "2021-01-01T07:25:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [1 January 2021 07:25 UTC](https://discourse.nodered.org/t/on-off-dash-button/38345/1 "2021-01-01T07:25:25Z")

</div>

I am trying create a simple button / switch on a dashboard to stop a flow. I have put on a dashboard a button to manually input data and control a device. Said device is also controlled by an incoming flow. I want to be able to switch the incoming flow off and go into manual mode or switch it on for automatic, any help please?

---

<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:** [1 January 2021 09:43 UTC](https://discourse.nodered.org/t/on-off-dash-button/38345/2 "2021-01-01T09:43:49Z")

</div>

Possibly you could use a node-red-contrib-simple-gate to stop the flow from driving the device by blocking the messages down that path. If you want a dashboard switch to switch between manual/automatic then feed the output of the switch to the gate node to block/allow the traffic. You could also use that switch to enable/disable the dashboard widgets controlling it when in manual so you can't use that method when it is in auto mode.

---

<div class="post-metadata">

**Author:** ![davenrea](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davenrea/32/32842_2.png) [@davenrea](https://discourse.nodered.org/u/davenrea)\
**Post date:** [9 January 2021 15:06 UTC](https://discourse.nodered.org/t/on-off-dash-button/38345/3 "2021-01-09T15:06:11Z")

</div>

Colin, thanks, got that now.

---

<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:** [8 February 2021 15:06 UTC](https://discourse.nodered.org/t/on-off-dash-button/38345/4 "2021-02-08T15:06:15Z")

</div>

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