# Proposed values for subflows

**URL:** https://discourse.nodered.org/t/proposed-values-for-subflows/28921
**Category:** General
**Created:** [24 June 2020 23:13 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921 "2020-06-24T23:13:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![NeoCortex](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@NeoCortex](https://discourse.nodered.org/u/NeoCortex)
#### Post date: [24 June 2020 23:13 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/1 "2020-06-24T23:13:33Z")

</div>

Hi everyone,  
This is my first post, after playing around with node-red for some hours...  
I really love Node-red and want to make my flows tidier und easier to service...  
I use Node-red in conjunction with debmatic to serve as ui and universal middleware to control my mostly Homematic based actuators.  
I want to improve the usability of my subflows by providing proposals for the properties.  
Like a subflow that reports the state of a relay via the dashboard should propose all devices that behave like a switch.  
Likewise, a subflow that reports the state of a switching contact via the dashboard with an led or label should propose all contacts.

I already had a pretty throw look in the forums and documentation, but did not find anything about that. I know that nodes can do this, since the ones I use for the CCU already do it.  
I use node-red-contrib-ccu for interfacing with Homematic btw.

Thx in advance

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 June 2020 08:55 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/2 "2020-06-25T08:55:27Z")

</div>

Hi @NeoCortex

With subflow properties, it is possible to pre-define custom UI for how they should be presented:

 ![JZM7Lo173P](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a13d448078297154435805a49d0379c887e9f071.gif)

But you do have to hard-code the values - you cannot dynamically generate the list of options.

---

<div class="post-metadata">

### Author: ![NeoCortex](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@NeoCortex](https://discourse.nodered.org/u/NeoCortex)
#### Post date: [25 June 2020 09:11 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/3 "2020-06-25T09:11:58Z")

</div>

So i would have to programmatically create the subflows on startup, if i wanted them to be dynamic or would I have to modify the ccu nodes/create my own nodes as an extension?

---

<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: [25 June 2020 10:08 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/4 "2020-06-25T10:08:19Z")

</div>

You can always attach the additional parameters as attributes to the message going in.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 June 2020 10:10 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/5 "2020-06-25T10:10:03Z")

</div>

> [@Colin](#):
>
> You can always attach the additional parameters as attributes to the message going in

That doesn't help at 'design' time when developing the flow.

@NeoCortex - yes, if you want a more dynamic set of options in the subflow, you'd need to generate the subflow configuration before starting Node-RED, or create a custom node.

---

<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: [25 June 2020 10:23 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/6 "2020-06-25T10:23:34Z")

</div>

> [@knolleary](#):
>
> That doesn't help at 'design' time when developing the flow.

You are right, I should have gone back and read the initial post again.

---

<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: [24 August 2020 10:23 UTC](https://discourse.nodered.org/t/proposed-values-for-subflows/28921/7 "2020-08-24T10:23:49Z")

</div>

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