# General

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

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

**Page:** 622

---

## [Homekit-Service node: Invalid payload type: number](https://discourse.nodered.org/t/homekit-service-node-invalid-payload-type-number/18356)

<div class="topic-metadata">

**Author:** [@Eervi](https://discourse.nodered.org/u/Eervi)\
**Replies:** 28\
**Last updated:** [16 January 2021 20:18 UTC](https://discourse.nodered.org/t/homekit-service-node-invalid-payload-type-number/18356 "2021-01-16T20:18:06Z")

</div>

I don´t why but I always have someting wrong with relays. Now my LED Window Xmas light is always on. How can I make make it ok? Off an On \[{"id":"36278cb4.91f734","type":"tab","label":"Keittio","disabled":false,"info":"…

---

## [Mocha, npm test - Error: Timeout of 2000ms exceeded](https://discourse.nodered.org/t/mocha-npm-test-error-timeout-of-2000ms-exceeded/39031)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 2\
**Last updated:** [16 January 2021 18:46 UTC](https://discourse.nodered.org/t/mocha-npm-test-error-timeout-of-2000ms-exceeded/39031 "2021-01-16T18:46:01Z")

</div>

I'm coming to grips with npm test (mocha) with my node: node-red-contrib-mytimeout (github dev-test branch). Since I'm just starting I'm learning about mocha and building tests. There's a lot that I don't understand. For…

---

## [Function for calculating value that changes with date](https://discourse.nodered.org/t/function-for-calculating-value-that-changes-with-date/39214)

<div class="topic-metadata">

**Author:** [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Replies:** 4\
**Last updated:** [16 January 2021 17:16 UTC](https://discourse.nodered.org/t/function-for-calculating-value-that-changes-with-date/39214 "2021-01-16T17:16:29Z")

</div>

My goal is to have NR update the cost per kWh based on the schedule that has been published by my utility provider. Currently they have published a pdf that shows the $/kWh for time periods through 2025. I would like t…

---

## [Switch on a light with and AND condition](https://discourse.nodered.org/t/switch-on-a-light-with-and-and-condition/39201)

<div class="topic-metadata">

**Author:** [@mauog](https://discourse.nodered.org/u/mauog)\
**Replies:** 5\
**Last updated:** [16 January 2021 17:03 UTC](https://discourse.nodered.org/t/switch-on-a-light-with-and-and-condition/39201 "2021-01-16T17:03:17Z")

</div>

Hello, I was trying to do an automation that switch on and off a light according to this simple rules: Swithc on the light if is is dark (between sunset and sunrise) AND Switch on the light if in a specific interval …

---

## [Node-red-node-pi-gpiod localhost connection refused, try this](https://discourse.nodered.org/t/node-red-node-pi-gpiod-localhost-connection-refused-try-this/39226)

<div class="topic-metadata">

**Author:** [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Replies:** 8\
**Last updated:** [16 January 2021 14:23 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpiod-localhost-connection-refused-try-this/39226 "2021-01-16T14:23:35Z")

</div>

Just thought id leave this here as i had some trouble with it: If you are trying to use node-red-node-pi-gpiod and you are getting an error that the connection on localhost was refused although the daemon is running try…

---

## [Can't open 127.0.0.1:1880 in Browser](https://discourse.nodered.org/t/cant-open-127-0-0-1-1880-in-browser/39224)

<div class="topic-metadata">

**Author:** [@123456789](https://discourse.nodered.org/u/123456789)\
**Replies:** 9\
**Last updated:** [16 January 2021 14:03 UTC](https://discourse.nodered.org/t/cant-open-127-0-0-1-1880-in-browser/39224 "2021-01-16T14:03:11Z")

</div>

Hello everyone! I've been working on a project for a couple of months now and for two days now I'm unable to open my project in browser. My Terminal tells me everything is connected but my browser just won't open Node …

---

## [Disadvantages for some google accounts to work with nodered + NORA](https://discourse.nodered.org/t/disadvantages-for-some-google-accounts-to-work-with-nodered-nora/39229)

<div class="topic-metadata">

**Author:** [@nager](https://discourse.nodered.org/u/nager)\
**Replies:** 0\
**Last updated:** [16 January 2021 13:46 UTC](https://discourse.nodered.org/t/disadvantages-for-some-google-accounts-to-work-with-nodered-nora/39229 "2021-01-16T13:46:32Z")

</div>

Good afternoon colleagues, I hope you are excellent and first of all, I want to congratulate @andrei-tatar for the great job he has done with the NORA service. This message is to tell you something that is happening to m…

---

## [Node-red-contrib-re-postgres does not work on android-termux](https://discourse.nodered.org/t/node-red-contrib-re-postgres-does-not-work-on-android-termux/39165)

<div class="topic-metadata">

**Author:** [@Lorenzo](https://discourse.nodered.org/u/Lorenzo)\
**Replies:** 4\
**Last updated:** [16 January 2021 10:26 UTC](https://discourse.nodered.org/t/node-red-contrib-re-postgres-does-not-work-on-android-termux/39165 "2021-01-16T10:26:57Z")

</div>

Morning, I'm using an architecture based on node-red and postgresql to be used indifferently for various platforms: windows, raspberry, cloud and android (termux). On android-termux the postgresql db works, but on node-…

---

## [Microbit bluetooth](https://discourse.nodered.org/t/microbit-bluetooth/39221)

<div class="topic-metadata">

**Author:** [@Alejandromartinf](https://discourse.nodered.org/u/Alejandromartinf)\
**Replies:** 1\
**Last updated:** [16 January 2021 08:53 UTC](https://discourse.nodered.org/t/microbit-bluetooth/39221 "2021-01-16T08:53:36Z")

</div>

Hello community. I have been working with microbits for a Sort time and now i am doing a project for the university. It consist to create a IoT net using microbits and node red. I have spent some datos trying to Conne…

---

## [Read data file with non local path](https://discourse.nodered.org/t/read-data-file-with-non-local-path/39179)

<div class="topic-metadata">

**Author:** [@Gaberiel](https://discourse.nodered.org/u/Gaberiel)\
**Replies:** 4\
**Last updated:** [15 January 2021 22:39 UTC](https://discourse.nodered.org/t/read-data-file-with-non-local-path/39179 "2021-01-15T22:39:53Z")

</div>

Hello...I need a function to read the content of a file that has a different path (it's located in app online), the path is similar to this "data:text/plain;base64,c2FsdXQgICAuLmplIHN1aXMgSGFmc2EgQXJhYmJhdGU=", the 'fil…

---

## [Parsing repeated incoming data](https://discourse.nodered.org/t/parsing-repeated-incoming-data/39159)

<div class="topic-metadata">

**Author:** [@bkenobi](https://discourse.nodered.org/u/bkenobi)\
**Replies:** 7\
**Last updated:** [15 January 2021 20:24 UTC](https://discourse.nodered.org/t/parsing-repeated-incoming-data/39159 "2021-01-15T20:24:46Z")

</div>

I'm new to NR so this has probably been asked/answered many times. If so and there is a sticky I've missed, I apologize and hope someone will direct me to the right thread. High level question: If I have data coming i…

---

## [Writing CSV files to Azure DataLake](https://discourse.nodered.org/t/writing-csv-files-to-azure-datalake/39183)

<div class="topic-metadata">

**Author:** [@cverster](https://discourse.nodered.org/u/cverster)\
**Replies:** 4\
**Last updated:** [15 January 2021 20:21 UTC](https://discourse.nodered.org/t/writing-csv-files-to-azure-datalake/39183 "2021-01-15T20:21:19Z")

</div>

Hi there! I'm trying to write a basic CSV to our Azure Data Lake using NodeRed. I do a SQL read, then transform the data into a CSV, and use a function to covnert it into the correct format. So my flow runs: Inject -\> …

---

## [How can I toggle a group of lights (that don't go out of sync)](https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284)

<div class="topic-metadata">

**Author:** [@GoBooth](https://discourse.nodered.org/u/GoBooth)\
**Replies:** 17\
**Last updated:** [15 January 2021 20:16 UTC](https://discourse.nodered.org/t/how-can-i-toggle-a-group-of-lights-that-dont-go-out-of-sync/38284 "2021-01-15T20:16:14Z")

</div>

Hi Guys, as the title states, I'm trying to do something very simple, and it's ultimately what my goal is. I created a flow that is very simple for just 2 lights, this would be a pain if I was trying to do this for 3 lig…

---

## [Help with formatting Moment Node Output](https://discourse.nodered.org/t/help-with-formatting-moment-node-output/39032)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 18\
**Last updated:** [15 January 2021 19:31 UTC](https://discourse.nodered.org/t/help-with-formatting-moment-node-output/39032 "2021-01-15T19:31:52Z")

</div>

Guys, Taking a reading in through MQTT and trying to reformat the time into Sydney Australia format with date and time DD/MM/YY HH:MM (AM/PM Format) Here is the debug output of the MQTT in The first one is with no …

---

## [OPENSSL ERROR on OPC UA Client Node](https://discourse.nodered.org/t/openssl-error-on-opc-ua-client-node/39188)

<div class="topic-metadata">

**Author:** [@YehoosHuua](https://discourse.nodered.org/u/YehoosHuua)\
**Replies:** 0\
**Last updated:** [15 January 2021 16:44 UTC](https://discourse.nodered.org/t/openssl-error-on-opc-ua-client-node/39188 "2021-01-15T16:44:41Z")

</div>

hi guys, I'm having a problem with OPC UA Client Nodes I am running them (the Node-RED and OPC UA Server) in the same PC. now in my old PC it works just fine, but I have a new PC and having this as the error in the log…

---

## [How to handle arrays and manage null indices (Brewfather)](https://discourse.nodered.org/t/how-to-handle-arrays-and-manage-null-indices-brewfather/39181)

<div class="topic-metadata">

**Author:** [@cleggton](https://discourse.nodered.org/u/cleggton)\
**Replies:** 0\
**Last updated:** [15 January 2021 14:46 UTC](https://discourse.nodered.org/t/how-to-handle-arrays-and-manage-null-indices-brewfather/39181 "2021-01-15T14:46:53Z")

</div>

Hi there, First time on the forum, and a newbie on node-red, though having some success by trawling the forum. I am trying to get some data from an API (brewfather) and pass that to sensors on home assistant. The API…

---

## [How to draw the shape of a plant in nodered](https://discourse.nodered.org/t/how-to-draw-the-shape-of-a-plant-in-nodered/39178)

<div class="topic-metadata">

**Author:** [@oussama55](https://discourse.nodered.org/u/oussama55)\
**Replies:** 3\
**Last updated:** [15 January 2021 14:20 UTC](https://discourse.nodered.org/t/how-to-draw-the-shape-of-a-plant-in-nodered/39178 "2021-01-15T14:20:21Z")

</div>

Hi guys, i wish you everyone a wonderful day. i have an issue in drawing the shape of a plant(with its roots so it can look a little bit real hhhh) in node red so i can represent it in the dashboard. The whole item of…

---

## [An alarm table from Modbus](https://discourse.nodered.org/t/an-alarm-table-from-modbus/39160)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 2\
**Last updated:** [15 January 2021 13:39 UTC](https://discourse.nodered.org/t/an-alarm-table-from-modbus/39160 "2021-01-15T13:39:36Z")

</div>

I'm pulling in my alarm bits (8 of them) from modbus. Each bit represents a different fault (so there are 8 possible faults). Any combination of these bits may turn on at a time. if I have 2 faults, 2 messages will be…

---

## [Automatic update of Flows on a 2nd machine?](https://discourse.nodered.org/t/automatic-update-of-flows-on-a-2nd-machine/39143)

<div class="topic-metadata">

**Author:** [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Replies:** 2\
**Last updated:** [15 January 2021 12:50 UTC](https://discourse.nodered.org/t/automatic-update-of-flows-on-a-2nd-machine/39143 "2021-01-15T12:50:19Z")

</div>

I wrote an NR application that manages a Photovoltaic installation. I also installed it at a friend's house that has almost the same inverter. For the flow updates, I do it in the following way: I stop Node Red I mak…

---

## [Uninstalling node-red-contrib-ui-time-scheduler fails](https://discourse.nodered.org/t/uninstalling-node-red-contrib-ui-time-scheduler-fails/38637)

<div class="topic-metadata">

**Author:** [@adi-dev](https://discourse.nodered.org/u/adi-dev)\
**Replies:** 6\
**Last updated:** [15 January 2021 10:36 UTC](https://discourse.nodered.org/t/uninstalling-node-red-contrib-ui-time-scheduler-fails/38637 "2021-01-15T10:36:06Z")

</div>

Hi, when I try to remove npm remove node-red-contrib-ui-time-scheduler in (home)/.node-red it fails: 0 info it worked if it ends with ok 1 verbose cli \[ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 ver…

---

## [Recommend resources for learning JavaScript for Node-RED applications?](https://discourse.nodered.org/t/recommend-resources-for-learning-javascript-for-node-red-applications/39137)

<div class="topic-metadata">

**Author:** [@adamelli](https://discourse.nodered.org/u/adamelli)\
**Replies:** 4\
**Last updated:** [15 January 2021 09:56 UTC](https://discourse.nodered.org/t/recommend-resources-for-learning-javascript-for-node-red-applications/39137 "2021-01-15T09:56:05Z")

</div>

I have a basic foundation of C++ from a course taken in college, and more recent practical deals with Arduino. While exploring and learning Node-RED, it occurred to me that a textbook or course would help. I first wonde…

---

## [Send and response with serial](https://discourse.nodered.org/t/send-and-response-with-serial/39003)

<div class="topic-metadata">

**Author:** [@Sturgeon](https://discourse.nodered.org/u/Sturgeon)\
**Replies:** 6\
**Last updated:** [15 January 2021 09:00 UTC](https://discourse.nodered.org/t/send-and-response-with-serial/39003 "2021-01-15T09:00:47Z")

</div>

Good day! I want to do communication node-red (raspbery 3+) with arudino using rs485 protocol and have some questions. I can send and receive messages through the serial port node. It is very easy with node-red. But I…

---

## [Switch node Compare 2 keys](https://discourse.nodered.org/t/switch-node-compare-2-keys/39166)

<div class="topic-metadata">

**Author:** [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Replies:** 5\
**Last updated:** [15 January 2021 08:39 UTC](https://discourse.nodered.org/t/switch-node-compare-2-keys/39166 "2021-01-15T08:39:12Z")

</div>

Hi, Lets asume a simple setup of an inject button, a switch statement and a debug (for output). The inject button injects a simple json: {"key1": "valueA", "key2": "valueA"} Now I want to validate in the switch node …

---

## [Add an object to a payload](https://discourse.nodered.org/t/add-an-object-to-a-payload/39077)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 7\
**Last updated:** [13 January 2021 22:08 UTC](https://discourse.nodered.org/t/add-an-object-to-a-payload/39077 "2021-01-13T22:08:47Z")

</div>

How do I add an object to a payload? Here is what I have \[{"id":"d221c2c7.dcf32","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"d92f539e.01a78","type":"inject","z":"d221c2c7.dcf32","name":"create faul…

---

## [TCP client 'mapping'](https://discourse.nodered.org/t/tcp-client-mapping/39169)

<div class="topic-metadata">

**Author:** [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Replies:** 0\
**Last updated:** [15 January 2021 08:15 UTC](https://discourse.nodered.org/t/tcp-client-mapping/39169 "2021-01-15T08:15:23Z")

</div>

hello! I have a set-up in which I like route traffic from several TCP clients. Node-Red will be the 'server' or listener. The clients B,C,D are sending their status every second. All the statusses should reach client A…

---

## [Hi friends, new to this forum](https://discourse.nodered.org/t/hi-friends-new-to-this-forum/39168)

<div class="topic-metadata">

**Author:** [@Gia123](https://discourse.nodered.org/u/Gia123)\
**Replies:** 1\
**Last updated:** [15 January 2021 07:31 UTC](https://discourse.nodered.org/t/hi-friends-new-to-this-forum/39168 "2021-01-15T07:31:20Z")

</div>

Hi there, I'm new to this forum. Hope I'm in the right place Thanks!

---

## [Homeassistant/NodeRed palettes problems](https://discourse.nodered.org/t/homeassistant-nodered-palettes-problems/39152)

<div class="topic-metadata">

**Author:** [@TheDanishDude](https://discourse.nodered.org/u/TheDanishDude)\
**Replies:** 4\
**Last updated:** [14 January 2021 21:00 UTC](https://discourse.nodered.org/t/homeassistant-nodered-palettes-problems/39152 "2021-01-14T21:00:01Z")

</div>

Hi. Im runing NodeRed in Homeassistant on a RPI4 with ssd. And I am trying to install this palette, but it keeps coming up with errors. this is what the log says.: 2021-01-14T19:45:43.321Z Install : node-red-contrib-…

---

## [Trigger node question about "reset"](https://discourse.nodered.org/t/trigger-node-question-about-reset/39157)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [14 January 2021 20:31 UTC](https://discourse.nodered.org/t/trigger-node-question-about-reset/39157 "2021-01-14T20:31:27Z")

</div>

Say I have this flow - as an example: \[{"id":"20773d9f.d36e6a","type":"inject","z":"68e3655f.b606b4","name":"Normal thing","props":\[{"p":"payload"},{"p":"topic","vt":"str"}\],"repeat":"","crontab":"","once":false,"onceDe…

---

## [Looking for help with referencing object values](https://discourse.nodered.org/t/looking-for-help-with-referencing-object-values/39096)

<div class="topic-metadata">

**Author:** [@BenMtl](https://discourse.nodered.org/u/BenMtl)\
**Replies:** 16\
**Last updated:** [14 January 2021 18:04 UTC](https://discourse.nodered.org/t/looking-for-help-with-referencing-object-values/39096 "2021-01-14T18:04:04Z")

</div>

Hi, am very new to node-red and js .. getting the following from an mqtt input and trying to access the valuse in a js function to create an sql statment to post them into sqlite database with the same field names. {"t…

---

## [HA entity msg.payload options?](https://discourse.nodered.org/t/ha-entity-msg-payload-options/39134)

<div class="topic-metadata">

**Author:** [@appleslices](https://discourse.nodered.org/u/appleslices)\
**Replies:** 0\
**Last updated:** [14 January 2021 17:11 UTC](https://discourse.nodered.org/t/ha-entity-msg-payload-options/39134 "2021-01-14T17:11:10Z")

</div>

Here is my basic question: How do I find the payload options an entity will receive in home assistant? As I stated above, I am using home assistant to control all of my devices and have the node red add-on installed for…

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

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