# Multiple and dynamic configuration nodes

**URL:** <https://discourse.nodered.org/t/multiple-and-dynamic-configuration-nodes/20794>\
**Category:** Developing Nodes\
**Created:** [24 January 2020 01:26 UTC](https://discourse.nodered.org/t/multiple-and-dynamic-configuration-nodes/20794 "2020-01-24T01:26:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ng-galien](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ng-galien/32/92353_2.png) [@ng-galien](https://discourse.nodered.org/u/ng-galien)\
**Post date:** [24 January 2020 01:26 UTC](https://discourse.nodered.org/t/multiple-and-dynamic-configuration-nodes/20794/1 "2020-01-24T01:26:09Z")

</div>

Hello,

I'm creating some nodes for home automation. I had created some nodes for inputs/outputs control. They all have a configuration node.

```javascript
RED.nodes.registerType('digital-output',{
        category: 'upyHome',
        color: '#a6bbcf',
        icon: "inject.png",
        align: "right",
        defaults: {
            name: { value: "" },
            client: {value:"", type: "client", required: true },
            domain: {value: "do"},
            indentifier: {value: "", required: true}
        },

```

The client is the configuration node.  
I want to create a new node which is a group of this previous node, with an array of this set of properties.  
I've seen something similar on the standard switch node

```javascript
RED.nodes.registerType('switch', {
        color: "#E2D96E",
        category: 'function',
        defaults: {
            name: {value:""},
            property: {value:"payload", required:true, validate: RED.validators.typedInput("propertyType")},
            propertyType: { value:"msg" },
            rules: {value:[{t:"eq", v:"", vt:"str"}]},
            checkall: {value:"true", required:true},
            repair: {value:false},
            outputs: {value:1}
        },

```

It appears that's rules is a property itself and note a set of properties, where we can specify a config with type.  
It's also possible to multiply the configs and show / hide theses if not used but it will be painful and ugly.
