# Developing Nodes

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

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

**Page:** 30

---

## [How to test subflow-module in docker-compose instance](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328)

<div class="topic-metadata">

**Author:** [@novski](https://discourse.nodered.org/u/novski)\
**Replies:** 5\
**Last updated:** [20 June 2021 12:25 UTC](https://discourse.nodered.org/t/how-to-test-subflow-module-in-docker-compose-instance/47328 "2021-06-20T12:25:57Z")

</div>

How can I install my local subflow-module inside my docker-compose instance of node-red?

---

## [Migrating a UI node to Flexdash](https://discourse.nodered.org/t/migrating-a-ui-node-to-flexdash/47359)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 5\
**Last updated:** [19 June 2021 23:03 UTC](https://discourse.nodered.org/t/migrating-a-ui-node-to-flexdash/47359 "2021-06-19T23:03:57Z")

</div>

Hi Thorsten (@tve), Going to continue our discussion here. So my question is whether I will be able somehow to convert my current UI nodes some day to fit into the Flexdash concept. I don't say that this will ever be …

---

## [Using a client side JS file](https://discourse.nodered.org/t/using-a-client-side-js-file/47338)

<div class="topic-metadata">

**Author:** [@Stwissel](https://discourse.nodered.org/u/Stwissel)\
**Replies:** 9\
**Last updated:** [19 June 2021 20:46 UTC](https://discourse.nodered.org/t/using-a-client-side-js-file/47338 "2021-06-19T20:46:24Z")

</div>

When building some custom nodes, I want to keep them separate in multiple files: custom1.js, custom1.html, custom2.js, custom2.html However they share a lot of common functions in the editor (show/hide elements etc.) H…

---

## [Inheritance of custom nodes](https://discourse.nodered.org/t/inheritance-of-custom-nodes/47282)

<div class="topic-metadata">

**Author:** [@H3llsing](https://discourse.nodered.org/u/H3llsing)\
**Replies:** 14\
**Last updated:** [18 June 2021 08:18 UTC](https://discourse.nodered.org/t/inheritance-of-custom-nodes/47282 "2021-06-18T08:18:33Z")

</div>

Hey there, im writing currently a lot of custom nodes for my company and im interested in a general concept of custom node inheritance. Im dividing my functionality from the ui part. that allows me to use another node …

---

## [Help with Flow - Compare 2 temperatures and send pushover to close windows](https://discourse.nodered.org/t/help-with-flow-compare-2-temperatures-and-send-pushover-to-close-windows/47278)

<div class="topic-metadata">

**Author:** [@m4a0x4](https://discourse.nodered.org/u/m4a0x4)\
**Replies:** 4\
**Last updated:** [17 June 2021 11:56 UTC](https://discourse.nodered.org/t/help-with-flow-compare-2-temperatures-and-send-pushover-to-close-windows/47278 "2021-06-17T11:56:13Z")

</div>

Dear community, I am quite new to node red and already managed some flows. But there is one thing I cannot figure out. I want to compare two temperature readings (one indoor, one outdoor) and then send a pushover (k…

---

## [Unit testing can't load node in my it block?](https://discourse.nodered.org/t/unit-testing-cant-load-node-in-my-it-block/47288)

<div class="topic-metadata">

**Author:** [@zoujagger](https://discourse.nodered.org/u/zoujagger)\
**Replies:** 4\
**Last updated:** [17 June 2021 10:39 UTC](https://discourse.nodered.org/t/unit-testing-cant-load-node-in-my-it-block/47288 "2021-06-17T10:39:33Z")

</div>

hi guys, I've node-red installed globally and from my custom node project i've installed npm install node-red-node-test-helper node-red --save-dev test fail when i run npm test from my custom node project. should b…

---

## [Set MQTT-Nodes LWT message from my configuration node](https://discourse.nodered.org/t/set-mqtt-nodes-lwt-message-from-my-configuration-node/47118)

<div class="topic-metadata">

**Author:** [@da.dude](https://discourse.nodered.org/u/da.dude)\
**Replies:** 4\
**Last updated:** [15 June 2021 15:39 UTC](https://discourse.nodered.org/t/set-mqtt-nodes-lwt-message-from-my-configuration-node/47118 "2021-06-15T15:39:16Z")

</div>

I am working on a Node-RED node that implements a specification for an industry alliance (in case you are interested, it is the Open Industry 4.0 Alliance). The communication sets up on MQTT and the specification descri…

---

## [Make HTML button run custom node JS code](https://discourse.nodered.org/t/make-html-button-run-custom-node-js-code/47170)

<div class="topic-metadata">

**Author:** [@Belfving](https://discourse.nodered.org/u/Belfving)\
**Replies:** 1\
**Last updated:** [15 June 2021 11:11 UTC](https://discourse.nodered.org/t/make-html-button-run-custom-node-js-code/47170 "2021-06-15T11:11:19Z")

</div>

So the problem is quite simple. I have made a custom node that continually saves it's state into the node context. What I want to do is have a button in the edit dialog box that will run a function I have created in the …

---

## [Automate updating nodes to the Flow Library](https://discourse.nodered.org/t/automate-updating-nodes-to-the-flow-library/46869)

<div class="topic-metadata">

**Author:** [@randomname](https://discourse.nodered.org/u/randomname)\
**Replies:** 7\
**Last updated:** [11 June 2021 08:00 UTC](https://discourse.nodered.org/t/automate-updating-nodes-to-the-flow-library/46869 "2021-06-11T08:00:19Z")

</div>

I am the author of the node-red-contrib-openhab3 Flow. I'm using a GitHub Action to build new releases of the npm package and publish it to the npm repository. I'd like to add an extra step to that release-pipeline so it…

---

## [Unit Test calles multiple times done](https://discourse.nodered.org/t/unit-test-calles-multiple-times-done/46991)

<div class="topic-metadata">

**Author:** [@TruFox](https://discourse.nodered.org/u/TruFox)\
**Replies:** 1\
**Last updated:** [10 June 2021 15:38 UTC](https://discourse.nodered.org/t/unit-test-calles-multiple-times-done/46991 "2021-06-10T15:38:08Z")

</div>

Hello, i have a problem with a unit test. The node i develope sends msg in a loop like this: for( let i = 0; i \< array.lenght; i++){ node.send(\[array\[i\], null, null,\]); } Unit Test: it('should get data (Array)…

---

## [Custom icons cannot be used in appearance section](https://discourse.nodered.org/t/custom-icons-cannot-be-used-in-appearance-section/46905)

<div class="topic-metadata">

**Author:** [@antoine-em](https://discourse.nodered.org/u/antoine-em)\
**Replies:** 4\
**Last updated:** [9 June 2021 12:48 UTC](https://discourse.nodered.org/t/custom-icons-cannot-be-used-in-appearance-section/46905 "2021-06-09T12:48:38Z")

</div>

Environment Node-RED version: v1.3.5-git Node.js version: v16.2.0 Darwin 20.5.0 x64 LE I am developing a custom node and have added in the icons folder of the node some svg resources. They are well discovered and f…

---

## [Default config node](https://discourse.nodered.org/t/default-config-node/46773)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 10\
**Last updated:** [8 June 2021 21:47 UTC](https://discourse.nodered.org/t/default-config-node/46773 "2021-06-08T21:47:44Z")

</div>

Hi folks, When you create a config node for the node-red-node-dropbox node, then that config node is automatically selected (in the config dropdown) when a new dropbox node is added to the flow. I would like to achieve…

---

## [Node property resets itself](https://discourse.nodered.org/t/node-property-resets-itself/46866)

<div class="topic-metadata">

**Author:** [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Replies:** 2\
**Last updated:** [8 June 2021 17:02 UTC](https://discourse.nodered.org/t/node-property-resets-itself/46866 "2021-06-08T17:02:49Z")

</div>

Hi, My custom node property resets itself after re-opening it to reconfigure. I am editing it as it is seen in the below image. But if I re-open it after deploying, the Search for property resets itself to All as se…

---

## [DE Anwesenheits Log / Zeit Tracking](https://discourse.nodered.org/t/de-anwesenheits-log-zeit-tracking/46848)

<div class="topic-metadata">

**Author:** [@Floslist](https://discourse.nodered.org/u/Floslist)\
**Replies:** 1\
**Last updated:** [8 June 2021 09:14 UTC](https://discourse.nodered.org/t/de-anwesenheits-log-zeit-tracking/46848 "2021-06-08T09:14:30Z")

</div>

Hey, ich bin Recht Frisch mit Node Red ich würde gerne wie im titel beschrieben einen anwesnheits log / Zeit Tracken node erstellen, wo ich eine Tabelle rausbekomme wann bin ich gekommen, wann bin ich gegangen und wie v…

---

## [HTML - Enable Textbox with Radio Button](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801)

<div class="topic-metadata">

**Author:** [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Replies:** 5\
**Last updated:** [7 June 2021 10:05 UTC](https://discourse.nodered.org/t/html-enable-textbox-with-radio-button/46801 "2021-06-07T10:05:44Z")

</div>

Hi, I would like to enable the textbox according to selected radio button (these are located in node properties box). Normally, I would do this via JQUERY, but I have no idea how can I do this in Node-RED. So in this…

---

## [Event Handler for Node Connection](https://discourse.nodered.org/t/event-handler-for-node-connection/46546)

<div class="topic-metadata">

**Author:** [@hkayan](https://discourse.nodered.org/u/hkayan)\
**Replies:** 7\
**Last updated:** [1 June 2021 13:22 UTC](https://discourse.nodered.org/t/event-handler-for-node-connection/46546 "2021-06-01T13:22:08Z")

</div>

I want to make my node status different when it is not connected to any other node (not a bluetooth connection, just connecting to a node on the flow). However the only event handler I found is 'close'. Is there any even…

---

## [Access Custom Auth Token In Custom Node Server side](https://discourse.nodered.org/t/access-custom-auth-token-in-custom-node-server-side/46507)

<div class="topic-metadata">

**Author:** [@BShashwat](https://discourse.nodered.org/u/BShashwat)\
**Replies:** 0\
**Last updated:** [31 May 2021 12:31 UTC](https://discourse.nodered.org/t/access-custom-auth-token-in-custom-node-server-side/46507 "2021-05-31T12:31:02Z")

</div>

Hi, I have implemented custom authentication for Node-Red and passing the JWT token via. Browser. I want to access this token on the server side Node Js code of my Custom Node, but did not find a way to do it as local s…

---

## [Errores al instalar los componentes de node.js](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244)

<div class="topic-metadata">

**Author:** [@yosep](https://discourse.nodered.org/u/yosep)\
**Replies:** 10\
**Last updated:** [29 May 2021 21:44 UTC](https://discourse.nodered.org/t/errores-al-instalar-los-componentes-de-node-js/46244 "2021-05-29T21:44:31Z")

</div>

errores al instalar los componentes, me sale error en la instalacion de node.js, alguien tiene idea de como solucionarlos? \[edited to add translation\] errors when installing the components, I get an error in the instal…

---

## [How can we use node red to interface with lora modules like ra01 etc](https://discourse.nodered.org/t/how-can-we-use-node-red-to-interface-with-lora-modules-like-ra01-etc/46073)

<div class="topic-metadata">

**Author:** [@Eldho-Abraham-coder](https://discourse.nodered.org/u/Eldho-Abraham-coder)\
**Replies:** 2\
**Last updated:** [29 May 2021 14:53 UTC](https://discourse.nodered.org/t/how-can-we-use-node-red-to-interface-with-lora-modules-like-ra01-etc/46073 "2021-05-29T14:53:58Z")

</div>

this modules normally connects to the spi pins of raspberry pi

---

## [How to use a number value from JSON message published from an MQTT broker in a switch node](https://discourse.nodered.org/t/how-to-use-a-number-value-from-json-message-published-from-an-mqtt-broker-in-a-switch-node/46391)

<div class="topic-metadata">

**Author:** [@weatherkicksass](https://discourse.nodered.org/u/weatherkicksass)\
**Replies:** 3\
**Last updated:** [28 May 2021 09:02 UTC](https://discourse.nodered.org/t/how-to-use-a-number-value-from-json-message-published-from-an-mqtt-broker-in-a-switch-node/46391 "2021-05-28T09:02:09Z")

</div>

Hi all, I am publishing a JSON data from an MQTT broker which I can turn into a JavaScript Object using the JSON node, then I can find the number value in the object array using the debug node and clicking on the "copy …

---

## [Custom node installed but not showing in palette or list of installed modules](https://discourse.nodered.org/t/custom-node-installed-but-not-showing-in-palette-or-list-of-installed-modules/46300)

<div class="topic-metadata">

**Author:** [@mvandenabeele](https://discourse.nodered.org/u/mvandenabeele)\
**Replies:** 9\
**Last updated:** [27 May 2021 19:54 UTC](https://discourse.nodered.org/t/custom-node-installed-but-not-showing-in-palette-or-list-of-installed-modules/46300 "2021-05-27T19:54:36Z")

</div>

Hi I just started making a custom node because I wanted an easy way to interpret Ikea button messages in Node Red. This will be used in Home Assistant. The node/package/code can be found here: https://flows.nodered.org/…

---

## [Trying to create a menu, buttons and actions don't work](https://discourse.nodered.org/t/trying-to-create-a-menu-buttons-and-actions-dont-work/46178)

<div class="topic-metadata">

**Author:** [@Cuprani](https://discourse.nodered.org/u/Cuprani)\
**Replies:** 1\
**Last updated:** [25 May 2021 18:42 UTC](https://discourse.nodered.org/t/trying-to-create-a-menu-buttons-and-actions-dont-work/46178 "2021-05-25T18:42:22Z")

</div>

Can someone please help me with my node? I'm trying to create a menu with 4 buttons. The buttons should change color according to the active button. The buttons should trigger a "show and hide" command for particular …

---

## [Accessing variables in JSON](https://discourse.nodered.org/t/accessing-variables-in-json/46206)

<div class="topic-metadata">

**Author:** [@nacartwright](https://discourse.nodered.org/u/nacartwright)\
**Replies:** 6\
**Last updated:** [25 May 2021 13:06 UTC](https://discourse.nodered.org/t/accessing-variables-in-json/46206 "2021-05-25T13:06:59Z")

</div>

I have a node that I need to build a JSON string but need the payload to be dynamic. The data that I need to use to populate the variables are deep inside another JSON string. I've tried saving my variable data in conte…

---

## [Zigbeetasmota sensor not working](https://discourse.nodered.org/t/zigbeetasmota-sensor-not-working/46080)

<div class="topic-metadata">

**Author:** [@jepe63](https://discourse.nodered.org/u/jepe63)\
**Replies:** 11\
**Last updated:** [22 May 2021 13:07 UTC](https://discourse.nodered.org/t/zigbeetasmota-sensor-not-working/46080 "2021-05-22T13:07:07Z")

</div>

Hi All , this is driving me crazy for a day now , should be simpel , but can't get it to work I'm trying my Zigbee sensor to give a simple message if it is closed or open.Probably i'm doing something wrong …

---

## [Read payload from a specific msg.topic](https://discourse.nodered.org/t/read-payload-from-a-specific-msg-topic/46002)

<div class="topic-metadata">

**Author:** [@SwatCat](https://discourse.nodered.org/u/SwatCat)\
**Replies:** 5\
**Last updated:** [20 May 2021 21:08 UTC](https://discourse.nodered.org/t/read-payload-from-a-specific-msg-topic/46002 "2021-05-20T21:08:29Z")

</div>

Hello, i have a long waiting question. If i have many msg.topics with msg.payload each, how cand i read (with a function block) a msg.payload for a specific msg.topic??

---

## [\[nEw release\] node-red-contrib-sonos-plus](https://discourse.nodered.org/t/new-release-node-red-contrib-sonos-plus/45914)

<div class="topic-metadata">

**Author:** [@hklages](https://discourse.nodered.org/u/hklages)\
**Replies:** 0\
**Last updated:** [19 May 2021 11:44 UTC](https://discourse.nodered.org/t/new-release-node-red-contrib-sonos-plus/45914 "2021-05-19T11:44:54Z")

</div>

I just published 5.1.1 fixing a bug: playing Spotify playlists 5.1.0 had improved the usability in Home Assistant environment (discovery of player). node-red-contrib-sonos-plus A set of Node-RED nodes to control SONO…

---

## [Assigning class instance to msg.payload shows up as class name not object in the debug window](https://discourse.nodered.org/t/assigning-class-instance-to-msg-payload-shows-up-as-class-name-not-object-in-the-debug-window/45893)

<div class="topic-metadata">

**Author:** [@dgoosse](https://discourse.nodered.org/u/dgoosse)\
**Replies:** 8\
**Last updated:** [19 May 2021 11:14 UTC](https://discourse.nodered.org/t/assigning-class-instance-to-msg-payload-shows-up-as-class-name-not-object-in-the-debug-window/45893 "2021-05-19T11:14:55Z")

</div>

Hello :slight\_smile: Assigning class instance to msg.payload in a custom decoder node shows up as class name not a nice object you can drill down in the debug window! Is it normal behaviour as a class instance is also a…

---

## [Node Github template](https://discourse.nodered.org/t/node-github-template/45799)

<div class="topic-metadata">

**Author:** [@nlecaude](https://discourse.nodered.org/u/nlecaude)\
**Replies:** 4\
**Last updated:** [18 May 2021 03:15 UTC](https://discourse.nodered.org/t/node-github-template/45799 "2021-05-18T03:15:28Z")

</div>

Hello, I created a template repo on Github you can use to quickly start a new node: It's not fancy or anything but could be useful, it integrates a sample test too. Let me know what you think !

---

## [Add an var with memory var](https://discourse.nodered.org/t/add-an-var-with-memory-var/45591)

<div class="topic-metadata">

**Author:** [@dimpie](https://discourse.nodered.org/u/dimpie)\
**Replies:** 6\
**Last updated:** [14 May 2021 06:11 UTC](https://discourse.nodered.org/t/add-an-var-with-memory-var/45591 "2021-05-14T06:11:32Z")

</div>

Hello People of node red believers. I am a problem with adding ( sum ) of an memory variable with a fresh variable like following. TotalToday = SaveOpname + TotalToday But is not working ( still get the same sum of th…

---

## [Node.warn help?](https://discourse.nodered.org/t/node-warn-help/45546)

<div class="topic-metadata">

**Author:** [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Replies:** 6\
**Last updated:** [12 May 2021 20:06 UTC](https://discourse.nodered.org/t/node-warn-help/45546 "2021-05-12T20:06:07Z")

</div>

Why doesn't this work? node.warn("Payload= ",msg.payload); In this example msg.payload is a number from 1 to 7.

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

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