# General

**URL:** https://discourse.nodered.org/c/general/7.md?page=283

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

**Page:** 284

---

## [Error Message in Node-Red Version info](https://discourse.nodered.org/t/error-message-in-node-red-version-info/71664)

<div class="topic-metadata">

**Author:** [@JackHenry99](https://discourse.nodered.org/u/JackHenry99)\
**Replies:** 3\
**Last updated:** [4 December 2022 14:16 UTC](https://discourse.nodered.org/t/error-message-in-node-red-version-info/71664 "2022-12-04T14:16:56Z")

</div>

In the attached image, what do the two error messages in the version listing mean?

---

## [Trying to set a payload.name in a function node](https://discourse.nodered.org/t/trying-to-set-a-payload-name-in-a-function-node/71645)

<div class="topic-metadata">

**Author:** [@Mikee1234K](https://discourse.nodered.org/u/Mikee1234K)\
**Replies:** 12\
**Last updated:** [3 December 2022 18:59 UTC](https://discourse.nodered.org/t/trying-to-set-a-payload-name-in-a-function-node/71645 "2022-12-03T18:59:53Z")

</div>

I am setting values in my function: let sync = context.get('sync') || {}; const nodeName = msg.nodeName; sync\[nodeName\] = msg.payload.value; const sync\_array = Object.values(sync); if (sync\_array.length \>= 3) { msg…

---

## [Motion sensor to integrate with wemo smart plug (WSP080)](https://discourse.nodered.org/t/motion-sensor-to-integrate-with-wemo-smart-plug-wsp080/69068)

<div class="topic-metadata">

**Author:** [@nodeBoy816](https://discourse.nodered.org/u/nodeBoy816)\
**Replies:** 23\
**Last updated:** [3 December 2022 15:52 UTC](https://discourse.nodered.org/t/motion-sensor-to-integrate-with-wemo-smart-plug-wsp080/69068 "2022-12-03T15:52:53Z")

</div>

I’m trying to find a motion sensor (or rather collection of sensors - 5 sensors in 5 different rooms) that I could get to turn on a wemo smart plug (WSP080) and then turn it off 30 minutes after the last motion is detect…

---

## [Copy file from Docker to Host (Synology)](https://discourse.nodered.org/t/copy-file-from-docker-to-host-synology/71644)

<div class="topic-metadata">

**Author:** [@My\_Millenium](https://discourse.nodered.org/u/My_Millenium)\
**Replies:** 0\
**Last updated:** [3 December 2022 13:05 UTC](https://discourse.nodered.org/t/copy-file-from-docker-to-host-synology/71644 "2022-12-03T13:05:58Z")

</div>

Hello, I need some help. I have Node-Red running as an instance in ioBroker which is running in a Docker container on my Synology DS. With the node "write file" I have written some data to a file called TEST.txt. In …

---

## [Bug updating global arrays](https://discourse.nodered.org/t/bug-updating-global-arrays/2403)

<div class="topic-metadata">

**Author:** [@blechdom](https://discourse.nodered.org/u/blechdom)\
**Replies:** 5\
**Last updated:** [3 December 2022 13:56 UTC](https://discourse.nodered.org/t/bug-updating-global-arrays/2403 "2022-12-03T13:56:02Z")

</div>

I've been hitting my head against a certain code behavior which I believe\`I've captured in the following flow. I'm trying to do something quite simple. I have two global arrays (flow arrays): current\_array and last\_arr…

---

## [Function node & var definition](https://discourse.nodered.org/t/function-node-var-definition/71492)

<div class="topic-metadata">

**Author:** [@pacmanmt](https://discourse.nodered.org/u/pacmanmt)\
**Replies:** 46\
**Last updated:** [3 December 2022 12:04 UTC](https://discourse.nodered.org/t/function-node-var-definition/71492 "2022-12-03T12:04:52Z")

</div>

I must anticipate that I am not a programmer and most comes from cut & paste from others work. I cannot understand the behavior of a function node I am using (NodeRed 3.0.2 and Monaco editor). The function uses a Case …

---

## [Light go on or off below an certain brightness level](https://discourse.nodered.org/t/light-go-on-or-off-below-an-certain-brightness-level/71015)

<div class="topic-metadata">

**Author:** [@Rellens](https://discourse.nodered.org/u/Rellens)\
**Replies:** 2\
**Last updated:** [3 December 2022 11:15 UTC](https://discourse.nodered.org/t/light-go-on-or-off-below-an-certain-brightness-level/71015 "2022-12-03T11:15:01Z")

</div>

hello, i'm trying to get an flow working. but just don't know how, and tried a lot to get it working. I have an zigbee light dimmer in the bathroom, when showering or have a bath the flow does'nt have to do anything. Th…

---

## [Dynamic chart Label disappears in dashboard](https://discourse.nodered.org/t/dynamic-chart-label-disappears-in-dashboard/71634)

<div class="topic-metadata">

**Author:** [@Switchblade2](https://discourse.nodered.org/u/Switchblade2)\
**Replies:** 2\
**Last updated:** [3 December 2022 09:47 UTC](https://discourse.nodered.org/t/dynamic-chart-label-disappears-in-dashboard/71634 "2022-12-03T09:47:39Z")

</div>

Hi, I'm setting the chart Label (or title) with msg.Lable. It works fine on the first view but it disappears if I move to another dashboard tab and then back again. Any tips on how to make the Label stick? \[ { …

---

## [Check entity state inside function node](https://discourse.nodered.org/t/check-entity-state-inside-function-node/71631)

<div class="topic-metadata">

**Author:** [@sd\_dracula](https://discourse.nodered.org/u/sd_dracula)\
**Replies:** 2\
**Last updated:** [3 December 2022 07:29 UTC](https://discourse.nodered.org/t/check-entity-state-inside-function-node/71631 "2022-12-03T07:29:41Z")

</div>

I have a function node like this: And a home assistant entity like so: I need to add an if/else condition in this function that checks the on/off value of the home assistant entity but not sure how to call it insi…

---

## [Global Context to file](https://discourse.nodered.org/t/global-context-to-file/71217)

<div class="topic-metadata">

**Author:** [@dmac101](https://discourse.nodered.org/u/dmac101)\
**Replies:** 8\
**Last updated:** [2 December 2022 22:29 UTC](https://discourse.nodered.org/t/global-context-to-file/71217 "2022-12-02T22:29:58Z")

</div>

Hi Everyone, I am working on a telemetry project that is using a RPI4 and Node-Red to provide 16 digital inputs, 16 digital outputs and 8 analogue inputs. One of the requirements is to have all of the buttons, status, u…

---

## [Homie convention and Javascript Object](https://discourse.nodered.org/t/homie-convention-and-javascript-object/71621)

<div class="topic-metadata">

**Author:** [@Urs-Eppenberger](https://discourse.nodered.org/u/Urs-Eppenberger)\
**Replies:** 3\
**Last updated:** [2 December 2022 21:31 UTC](https://discourse.nodered.org/t/homie-convention-and-javascript-object/71621 "2022-12-02T21:31:27Z")

</div>

Hello This is a question about the Homie convention and how to put all the data into a Javascript object which follows the Homie convention structure. The question is further down, for those not interested in the backg…

---

## [How does a node send entries to Syslog on a Pi?](https://discourse.nodered.org/t/how-does-a-node-send-entries-to-syslog-on-a-pi/71131)

<div class="topic-metadata">

**Author:** [@Rgrove](https://discourse.nodered.org/u/Rgrove)\
**Replies:** 23\
**Last updated:** [2 December 2022 17:52 UTC](https://discourse.nodered.org/t/how-does-a-node-send-entries-to-syslog-on-a-pi/71131 "2022-12-02T17:52:27Z")

</div>

I have a pi that disappears from the network every day, and when that happens, Syslog is overwhelmed with entries from SNMP nodes that can't connect with their target. The nodes run once per second, and sometimes the Pi…

---

## [Node-red-contrib-chart-image, trouble getting installed](https://discourse.nodered.org/t/node-red-contrib-chart-image-trouble-getting-installed/71615)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 12\
**Last updated:** [2 December 2022 17:49 UTC](https://discourse.nodered.org/t/node-red-contrib-chart-image-trouble-getting-installed/71615 "2022-12-02T17:49:26Z")

</div>

I tried installing the package node-red-contrib-chart-image from the pallet manager, but this failed. So I looked around for solutions. I found, Thank you for the advice, I managed to get it working. I had to do 3 st…

---

## [Trying to add 3 incoming msg.payload.value - and failing](https://discourse.nodered.org/t/trying-to-add-3-incoming-msg-payload-value-and-failing/71620)

<div class="topic-metadata">

**Author:** [@Mikee1234K](https://discourse.nodered.org/u/Mikee1234K)\
**Replies:** 8\
**Last updated:** [2 December 2022 17:48 UTC](https://discourse.nodered.org/t/trying-to-add-3-incoming-msg-payload-value-and-failing/71620 "2022-12-02T17:48:28Z")

</div>

Looks so easy but failing to do it. I have 3 nodes sending values, all I am trying to do is adding them up so I end up with a payload of the sum of the 3 msg.payload.value(s) I thought it was easiest with a function no…

---

## [Node-red-contrib-mongodb4](https://discourse.nodered.org/t/node-red-contrib-mongodb4/71574)

<div class="topic-metadata">

**Author:** [@mrSidX](https://discourse.nodered.org/u/mrSidX)\
**Replies:** 1\
**Last updated:** [2 December 2022 17:14 UTC](https://discourse.nodered.org/t/node-red-contrib-mongodb4/71574 "2022-12-02T17:14:56Z")

</div>

Moving to node-red-contrib-mongodb4 and I'm having issues. I can perform a find operation, but I cannot for the life of me pass in any options like $sort or $limit From a function node, I setup the collection and opera…

---

## [Pasting multiline text into inject node issue](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 2\
**Last updated:** [2 December 2022 16:42 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618 "2022-12-02T16:42:45Z")

</div>

When pasting some multiline text into input node as a string, it seems to be replacing linefeed/CRs with just a plain space. Which is making it tricky to split the text into lines My workaround is to paste into a text …

---

## [How to Restart Flows automaticaly?](https://discourse.nodered.org/t/how-to-restart-flows-automaticaly/71177)

<div class="topic-metadata">

**Author:** [@strbaknxp](https://discourse.nodered.org/u/strbaknxp)\
**Replies:** 6\
**Last updated:** [2 December 2022 15:10 UTC](https://discourse.nodered.org/t/how-to-restart-flows-automaticaly/71177 "2022-12-02T15:10:31Z")

</div>

Hi, I would like to ask, I am running the same flow on more machines (or the same machine more ports), and I would like to automatically update all running instances by actualized flow. It's some way how can I do that? …

---

## [Manipulate Json format before sending in MQTT](https://discourse.nodered.org/t/manipulate-json-format-before-sending-in-mqtt/71588)

<div class="topic-metadata">

**Author:** [@Jhobean](https://discourse.nodered.org/u/Jhobean)\
**Replies:** 6\
**Last updated:** [2 December 2022 14:37 UTC](https://discourse.nodered.org/t/manipulate-json-format-before-sending-in-mqtt/71588 "2022-12-02T14:37:25Z")

</div>

Hi, I'm new in the world of API and json format. I start my first project with some IOT device. I take the value of my Temperature sensor with HTTP Request on Sensecap API. I curently use TagoIO website for my alarm a…

---

## [Port = RED.settings.uiPort - not working](https://discourse.nodered.org/t/port-red-settings-uiport-not-working/71608)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 2\
**Last updated:** [2 December 2022 14:11 UTC](https://discourse.nodered.org/t/port-red-settings-uiport-not-working/71608 "2022-12-02T14:11:38Z")

</div>

I am trying to get the active node-RED port in a function node. I read a lot of topics about this, but in my case this doesn't seem to work. In my settings file, it looks like this: When I make a statement like this …

---

## [Meaning of globals.get("mysql");](https://discourse.nodered.org/t/meaning-of-globals-get-mysql/71597)

<div class="topic-metadata">

**Author:** [@santtu1980](https://discourse.nodered.org/u/santtu1980)\
**Replies:** 2\
**Last updated:** [2 December 2022 11:02 UTC](https://discourse.nodered.org/t/meaning-of-globals-get-mysql/71597 "2022-12-02T11:02:06Z")

</div>

Hi Found that @HarryPottar uses globals.get("mysql"); on function node. MySQL Node Odd ER\_PARSE\_ERROR 5 out of 38,000 records - #10 by HarryPottar Explanation is " loading mysql node globally " ,but what that means and…

---

## [Next Page Nodered UI Table](https://discourse.nodered.org/t/next-page-nodered-ui-table/71591)

<div class="topic-metadata">

**Author:** [@afafirmansyah](https://discourse.nodered.org/u/afafirmansyah)\
**Replies:** 1\
**Last updated:** [2 December 2022 10:21 UTC](https://discourse.nodered.org/t/next-page-nodered-ui-table/71591 "2022-12-02T10:21:58Z")

</div>

what if i only want 10 records in the table, and the rest on the next page?

---

## [Global Context being updated when no global.set executed](https://discourse.nodered.org/t/global-context-being-updated-when-no-global-set-executed/71378)

<div class="topic-metadata">

**Author:** [@Tilerdon](https://discourse.nodered.org/u/Tilerdon)\
**Replies:** 17\
**Last updated:** [2 December 2022 10:21 UTC](https://discourse.nodered.org/t/global-context-being-updated-when-no-global-set-executed/71378 "2022-12-02T10:21:11Z")

</div>

I have a function node which will eventually allow Add/Change/Delete capabilities to my device schedules. (it uses the output of the ui\_form which we have discussed in another thread regarding UTC 00:00 time). I've succ…

---

## [JWT Sign with custom header](https://discourse.nodered.org/t/jwt-sign-with-custom-header/71598)

<div class="topic-metadata">

**Author:** [@flipzz](https://discourse.nodered.org/u/flipzz)\
**Replies:** 1\
**Last updated:** [2 December 2022 09:59 UTC](https://discourse.nodered.org/t/jwt-sign-with-custom-header/71598 "2022-12-02T09:59:45Z")

</div>

Hi, Iam using the node-red-contrib-jwt and it's sign node to create and sign a jwt-token. So far so good. But I need to set a custom header attribute (iss, in the header) in the jwt-token and cannot find how to add it u…

---

## [Unfortunately, no node updates are possible for me](https://discourse.nodered.org/t/unfortunately-no-node-updates-are-possible-for-me/71540)

<div class="topic-metadata">

**Author:** [@HagenLossin](https://discourse.nodered.org/u/HagenLossin)\
**Replies:** 17\
**Last updated:** [2 December 2022 09:42 UTC](https://discourse.nodered.org/t/unfortunately-no-node-updates-are-possible-for-me/71540 "2022-12-02T09:42:25Z")

</div>

Hello everyone! Unfortunately, no node updates are possible for me. Examples: a) node-red-contrib-opcua from 0.2.291 to actuel 0.2.292 b) node-red-dashboard from 3.2.0 auf actuel 3.2.3 It is also not possible to uni…

---

## [ error in the Object node](https://discourse.nodered.org/t/error-in-the-object-node/71599)

<div class="topic-metadata">

**Author:** [@Natan-333](https://discourse.nodered.org/u/Natan-333)\
**Replies:** 1\
**Last updated:** [2 December 2022 09:22 UTC](https://discourse.nodered.org/t/error-in-the-object-node/71599 "2022-12-02T09:22:40Z")

</div>

My bot can translate audio to audio, but I'm having an error in the Object node and I don't know how to solve it, does anyone know how to solve this error?

---

## [JavaScript maybe a flaw in runtime error checking?](https://discourse.nodered.org/t/javascript-maybe-a-flaw-in-runtime-error-checking/71557)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 5\
**Last updated:** [2 December 2022 08:42 UTC](https://discourse.nodered.org/t/javascript-maybe-a-flaw-in-runtime-error-checking/71557 "2022-12-02T08:42:15Z")

</div>

I am very happy to see that the syntax checking in JavaScript, has very much improved over the last year I am using Node-red. Maybe it is not the right place to report this, if so, I would like to hear where I should pl…

---

## [Node for Aqara M2 gateway](https://discourse.nodered.org/t/node-for-aqara-m2-gateway/71601)

<div class="topic-metadata">

**Author:** [@algaillard](https://discourse.nodered.org/u/algaillard)\
**Replies:** 0\
**Last updated:** [2 December 2022 08:35 UTC](https://discourse.nodered.org/t/node-for-aqara-m2-gateway/71601 "2022-12-02T08:35:00Z")

</div>

Hello, I have an Aqara M2 gateaway that monitors aqara sensors. I found nodes for Xiaomi gateway, but it doesn’t connect to my Aqara device. Is there a solution ?

---

## [How to use original Homekit accessories in Node-Red?](https://discourse.nodered.org/t/how-to-use-original-homekit-accessories-in-node-red/71567)

<div class="topic-metadata">

**Author:** [@algaillard](https://discourse.nodered.org/u/algaillard)\
**Replies:** 2\
**Last updated:** [2 December 2022 08:26 UTC](https://discourse.nodered.org/t/how-to-use-original-homekit-accessories-in-node-red/71567 "2022-12-02T08:26:52Z")

</div>

Hello, I found plenty of nodes to simulate a Homekit accessory, but I'm looking for the inverse ; how to integrate an original Homekit accessory in node-Red ? Does it exist ?

---

## [Difference between Previous Data vs Current Data](https://discourse.nodered.org/t/difference-between-previous-data-vs-current-data/71595)

<div class="topic-metadata">

**Author:** [@Jhankhana](https://discourse.nodered.org/u/Jhankhana)\
**Replies:** 1\
**Last updated:** [2 December 2022 07:25 UTC](https://discourse.nodered.org/t/difference-between-previous-data-vs-current-data/71595 "2022-12-02T07:25:58Z")

</div>

Hello There! I need your help. I am trying to get difference between Previous Data and Current Data. I have tried with context node. Now what Happing is It works ok for once only and then I get error. I think I have ma…

---

## [NodeRed in container with Shelly Node?](https://discourse.nodered.org/t/nodered-in-container-with-shelly-node/71423)

<div class="topic-metadata">

**Author:** [@Fr3d3rick83](https://discourse.nodered.org/u/Fr3d3rick83)\
**Replies:** 1\
**Last updated:** [2 December 2022 06:01 UTC](https://discourse.nodered.org/t/nodered-in-container-with-shelly-node/71423 "2022-12-02T06:01:24Z")

</div>

Hi, my NR is running in a Docker container with IP adress + port. Now i just bought some Shelly window2 connectors and the readme of the node says, I should use callback and not pulling. But I have to set a server and a …

[Previous page](https://discourse.nodered.org/c/general/7.md?page=282)

[Next page](https://discourse.nodered.org/c/general/7.md?page=284)
