# Developing Nodes

**URL:** https://discourse.nodered.org/c/developing-nodes/15.md?page=6

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

**Page:** 7

---

## [Node Edit Dialogue: JSON input complaining about being null Version 4.0.0-18](https://discourse.nodered.org/t/node-edit-dialogue-json-input-complaining-about-being-null-version-4-0-0-18/88997)

<div class="topic-metadata">

**Author:** [@HarryPottar](https://discourse.nodered.org/u/HarryPottar)\
**Replies:** 4\
**Last updated:** [27 June 2024 07:20 UTC](https://discourse.nodered.org/t/node-edit-dialogue-json-input-complaining-about-being-null-version-4-0-0-18/88997 "2024-06-27T07:20:02Z")

</div>

Using Docker for dev Version 4.0.0-18 I'm creating a custom node and using an optional JSON input in the edit dialogue. These values can be entered in the config or passed in the msg object. tags: {value:'',required:…

---

## [Show newly added flow](https://discourse.nodered.org/t/show-newly-added-flow/88971)

<div class="topic-metadata">

**Author:** [@bfany365](https://discourse.nodered.org/u/bfany365)\
**Replies:** 0\
**Last updated:** [26 June 2024 11:37 UTC](https://discourse.nodered.org/t/show-newly-added-flow/88971 "2024-06-26T11:37:54Z")

</div>

Hi I am able to successfully add a new flow using the API, but without a refreshing the ode-red editor page in browser, I can not see the new flow, how can I show the newly added flow instantly after it was added using …

---

## [RED.plugins.registerPlugin is not called](https://discourse.nodered.org/t/red-plugins-registerplugin-is-not-called/88965)

<div class="topic-metadata">

**Author:** [@bfany365](https://discourse.nodered.org/u/bfany365)\
**Replies:** 1\
**Last updated:** [26 June 2024 09:21 UTC](https://discourse.nodered.org/t/red-plugins-registerplugin-is-not-called/88965 "2024-06-26T09:21:51Z")

</div>

Hi I have developed a simple plugin, the associated js file is never called although the associated html file is loaded. Therefore the code I have for RED.plugins.registerPlugin seems to be never triggered: myplugin.…

---

## [Red-ui-sidebar-shade hide, prevents added side bar to be clickable](https://discourse.nodered.org/t/red-ui-sidebar-shade-hide-prevents-added-side-bar-to-be-clickable/88961)

<div class="topic-metadata">

**Author:** [@bfany365](https://discourse.nodered.org/u/bfany365)\
**Replies:** 5\
**Last updated:** [26 June 2024 09:15 UTC](https://discourse.nodered.org/t/red-ui-sidebar-shade-hide-prevents-added-side-bar-to-be-clickable/88961 "2024-06-26T09:15:58Z")

</div>

Hi Reading RED.sidebar : Node-RED, I added a side bar and when I open that sidebar, the following html element is added to the sidebar html code: "\< div class="red-ui-sidebar-shade hide" style="display: block;"\>" Th…

---

## [Missing nodes in Home Assistant addon when loading extra resources](https://discourse.nodered.org/t/missing-nodes-in-home-assistant-addon-when-loading-extra-resources/88793)

<div class="topic-metadata">

**Author:** [@MoonDev](https://discourse.nodered.org/u/MoonDev)\
**Replies:** 2\
**Last updated:** [19 June 2024 13:56 UTC](https://discourse.nodered.org/t/missing-nodes-in-home-assistant-addon-when-loading-extra-resources/88793 "2024-06-19T13:56:14Z")

</div>

Hello, I noticed an issue with my node palette @lunatone/node-red-dali in the Node-RED sidebar of the Home Assistant addon where some of the nodes in the palette are missing and cannot be used. When accessing the Node-R…

---

## [React on NodeRed exit event](https://discourse.nodered.org/t/react-on-nodered-exit-event/88623)

<div class="topic-metadata">

**Author:** [@H3llsing](https://discourse.nodered.org/u/H3llsing)\
**Replies:** 11\
**Last updated:** [15 June 2024 21:41 UTC](https://discourse.nodered.org/t/react-on-nodered-exit-event/88623 "2024-06-15T21:41:07Z")

</div>

Hey folks, im seaching for a way to react on an application close event of node-red inside the nodes. Im using it as an embedded app and I figured out, that on a kill signal nodeRed will stop gracefully and running the…

---

## [Feature Request : Sharing and Versioning Subflow](https://discourse.nodered.org/t/feature-request-sharing-and-versioning-subflow/88632)

<div class="topic-metadata">

**Author:** [@JpEncausse](https://discourse.nodered.org/u/JpEncausse)\
**Replies:** 0\
**Last updated:** [12 June 2024 07:52 UTC](https://discourse.nodered.org/t/feature-request-sharing-and-versioning-subflow/88632 "2024-06-12T07:52:53Z")

</div>

Hello, I'm using a lot the subflow feature (love it for years, using subflow of subflow of sublfow) to package API Call to ChatGPT for instance, etc ... but I'm very frustrated because it's complicated to maintain a Sub…

---

## [Problem with json in custom node](https://discourse.nodered.org/t/problem-with-json-in-custom-node/88621)

<div class="topic-metadata">

**Author:** [@riri](https://discourse.nodered.org/u/riri)\
**Replies:** 3\
**Last updated:** [11 June 2024 16:22 UTC](https://discourse.nodered.org/t/problem-with-json-in-custom-node/88621 "2024-06-11T16:22:09Z")

</div>

Hi everyone \<script type="text/javascript"\> RED.nodes.registerType('InitSVI',{ category: 'matrice\_svi', color: '#EF4040', defaults: { name: {value:"",required:true}, s…

---

## [Node Lifecycles and error handling at "flow deployment time"](https://discourse.nodered.org/t/node-lifecycles-and-error-handling-at-flow-deployment-time/88594)

<div class="topic-metadata">

**Author:** [@TacticalNudge](https://discourse.nodered.org/u/TacticalNudge)\
**Replies:** 9\
**Last updated:** [11 June 2024 11:50 UTC](https://discourse.nodered.org/t/node-lifecycles-and-error-handling-at-flow-deployment-time/88594 "2024-06-11T11:50:12Z")

</div>

Hi Everyone. TLDR: is there a way to raise an error and mark a node as uninitialized / unavailable at deploy time? I have a node I implemented that does a bit of setup when it gets deployed- authentication, and pulling…

---

## [Tip: load an ES module in the js file of a custom node](https://discourse.nodered.org/t/tip-load-an-es-module-in-the-js-file-of-a-custom-node/87510)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [11 June 2024 11:33 UTC](https://discourse.nodered.org/t/tip-load-an-es-module-in-the-js-file-of-a-custom-node/87510 "2024-06-11T11:33:23Z")

</div>

Hi folks, Just sharing something I found. Note that I have no clue at the moment whether this works for all libraries. Don't have enough free time to figure out stuff like that. So if anybody else knows more about th…

---

## [Node-red-contrib-zwave-js | V10 Progress Update](https://discourse.nodered.org/t/node-red-contrib-zwave-js-v10-progress-update/88546)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 0\
**Last updated:** [7 June 2024 08:29 UTC](https://discourse.nodered.org/t/node-red-contrib-zwave-js-v10-progress-update/88546 "2024-06-07T08:29:28Z")

</div>

I have put this under Developing Nodes, as it's not really at the point of sharing. Last year, I began the process of getting the module upto v10. V10 is the largest update, and will potentially be the biggest ever. H…

---

## [Some nodes not showing up in flows.nodered.org](https://discourse.nodered.org/t/some-nodes-not-showing-up-in-flows-nodered-org/88500)

<div class="topic-metadata">

**Author:** [@MoonDev](https://discourse.nodered.org/u/MoonDev)\
**Replies:** 22\
**Last updated:** [6 June 2024 05:33 UTC](https://discourse.nodered.org/t/some-nodes-not-showing-up-in-flows-nodered-org/88500 "2024-06-06T05:33:03Z")

</div>

Hello, I'm developer of the @lunatone/node-red-dali package and there is the strange issue that on the flows.nodered.org page of the package some nodes are not displayed in the nodes bubble anymore. Anyone knows how to…

---

## ['name' already registered by module node-red](https://discourse.nodered.org/t/name-already-registered-by-module-node-red/88504)

<div class="topic-metadata">

**Author:** [@marknomad](https://discourse.nodered.org/u/marknomad)\
**Replies:** 9\
**Last updated:** [5 June 2024 17:30 UTC](https://discourse.nodered.org/t/name-already-registered-by-module-node-red/88504 "2024-06-05T17:30:46Z")

</div>

I'm creating a new node for the first time in Node-RED. I ran through the tutorial on creating my first node to change the input to lowercase. However, after installing the node, I always get 'name' already registered b…

---

## [Window.open : Bad practice?](https://discourse.nodered.org/t/window-open-bad-practice/88390)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 8\
**Last updated:** [5 June 2024 13:52 UTC](https://discourse.nodered.org/t/window-open-bad-practice/88390 "2024-06-05T13:52:41Z")

</div>

So... I am on a massive refactoring project with my Node (ZWave) ZWave has a very colourful and involved management system, and for this I (currently) use blocking modals to display everything I need to + using the si…

---

## [Examples not included when installing node](https://discourse.nodered.org/t/examples-not-included-when-installing-node/88373)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 9\
**Last updated:** [31 May 2024 16:06 UTC](https://discourse.nodered.org/t/examples-not-included-when-installing-node/88373 "2024-05-31T16:06:58Z")

</div>

I have just released the initial version of a new dashboard 2 ui node @colinl/node-red-dashboard-2-ui-gauge-classic which is a multi-needle classic style gauge. It is working ok, but the examples are not being installe…

---

## [Training for the use of GitHub](https://discourse.nodered.org/t/training-for-the-use-of-github/88358)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 0\
**Last updated:** [29 May 2024 15:26 UTC](https://discourse.nodered.org/t/training-for-the-use-of-github/88358 "2024-05-29T15:26:16Z")

</div>

GitHub can be tricky to get your head around if you've never used it or GIT before. But really needed for developing custom nodes. Was reminded that Microsoft provide some nice, & free training:

---

## [Problem with editableList resize callback](https://discourse.nodered.org/t/problem-with-editablelist-resize-callback/88263)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 9\
**Last updated:** [26 May 2024 11:13 UTC](https://discourse.nodered.org/t/problem-with-editablelist-resize-callback/88263 "2024-05-26T11:13:56Z")

</div>

Should the resize() callback on editableList be called when I click the Add row button, or the x to remove a row? I am only seeing it getting called when I initially open the dialog. Using 4.0.0 beta 3

---

## [Lifx Devices - help](https://discourse.nodered.org/t/lifx-devices-help/88175)

<div class="topic-metadata">

**Author:** [@Y2K](https://discourse.nodered.org/u/Y2K)\
**Replies:** 0\
**Last updated:** [22 May 2024 18:08 UTC](https://discourse.nodered.org/t/lifx-devices-help/88175 "2024-05-22T18:08:53Z")

</div>

Lifx - ihost sonoff hub So many to choose from. And I do not want to make the mistake of reinstalling docker all over again. Having issues with Flic and now I see my Lifx 4 button scene switch just flashing red again. A…

---

## [Looking for really simple example of editableList](https://discourse.nodered.org/t/looking-for-really-simple-example-of-editablelist/88004)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 4\
**Last updated:** [16 May 2024 11:08 UTC](https://discourse.nodered.org/t/looking-for-really-simple-example-of-editablelist/88004 "2024-05-16T11:08:31Z")

</div>

Can anyone point me to a really simple example of the use of editableList? I am trying to use it to create an array of simple objects, each consisting of a couple of numbers and a string. I am looking at the code for th…

---

## [TypedInput Select Box - allways String value](https://discourse.nodered.org/t/typedinput-select-box-allways-string-value/87992)

<div class="topic-metadata">

**Author:** [@jjproe](https://discourse.nodered.org/u/jjproe)\
**Replies:** 2\
**Last updated:** [15 May 2024 19:27 UTC](https://discourse.nodered.org/t/typedinput-select-box-allways-string-value/87992 "2024-05-15T19:27:40Z")

</div>

Hello, I'm trying to get values from the typedInput selectBox as integers in my custom node. These values should be linked to binary operations via the config in the js file. But I am not able to get this value in the f…

---

## [Set button state from js](https://discourse.nodered.org/t/set-button-state-from-js/87917)

<div class="topic-metadata">

**Author:** [@mstoffel-sag](https://discourse.nodered.org/u/mstoffel-sag)\
**Replies:** 4\
**Last updated:** [15 May 2024 11:00 UTC](https://discourse.nodered.org/t/set-button-state-from-js/87917 "2024-05-15T11:00:14Z")

</div>

Hi experts, I created a node that connects to a websocket server. I was able to set the node state from the backend (javascript) using: node.status({ fill: "green", shape: "ring", text: "C…

---

## [Inherit config to all custom nodes](https://discourse.nodered.org/t/inherit-config-to-all-custom-nodes/87698)

<div class="topic-metadata">

**Author:** [@mstoffel-sag](https://discourse.nodered.org/u/mstoffel-sag)\
**Replies:** 7\
**Last updated:** [6 May 2024 10:23 UTC](https://discourse.nodered.org/t/inherit-config-to-all-custom-nodes/87698 "2024-05-06T10:23:09Z")

</div>

Hi everybody, I'm creating an integration with multiple nodes. Each of these need a configuration node type and other html configs like checkbox etc. How can I embed the necessary html and script parts in each html file…

---

## [Create mapping template node](https://discourse.nodered.org/t/create-mapping-template-node/87452)

<div class="topic-metadata">

**Author:** [@mstoffel-sag](https://discourse.nodered.org/u/mstoffel-sag)\
**Replies:** 3\
**Last updated:** [30 April 2024 09:32 UTC](https://discourse.nodered.org/t/create-mapping-template-node/87452 "2024-04-30T09:32:14Z")

</div>

Hi experts, I'm quite new to NodeRed development. I try to implement an integration for a Rest API that requires a specific json payload. I would like to create my own node that allows to map certain fields in that json…

---

## [Node update - node-red-contrib-simpletime v2.11.1](https://discourse.nodered.org/t/node-update-node-red-contrib-simpletime-v2-11-1/87358)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 1\
**Last updated:** [20 April 2024 10:03 UTC](https://discourse.nodered.org/t/node-update-node-red-contrib-simpletime-v2-11-1/87358 "2024-04-20T10:03:03Z")

</div>

Following a user request, I've just added 2 small features to simpletime, Added the option to output the day name in full, eg - Saturday (Sat is already available) Added the option to output the month name in full, eg …

---

## [This.context() VS this.context().flow in custom node](https://discourse.nodered.org/t/this-context-vs-this-context-flow-in-custom-node/87320)

<div class="topic-metadata">

**Author:** [@NILD](https://discourse.nodered.org/u/NILD)\
**Replies:** 4\
**Last updated:** [19 April 2024 15:43 UTC](https://discourse.nodered.org/t/this-context-vs-this-context-flow-in-custom-node/87320 "2024-04-19T15:43:49Z")

</div>

Hi, I would appreciate it if you could review the code at this link: In line 15, I have to use this.context().flow instead of this.context() for the code to function correctly. When I use this.context(), I’ve noticed …

---

## [Best way to save variables across node-red restarts?](https://discourse.nodered.org/t/best-way-to-save-variables-across-node-red-restarts/87315)

<div class="topic-metadata">

**Author:** [@hansimeister](https://discourse.nodered.org/u/hansimeister)\
**Replies:** 4\
**Last updated:** [19 April 2024 12:11 UTC](https://discourse.nodered.org/t/best-way-to-save-variables-across-node-red-restarts/87315 "2024-04-19T12:11:58Z")

</div>

Dear Node-redders (are you called like that?) Just wanted to ask what the best way is to preserve a variable and it's state defined in the .js file of a node. Got some websocket listeners I want to start listening for t…

---

## [Screencasts - NodeDev custom node development in Node-RED](https://discourse.nodered.org/t/screencasts-nodedev-custom-node-development-in-node-red/87307)

<div class="topic-metadata">

**Author:** [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Replies:** 2\
**Last updated:** [18 April 2024 07:14 UTC](https://discourse.nodered.org/t/screencasts-nodedev-custom-node-development-in-node-red/87307 "2024-04-18T07:14:45Z")

</div>

Hi There, Back in the good old days, I mentioned that I had created NodeDev for making custom node development in Node-RED possible. I've extended the functionality to be more useful for me. To understand what I'm up t…

---

## [Use a js file in NodeJs and VueJs](https://discourse.nodered.org/t/use-a-js-file-in-nodejs-and-vuejs/86842)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [12 April 2024 21:55 UTC](https://discourse.nodered.org/t/use-a-js-file-in-nodejs-and-vuejs/86842 "2024-04-12T21:55:03Z")

</div>

Hi folks, I have a js file containing a series of functions. I want to call those functions both in my ui node backend js file, and also in my ui node frontend vue file. The js file is included in the frontend umd fil…

---

## [Configuration node, how to add default configuration nodes automatically at startup?](https://discourse.nodered.org/t/configuration-node-how-to-add-default-configuration-nodes-automatically-at-startup/87162)

<div class="topic-metadata">

**Author:** [@etienneh](https://discourse.nodered.org/u/etienneh)\
**Replies:** 1\
**Last updated:** [11 April 2024 15:20 UTC](https://discourse.nodered.org/t/configuration-node-how-to-add-default-configuration-nodes-automatically-at-startup/87162 "2024-04-11T15:20:04Z")

</div>

Hello, I developed a configuration node similar to the one in the documentation ( Configuration nodes : Node-RED ) how can i add one or multiple default configuration nodes automatically at the flow startup, so that th…

---

## [How to preserve state of the edit dialog?](https://discourse.nodered.org/t/how-to-preserve-state-of-the-edit-dialog/87029)

<div class="topic-metadata">

**Author:** [@hansimeister](https://discourse.nodered.org/u/hansimeister)\
**Replies:** 9\
**Last updated:** [10 April 2024 15:33 UTC](https://discourse.nodered.org/t/how-to-preserve-state-of-the-edit-dialog/87029 "2024-04-10T15:33:51Z")

</div>

Hey there I want to preserve the selected values and therefore whole state of the custom node code below. What is the best way to do that, that e.g. after browser refresh or restart of node-red the selected values are s…

[Previous page](https://discourse.nodered.org/c/developing-nodes/15.md?page=5)

[Next page](https://discourse.nodered.org/c/developing-nodes/15.md?page=7)
