# General

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

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

**Page:** 630

---

## [Problem with a json string inside a json](https://discourse.nodered.org/t/problem-with-a-json-string-inside-a-json/38339)

<div class="topic-metadata">

**Author:** [@villah](https://discourse.nodered.org/u/villah)\
**Replies:** 4\
**Last updated:** [1 January 2021 23:08 UTC](https://discourse.nodered.org/t/problem-with-a-json-string-inside-a-json/38339 "2021-01-01T23:08:01Z")

</div>

Hello, I have writting a small flow to play Plex playlist on my TV with HA but I am unable to send this json object: { "entity\_id": "media\_player.plex\_plex\_for\_lg\_lg\_oled65c9pla", "media\_content\_type": "PLAYLIST", "…

---

## [Problems with Codesys =\> Modbus =\> Node-RED - Data types and conversions](https://discourse.nodered.org/t/problems-with-codesys-modbus-node-red-data-types-and-conversions/38303)

<div class="topic-metadata">

**Author:** [@Speedriff](https://discourse.nodered.org/u/Speedriff)\
**Replies:** 3\
**Last updated:** [2 January 2021 06:20 UTC](https://discourse.nodered.org/t/problems-with-codesys-modbus-node-red-data-types-and-conversions/38303 "2021-01-02T06:20:32Z")

</div>

Hello everyone, I'm trying to create a nice Node-RED Dashboard visualization for my Codesys programm. Codesys runs on a rasperry pi, also node-RED. So, I have a MODBUS TCP connection from Node-RED to codesys and I want…

---

## [Send sms with node-RED](https://discourse.nodered.org/t/send-sms-with-node-red/13630)

<div class="topic-metadata">

**Author:** [@jason\_tien](https://discourse.nodered.org/u/jason_tien)\
**Replies:** 9\
**Last updated:** [2 January 2021 02:27 UTC](https://discourse.nodered.org/t/send-sms-with-node-red/13630 "2021-01-02T02:27:21Z")

</div>

Hi everyone. I would like to use node-RED send the sms to my phone. My sms device is Maestro. I write the format send sms to Maestro and they just display this. I did not receive any message on my phone. This is m…

---

## [Reading data from file](https://discourse.nodered.org/t/reading-data-from-file/38364)

<div class="topic-metadata">

**Author:** [@T0mmy](https://discourse.nodered.org/u/T0mmy)\
**Replies:** 2\
**Last updated:** [1 January 2021 20:58 UTC](https://discourse.nodered.org/t/reading-data-from-file/38364 "2021-01-01T20:58:26Z")

</div>

Hi I am reading data from a CSV file and shipping it into influx. I have made a flow that is working, it's a bit ruff and I could use some help finishen up. My flow looks like this. My problem is that this setup is…

---

## [Creating a custom dropdown using html](https://discourse.nodered.org/t/creating-a-custom-dropdown-using-html/38370)

<div class="topic-metadata">

**Author:** [@Zbrooklyn](https://discourse.nodered.org/u/Zbrooklyn)\
**Replies:** 0\
**Last updated:** [1 January 2021 20:25 UTC](https://discourse.nodered.org/t/creating-a-custom-dropdown-using-html/38370 "2021-01-01T20:25:50Z")

</div>

I created a custom HTML custom button using a template mode it works great now I want to do the same thing but with a dropdown selection here s the HTML code I used for the button \<style\> :root { --myHighlight:u…

---

## [Global context performance and best practices](https://discourse.nodered.org/t/global-context-performance-and-best-practices/38155)

<div class="topic-metadata">

**Author:** [@johncohn](https://discourse.nodered.org/u/johncohn)\
**Replies:** 11\
**Last updated:** [1 January 2021 19:12 UTC](https://discourse.nodered.org/t/global-context-performance-and-best-practices/38155 "2021-01-01T19:12:28Z")

</div>

Hi folks… I have a question about using the global context.… I have a large-ish state vector which is an array of 55 elements each with a subarray of about seven elements that defines various characteristics of a 10 mete…

---

## [Device to trigger flows based on power level threshold?](https://discourse.nodered.org/t/device-to-trigger-flows-based-on-power-level-threshold/35964)

<div class="topic-metadata">

**Author:** [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Replies:** 44\
**Last updated:** [1 January 2021 17:53 UTC](https://discourse.nodered.org/t/device-to-trigger-flows-based-on-power-level-threshold/35964 "2021-01-01T17:53:56Z")

</div>

Does there exist a device that has a Node-RED integration/node that can trigger flows based on going above or below power consumption thresholds (volts or amps or watts or whatever - I'm not very knowledgeable about elec…

---

## [Moment Node: using a flow or global variable for the adjustment value](https://discourse.nodered.org/t/moment-node-using-a-flow-or-global-variable-for-the-adjustment-value/38347)

<div class="topic-metadata">

**Author:** [@cdk222](https://discourse.nodered.org/u/cdk222)\
**Replies:** 9\
**Last updated:** [1 January 2021 17:40 UTC](https://discourse.nodered.org/t/moment-node-using-a-flow-or-global-variable-for-the-adjustment-value/38347 "2021-01-01T17:40:04Z")

</div>

I have been struggling for weeks on this issue so have finally decided to reach out for help with the Moment Node. I am currently configuring reticulation station start times in NodeRed. I have a function node feeding i…

---

## [Node-red-contrib-rpi-433 ... Assistance?](https://discourse.nodered.org/t/node-red-contrib-rpi-433-assistance/38340)

<div class="topic-metadata">

**Author:** [@Tomadoggy](https://discourse.nodered.org/u/Tomadoggy)\
**Replies:** 2\
**Last updated:** [1 January 2021 16:50 UTC](https://discourse.nodered.org/t/node-red-contrib-rpi-433-assistance/38340 "2021-01-01T16:50:09Z")

</div>

Is anyone using the above mentioned rpi-433-sniffer (and listener) nodes? I have been battling this for quite some time as I believe that if I can get this working...it will be a much better/more robust solution for my …

---

## [How to use variables on a ha-wait-until node timeout parameter?](https://discourse.nodered.org/t/how-to-use-variables-on-a-ha-wait-until-node-timeout-parameter/38356)

<div class="topic-metadata">

**Author:** [@flowingcarving](https://discourse.nodered.org/u/flowingcarving)\
**Replies:** 7\
**Last updated:** [1 January 2021 16:08 UTC](https://discourse.nodered.org/t/how-to-use-variables-on-a-ha-wait-until-node-timeout-parameter/38356 "2021-01-01T16:08:20Z")

</div>

I have a subflow, which has a ha-wait-until node in it. When I put variable notation (maybe this is the correct term?), I get only one output for the node. When I put numbers in, I get two output nodes as expected. With…

---

## [Door automation with tts to sonos](https://discourse.nodered.org/t/door-automation-with-tts-to-sonos/38252)

<div class="topic-metadata">

**Author:** [@TheDanishDude](https://discourse.nodered.org/u/TheDanishDude)\
**Replies:** 16\
**Last updated:** [1 January 2021 15:33 UTC](https://discourse.nodered.org/t/door-automation-with-tts-to-sonos/38252 "2021-01-01T15:33:36Z")

</div>

Hi and thanks for the membership. Im a total newbee at node-red. I am trying to get my automations from within Home Assistant to Node Red Seen alot of youtube an google but I am struggling with one.. Is there a kin…

---

## [A way to reset multiple "wait until" nodes elegantly?](https://discourse.nodered.org/t/a-way-to-reset-multiple-wait-until-nodes-elegantly/38352)

<div class="topic-metadata">

**Author:** [@flowingcarving](https://discourse.nodered.org/u/flowingcarving)\
**Replies:** 2\
**Last updated:** [1 January 2021 12:49 UTC](https://discourse.nodered.org/t/a-way-to-reset-multiple-wait-until-nodes-elegantly/38352 "2021-01-01T12:49:28Z")

</div>

Let's say I have 20 "wait until" nodes, and I'd like to reset all of them. Is there other way to reset all of them other than sending msg.reset to all of them? My flows become very messy when I need to draw 20 connection…

---

## [Docker permissions](https://discourse.nodered.org/t/docker-permissions/1097)

<div class="topic-metadata">

**Author:** [@bsense](https://discourse.nodered.org/u/bsense)\
**Replies:** 2\
**Last updated:** [1 January 2021 09:52 UTC](https://discourse.nodered.org/t/docker-permissions/1097 "2021-01-01T09:52:39Z")

</div>

Dear experts, I run the dockerized version of node-red in a lubuntu 18.04LTS. In order to have storage persistance i run it the container as: $ sudo docker run -it -p 1880:1880 -v /home/bsense/docker-persistent/nodered…

---

## [How to send data from function flow to a template flow](https://discourse.nodered.org/t/how-to-send-data-from-function-flow-to-a-template-flow/38343)

<div class="topic-metadata">

**Author:** [@sabayke](https://discourse.nodered.org/u/sabayke)\
**Replies:** 1\
**Last updated:** [1 January 2021 00:27 UTC](https://discourse.nodered.org/t/how-to-send-data-from-function-flow-to-a-template-flow/38343 "2021-01-01T00:27:42Z")

</div>

hi i have this project I want to create an HTML page which can display values in real time my problem is that when I do {{msg.payload}} in the flow template the page does not work anymore

---

## [Node-red-contrib-google-home-notify no longer working](https://discourse.nodered.org/t/node-red-contrib-google-home-notify-no-longer-working/38233)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 2\
**Last updated:** [31 December 2020 16:29 UTC](https://discourse.nodered.org/t/node-red-contrib-google-home-notify-no-longer-working/38233 "2020-12-31T16:29:07Z")

</div>

Not sure what happened but after an update I get TypeError: Googletts is not a function. When I look into the google-home-notify code I see the require but when I look into the google-tts-api I've noticed that it has cha…

---

## [How to change the payload data value](https://discourse.nodered.org/t/how-to-change-the-payload-data-value/38055)

<div class="topic-metadata">

**Author:** [@marconr9](https://discourse.nodered.org/u/marconr9)\
**Replies:** 10\
**Last updated:** [31 December 2020 15:33 UTC](https://discourse.nodered.org/t/how-to-change-the-payload-data-value/38055 "2020-12-31T15:33:30Z")

</div>

I have question how can I change the data value to in sec to hour,min,sec thank you

---

## [Master slave setup with two conditions](https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285)

<div class="topic-metadata">

**Author:** [@Enrico](https://discourse.nodered.org/u/Enrico)\
**Replies:** 3\
**Last updated:** [31 December 2020 15:29 UTC](https://discourse.nodered.org/t/master-slave-setup-with-two-conditions/38285 "2020-12-31T15:29:13Z")

</div>

Hello together I'm pretty new with node red and all this stuff, so please have this in mind.. :wink: I want to set up a smart home solution with an rpi4 and a zigbee controller. What I am looking for at the moment is …

---

## [Perform action when flow is changed](https://discourse.nodered.org/t/perform-action-when-flow-is-changed/38324)

<div class="topic-metadata">

**Author:** [@EcoMan](https://discourse.nodered.org/u/EcoMan)\
**Replies:** 2\
**Last updated:** [31 December 2020 14:59 UTC](https://discourse.nodered.org/t/perform-action-when-flow-is-changed/38324 "2020-12-31T14:59:01Z")

</div>

Hi, I have a node-red instance running both on cloud and on-prem, running multiple flows. The on-prem is an emergency solution for a connectivity-loss event. What I'm looking for is a way to have an event trigger once…

---

## [Multiple outputs , best way](https://discourse.nodered.org/t/multiple-outputs-best-way/38319)

<div class="topic-metadata">

**Author:** [@Jotarod](https://discourse.nodered.org/u/Jotarod)\
**Replies:** 3\
**Last updated:** [31 December 2020 13:02 UTC](https://discourse.nodered.org/t/multiple-outputs-best-way/38319 "2020-12-31T13:02:19Z")

</div>

Dear all, As you can see below, I am trying to get multiple outputs without success, Anyone could tell me what I am doing wrong? As you can see I am triying with different options but no I dont achieve it... I should…

---

## [Need help with curl](https://discourse.nodered.org/t/need-help-with-curl/38279)

<div class="topic-metadata">

**Author:** [@bigmac5753](https://discourse.nodered.org/u/bigmac5753)\
**Replies:** 26\
**Last updated:** [31 December 2020 12:00 UTC](https://discourse.nodered.org/t/need-help-with-curl/38279 "2020-12-31T12:00:13Z")

</div>

I have this curl command that I need to somehow run in node-red: curl -X POST --data-urlencode "url={{url}}" http://{{host}}:8080/youtube-dl/q I know it's best to use http rather than exec but can't figure out how to d…

---

## [Telegram Group Name](https://discourse.nodered.org/t/telegram-group-name/38277)

<div class="topic-metadata">

**Author:** [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Replies:** 4\
**Last updated:** [31 December 2020 10:22 UTC](https://discourse.nodered.org/t/telegram-group-name/38277 "2020-12-31T10:22:28Z")

</div>

Hi @knolleary, sorry for the inconvenience. I manage the group on Telegram of "Node-Red Italia". We have reached 500 users and I am wondering if I need to have approval from you and the Node-red Team (I have already look…

---

## [A "reverse" switch?](https://discourse.nodered.org/t/a-reverse-switch/38304)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 6\
**Last updated:** [30 December 2020 22:02 UTC](https://discourse.nodered.org/t/a-reverse-switch/38304 "2020-12-30T22:02:10Z")

</div>

I have 2 different payloads coming into a node. They have different topics. How do I switch what comes out of the output based on a property? So if a property = 1, then output the payload with topic 1, if 2, then out…

---

## [How to split data from node-red in mysql](https://discourse.nodered.org/t/how-to-split-data-from-node-red-in-mysql/38299)

<div class="topic-metadata">

**Author:** [@farahfijud](https://discourse.nodered.org/u/farahfijud)\
**Replies:** 4\
**Last updated:** [30 December 2020 20:58 UTC](https://discourse.nodered.org/t/how-to-split-data-from-node-red-in-mysql/38299 "2020-12-30T20:58:12Z")

</div>

I have 2 input from mqtt and i want to split the data/value into 2 column in mysql. For example i want to separate the value of temperature as 29.70 and humidity as 84.00. But based on my result the 2 column shown the sa…

---

## [\[SOLVED\] Mqtt Dashboard - Vetru](https://discourse.nodered.org/t/solved-mqtt-dashboard-vetru/38105)

<div class="topic-metadata">

**Author:** [@EnesE](https://discourse.nodered.org/u/EnesE)\
**Replies:** 6\
**Last updated:** [30 December 2020 20:22 UTC](https://discourse.nodered.org/t/solved-mqtt-dashboard-vetru/38105 "2020-12-30T20:22:35Z")

</div>

Hello, i tried to use the App "MQTT Dashboard" of Vetru Google Play link I can publish messages to the MQTT Server and also receive messages (i tried it with the Toggle) but i don't know how i have to format the incomi…

---

## [How can I force MQTT disconnect and reconnect on Deploy](https://discourse.nodered.org/t/how-can-i-force-mqtt-disconnect-and-reconnect-on-deploy/38292)

<div class="topic-metadata">

**Author:** [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Replies:** 3\
**Last updated:** [30 December 2020 20:17 UTC](https://discourse.nodered.org/t/how-can-i-force-mqtt-disconnect-and-reconnect-on-deploy/38292 "2020-12-30T20:17:47Z")

</div>

I've had a weird "cold start" vs. "warm start" problem that has bothered me for a long time, but I think I may have finally tracked it down. It looks like if I deploy my flow the MQTT connection remains and the Retained…

---

## [Conversion of date value to number (16:08:00 =\> 58,080s)](https://discourse.nodered.org/t/conversion-of-date-value-to-number-1600-58-080s/38288)

<div class="topic-metadata">

**Author:** [@FrantaD](https://discourse.nodered.org/u/FrantaD)\
**Replies:** 2\
**Last updated:** [30 December 2020 20:08 UTC](https://discourse.nodered.org/t/conversion-of-date-value-to-number-1600-58-080s/38288 "2020-12-30T20:08:08Z")

</div>

Hi, I need to convert time from DATE format to NUMBER format (number of seconds). I will try to explain with a picture (the image is simulated using input). Please help create a code that: convert DATE to STRING (t…

---

## [Throttle/rbe combination question](https://discourse.nodered.org/t/throttle-rbe-combination-question/38282)

<div class="topic-metadata">

**Author:** [@duaw](https://discourse.nodered.org/u/duaw)\
**Replies:** 4\
**Last updated:** [30 December 2020 16:37 UTC](https://discourse.nodered.org/t/throttle-rbe-combination-question/38282 "2020-12-30T16:37:49Z")

</div>

Dear all, I have incoming data (e.g. power from a washing machine) at a certain rate (e.g. 1/ 30 sec). I store it in a database (influx). Sometimes the values do not change over some time, then successive data is all c…

---

## [Modbus TCP IP a variable?](https://discourse.nodered.org/t/modbus-tcp-ip-a-variable/38290)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 1\
**Last updated:** [30 December 2020 16:22 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-a-variable/38290 "2020-12-30T16:22:27Z")

</div>

I'm using Modbus TCP. Can the client IP be a variable?

---

## [Nodered\_pfc8574 addresses too restrictive in UI settings](https://discourse.nodered.org/t/nodered-pfc8574-addresses-too-restrictive-in-ui-settings/38289)

<div class="topic-metadata">

**Author:** [@AaronPurpleRidout](https://discourse.nodered.org/u/AaronPurpleRidout)\
**Replies:** 0\
**Last updated:** [30 December 2020 15:48 UTC](https://discourse.nodered.org/t/nodered-pfc8574-addresses-too-restrictive-in-ui-settings/38289 "2020-12-30T15:48:56Z")

</div>

I am a noob tying to use https://flows.nodered.org/node/nodered\_pfc8574 to control 3 relay boards but the addresses are 0x14, 0x15, 0x16 not 0x38 & 0x39 that the UI settings allow to be set from the drop down combo box. …

---

## [New request while a previous one is processing](https://discourse.nodered.org/t/new-request-while-a-previous-one-is-processing/38225)

<div class="topic-metadata">

**Author:** [@drauber](https://discourse.nodered.org/u/drauber)\
**Replies:** 10\
**Last updated:** [30 December 2020 15:02 UTC](https://discourse.nodered.org/t/new-request-while-a-previous-one-is-processing/38225 "2020-12-30T15:02:08Z")

</div>

I set up a flow that receives a token via telegram to make a GET on an API, which keeps looping until a certain condition is true and responds to the telegram with the result received. The problem is that if there is mo…

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

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