# Example of a user UI to disable a flow?

**URL:** <https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218>\
**Category:** General\
**Created:** [16 May 2019 16:08 UTC](https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218 "2019-05-16T16:08:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Post date:** [16 May 2019 16:08 UTC](https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218/1 "2019-05-16T16:08:37Z")

</div>

I have a couple of Google Home devices and I'd like to have a User interface to disable any updates to each device. I have a general function node on each device's flow but is there a sample UI that can set conditions that the function nodes can pick up to disable sending data?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 May 2019 16:49 UTC](https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218/2 "2019-05-16T16:49:32Z")

</div>

Why not a ui switch for each node that puts the state into a flow variable and a switch node in each flow to check if the flow has been turned off?

---

<div class="post-metadata">

**Author:** ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Post date:** [16 May 2019 17:20 UTC](https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218/3 "2019-05-16T17:20:48Z")

</div>

The on/off will be based on things like the users setting of time and/or disable/enable. I haven't given it full thought yet but I do know I want each one to have an independent set of settings.

---

<div class="post-metadata">

**Author:** ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Post date:** [17 May 2019 12:04 UTC](https://discourse.nodered.org/t/example-of-a-user-ui-to-disable-a-flow/11218/4 "2019-05-17T12:04:56Z")

</div>

I've been able to give it some more thought and Peter Scargill has a Themostat node that would be similar in operation. A UI for entering limits and the actual thermostat flow to perform on/off of the thermostat. While my needs are not a Thermostat it is similar (limits and on/off).
