# General

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

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

**Page:** 625

---

## [CT value from Domoticz to MQTT](https://discourse.nodered.org/t/ct-value-from-domoticz-to-mqtt/38939)

<div class="topic-metadata">

**Author:** [@dheuts](https://discourse.nodered.org/u/dheuts)\
**Replies:** 8\
**Last updated:** [11 January 2021 13:25 UTC](https://discourse.nodered.org/t/ct-value-from-domoticz-to-mqtt/38939 "2021-01-11T13:25:45Z")

</div>

Good morning, I am trying to get the color, brightness and state from a Domoticz virtual device. Whe brightness and state are working, but can't get the color temp working. In the debug node, I see: domoticz/out : ms…

---

## [Analyzing JSON with dynamic number of nodes and updating external systems](https://discourse.nodered.org/t/analyzing-json-with-dynamic-number-of-nodes-and-updating-external-systems/38903)

<div class="topic-metadata">

**Author:** [@binderth](https://discourse.nodered.org/u/binderth)\
**Replies:** 6\
**Last updated:** [11 January 2021 12:21 UTC](https://discourse.nodered.org/t/analyzing-json-with-dynamic-number-of-nodes-and-updating-external-systems/38903 "2021-01-11T12:21:53Z")

</div>

Sorry, if I'm asking some basic stuff. I'm just starting with Node-Red and here's my use case: I take an JSON, which can have a dynamic number of nodes (\>= 0), and I'd like to analyse the JSON and update external system…

---

## [Flows lost after power loss](https://discourse.nodered.org/t/flows-lost-after-power-loss/38776)

<div class="topic-metadata">

**Author:** [@lukeyboytas1](https://discourse.nodered.org/u/lukeyboytas1)\
**Replies:** 8\
**Last updated:** [11 January 2021 11:09 UTC](https://discourse.nodered.org/t/flows-lost-after-power-loss/38776 "2021-01-11T11:09:57Z")

</div>

When I build a flow, and I leave the pi turned off for a while (Day or more), I turn it back on and the flow is gone.. any help/advice. New to NodeRED btw luke

---

## [Wasserstandswarnung](https://discourse.nodered.org/t/wasserstandswarnung/38716)

<div class="topic-metadata">

**Author:** [@hansanne](https://discourse.nodered.org/u/hansanne)\
**Replies:** 10\
**Last updated:** [11 January 2021 10:15 UTC](https://discourse.nodered.org/t/wasserstandswarnung/38716 "2021-01-11T10:15:47Z")

</div>

Hallo alle zusammen, hier mal mein Flow: \[{"id":"5009699a.127438","type":"ui\_text","z":"57f19ea.5a2956","group":"ae53f947.6d7ae8","order":3,"width":"1","height":"1","name":"","label":"","format":"{{msg.payload}}","layo…

---

## [Node-red-contrib-smartmeter 0.3.1 - Hardware](https://discourse.nodered.org/t/node-red-contrib-smartmeter-0-3-1-hardware/38829)

<div class="topic-metadata">

**Author:** [@maru2648](https://discourse.nodered.org/u/maru2648)\
**Replies:** 5\
**Last updated:** [11 January 2021 05:51 UTC](https://discourse.nodered.org/t/node-red-contrib-smartmeter-0-3-1-hardware/38829 "2021-01-11T05:51:51Z")

</div>

Hey Guys, I want to build my own smart meter for power consumption from one device. I found the node-red-contrib-smartmeter 0.3.1 and wanted to know with which components this works. Here is the selection I made and wo…

---

## [Message objects](https://discourse.nodered.org/t/message-objects/38934)

<div class="topic-metadata">

**Author:** [@Bigbloke](https://discourse.nodered.org/u/Bigbloke)\
**Replies:** 1\
**Last updated:** [11 January 2021 04:57 UTC](https://discourse.nodered.org/t/message-objects/38934 "2021-01-11T04:57:47Z")

</div>

Hi, I’m new here, have been using your resources here for 2 years, but haven’t wanted to bother anyone over my issues but I am currently stumped. My TPLink HS100s use a Boolean true/false for off and on. Works great on…

---

## [SSE Client with digest auth](https://discourse.nodered.org/t/sse-client-with-digest-auth/38874)

<div class="topic-metadata">

**Author:** [@injector22](https://discourse.nodered.org/u/injector22)\
**Replies:** 4\
**Last updated:** [11 January 2021 01:01 UTC](https://discourse.nodered.org/t/sse-client-with-digest-auth/38874 "2021-01-11T01:01:56Z")

</div>

I'm trying to set up an SSE client to receive data, but the device requires digest auth. I can easily auth using the standard http node but not when using the SSE client node. Does anyone know how I can pass the sessi…

---

## [Unexpected indentifier in simple function](https://discourse.nodered.org/t/unexpected-indentifier-in-simple-function/38922)

<div class="topic-metadata">

**Author:** [@loyaltolex](https://discourse.nodered.org/u/loyaltolex)\
**Replies:** 5\
**Last updated:** [10 January 2021 22:53 UTC](https://discourse.nodered.org/t/unexpected-indentifier-in-simple-function/38922 "2021-01-10T22:53:05Z")

</div>

I am trying to write a simple function to toggle based on receipt of of a specific payload (a button press from a zigbeetomqtt capture of a sonoff button) if (msg.payload=="single"){ if (cur\_state==0){ cur\_state=1…

---

## [Ui\_time\_scheduler question](https://discourse.nodered.org/t/ui-time-scheduler-question/38872)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 16\
**Last updated:** [10 January 2021 22:03 UTC](https://discourse.nodered.org/t/ui-time-scheduler-question/38872 "2021-01-10T22:03:16Z")

</div>

Installed the ui time scheduler node and was playing around trying various things. One question... is there any way to discern which timer is firing? If there are three schedules I don't see anything in the output that t…

---

## [\[Reference\] Optimising Node-RED](https://discourse.nodered.org/t/reference-optimising-node-red/38321)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 17\
**Last updated:** [10 January 2021 21:47 UTC](https://discourse.nodered.org/t/reference-optimising-node-red/38321 "2021-01-10T21:47:45Z")

</div>

Hi all, a little topic for discussion :smiley: preparing us for a new year of Node-RED fun. How do we optimise the running of Node-RED? This is mainly aimed at people using a Pi but should be generally useful for anyon…

---

## [Can't get functionGlobalContext to work using docker](https://discourse.nodered.org/t/cant-get-functionglobalcontext-to-work-using-docker/38869)

<div class="topic-metadata">

**Author:** [@nemi](https://discourse.nodered.org/u/nemi)\
**Replies:** 1\
**Last updated:** [10 January 2021 21:26 UTC](https://discourse.nodered.org/t/cant-get-functionglobalcontext-to-work-using-docker/38869 "2021-01-10T21:26:49Z")

</div>

Hi people, I am trying to add the npm module strtime so that I can use it inside the function node but I am epically failing. I am also using docker, here is what I am doing : Dockerfile : FROM nodered/node-red:1.2.7 …

---

## [Inject node for Deconz RaspBee II for a lidl bulb](https://discourse.nodered.org/t/inject-node-for-deconz-raspbee-ii-for-a-lidl-bulb/38863)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 6\
**Last updated:** [10 January 2021 21:24 UTC](https://discourse.nodered.org/t/inject-node-for-deconz-raspbee-ii-for-a-lidl-bulb/38863 "2021-01-10T21:24:48Z")

</div>

Hello i have a Deconz RaspBee II which is connected and running! i try to do a inject node to change the bulb. A message output looks like this 9.1.2021, 20:59:35node: b396287a.a52c48 msg.payload : Object object …

---

## [Node-red-node-mysql ER\_SECURE\_TRANSPORT\_REQUIRED](https://discourse.nodered.org/t/node-red-node-mysql-er-secure-transport-required/38926)

<div class="topic-metadata">

**Author:** [@luismiguelbp](https://discourse.nodered.org/u/luismiguelbp)\
**Replies:** 0\
**Last updated:** [10 January 2021 21:02 UTC](https://discourse.nodered.org/t/node-red-node-mysql-er-secure-transport-required/38926 "2021-01-10T21:02:52Z")

</div>

Hi, can anyone help, I'm trying to connect to a MySQL instance that has SSL configured, and receive this error message on the Node node-red-node-mysql. "Error: ER\_SECURE\_TRANSPORT\_REQUIRED: Connections using insecure t…

---

## [Padding zeros in a function](https://discourse.nodered.org/t/padding-zeros-in-a-function/4302)

<div class="topic-metadata">

**Author:** [@Beothuk](https://discourse.nodered.org/u/Beothuk)\
**Replies:** 9\
**Last updated:** [10 January 2021 20:49 UTC](https://discourse.nodered.org/t/padding-zeros-in-a-function/4302 "2021-01-10T20:49:24Z")

</div>

I am using a slider to generate numbers from 0 to 150. I need all numbers to be generated with preceeding zeros if they are less than 3 digits. So 10 would be 010, 8 would be 008,100 remains unchanged. I am sure there is…

---

## [Worldmap feedback doesn't work for me](https://discourse.nodered.org/t/worldmap-feedback-doesnt-work-for-me/38901)

<div class="topic-metadata">

**Author:** [@hoylet](https://discourse.nodered.org/u/hoylet)\
**Replies:** 6\
**Last updated:** [10 January 2021 17:33 UTC](https://discourse.nodered.org/t/worldmap-feedback-doesnt-work-for-me/38901 "2021-01-10T17:33:05Z")

</div>

Hi I'm using worldmap and I have displayed an area with an associated context menu, containing buttons. onclick successfully invokes the delMarker, however for one of the buttons I would like feedback to be invoked, so…

---

## [Node-red-contrib-ccu - Missing devices](https://discourse.nodered.org/t/node-red-contrib-ccu-missing-devices/38913)

<div class="topic-metadata">

**Author:** [@Pinky](https://discourse.nodered.org/u/Pinky)\
**Replies:** 0\
**Last updated:** [10 January 2021 17:25 UTC](https://discourse.nodered.org/t/node-red-contrib-ccu-missing-devices/38913 "2021-01-10T17:25:40Z")

</div>

Hi there, I installed node-red on a vm and added the package node-red-contrib-ccu to connect the node-red instance with my homematic ccu. Worked fine so far. After installing the nodes for the ccu showed up and I was a…

---

## [I want to get notified when the website data changes](https://discourse.nodered.org/t/i-want-to-get-notified-when-the-website-data-changes/38900)

<div class="topic-metadata">

**Author:** [@NipunKumar](https://discourse.nodered.org/u/NipunKumar)\
**Replies:** 1\
**Last updated:** [10 January 2021 16:20 UTC](https://discourse.nodered.org/t/i-want-to-get-notified-when-the-website-data-changes/38900 "2021-01-10T16:20:04Z")

</div>

Hello everyone I want to get notification via email whenever the website start selling that product again. Website have userid and password to login. I am trying nbrowser node but its not working. can someone please …

---

## [Nbrowser wait time](https://discourse.nodered.org/t/nbrowser-wait-time/6071)

<div class="topic-metadata">

**Author:** [@M0CRT](https://discourse.nodered.org/u/M0CRT)\
**Replies:** 3\
**Last updated:** [10 January 2021 15:48 UTC](https://discourse.nodered.org/t/nbrowser-wait-time/6071 "2021-01-10T15:48:26Z")

</div>

Hello All I'm using nbrowser, node-red-contrib-nbrowser, to automate a login process and task on a website. Everything is going great, however I need to wait for a flow variable to be set and need to pause the nbrowser…

---

## [Checking variable state in a function loop](https://discourse.nodered.org/t/checking-variable-state-in-a-function-loop/38843)

<div class="topic-metadata">

**Author:** [@injector22](https://discourse.nodered.org/u/injector22)\
**Replies:** 7\
**Last updated:** [10 January 2021 14:28 UTC](https://discourse.nodered.org/t/checking-variable-state-in-a-function-loop/38843 "2021-01-10T14:28:36Z")

</div>

I have a GPIO that keeps bouncing on/off which I'm thinking is due to inference but before I go ripping out cabling I wanted to try and fix it via software. Before I get started let me just say I know about debouncing on…

---

## [Error "WebSocket error: Error: connect ENETUNREACH" every 10 seconds](https://discourse.nodered.org/t/error-websocket-error-error-connect-enetunreach-every-10-seconds/38753)

<div class="topic-metadata">

**Author:** [@4fc8042246ffd6745bb8](https://discourse.nodered.org/u/4fc8042246ffd6745bb8)\
**Replies:** 7\
**Last updated:** [10 January 2021 14:04 UTC](https://discourse.nodered.org/t/error-websocket-error-error-connect-enetunreach-every-10-seconds/38753 "2021-01-10T14:04:17Z")

</div>

Hello all, since my last deploy I have an error that is displayed in the debug-view every 10 seconds. It doesent belong to the new flow. A restart of NodeRed and a restart of the Raspberry did not bring any improvement…

---

## [How to pass msg.path + msg.filename to file-in node?](https://discourse.nodered.org/t/how-to-pass-msg-path-msg-filename-to-file-in-node/38886)

<div class="topic-metadata">

**Author:** [@bird](https://discourse.nodered.org/u/bird)\
**Replies:** 2\
**Last updated:** [10 January 2021 11:52 UTC](https://discourse.nodered.org/t/how-to-pass-msg-path-msg-filename-to-file-in-node/38886 "2021-01-10T11:52:08Z")

</div>

hi The msg.path and msg.filename are transferred to the file-in node. I want to set "msg.path" + "/" + "msg.filename" as the filename of the file-in node. I tried {{{msg.path}}} and {{msg.path}} but it didn't work. T…

---

## [Modbus data to CSV file - NAN error occurs](https://discourse.nodered.org/t/modbus-data-to-csv-file-nan-error-occurs/36181)

<div class="topic-metadata">

**Author:** [@Energycharges](https://discourse.nodered.org/u/Energycharges)\
**Replies:** 16\
**Last updated:** [10 January 2021 10:37 UTC](https://discourse.nodered.org/t/modbus-data-to-csv-file-nan-error-occurs/36181 "2021-01-10T10:37:17Z")

</div>

While working with Modbus data to csv file , For every 5 minutes Interval injecting data from Modbus to csv file . Receiving data for parameters from Modbus to csv file , for a random interval NAN error occurs . Cannot …

---

## [Node-red, docker, compose and auto update](https://discourse.nodered.org/t/node-red-docker-compose-and-auto-update/38881)

<div class="topic-metadata">

**Author:** [@bce](https://discourse.nodered.org/u/bce)\
**Replies:** 2\
**Last updated:** [10 January 2021 10:25 UTC](https://discourse.nodered.org/t/node-red-docker-compose-and-auto-update/38881 "2021-01-10T10:25:08Z")

</div>

i have node-red on docker via compose. i have watchtower running for the updates. now there has been an update for node-red and all flows are gone, but also the tamplets. how can I avoid this now, don't want to set th…

---

## [MQTT Connection lost by node-red](https://discourse.nodered.org/t/mqtt-connection-lost-by-node-red/38740)

<div class="topic-metadata">

**Author:** [@matschie](https://discourse.nodered.org/u/matschie)\
**Replies:** 18\
**Last updated:** [10 January 2021 10:18 UTC](https://discourse.nodered.org/t/mqtt-connection-lost-by-node-red/38740 "2021-01-10T10:18:20Z")

</div>

Hello everyone! I've been reading a lot lately since i am diving deeper and deeper into the darkness of Home Automation. I do have some experience on the mc-programming (mainly arduino and esps). I am currently using …

---

## [Keep only both end lines from a csv file](https://discourse.nodered.org/t/keep-only-both-end-lines-from-a-csv-file/38871)

<div class="topic-metadata">

**Author:** [@Neuvidor](https://discourse.nodered.org/u/Neuvidor)\
**Replies:** 1\
**Last updated:** [9 January 2021 23:15 UTC](https://discourse.nodered.org/t/keep-only-both-end-lines-from-a-csv-file/38871 "2021-01-09T23:15:26Z")

</div>

Dear all, I have a LEGRAND EcoCompteur which provide a log1.csv file over a http link http://192.168.1.xxx/log1.csv Each line give daily counters index. A new line is added each day at the end of this file meaning that…

---

## [Switch Output to Inject Message](https://discourse.nodered.org/t/switch-output-to-inject-message/38867)

<div class="topic-metadata">

**Author:** [@enque](https://discourse.nodered.org/u/enque)\
**Replies:** 11\
**Last updated:** [9 January 2021 22:59 UTC](https://discourse.nodered.org/t/switch-output-to-inject-message/38867 "2021-01-09T22:59:34Z")

</div>

Please bear with me, I am brand new to Node Red. I am trying to send either of the inject messages at the bottom based on the switch outputs, but since the inject object has no inlets I cannot do this. What objects can…

---

## [Compare 5 values](https://discourse.nodered.org/t/compare-5-values/38810)

<div class="topic-metadata">

**Author:** [@Tobiasn2005](https://discourse.nodered.org/u/Tobiasn2005)\
**Replies:** 9\
**Last updated:** [9 January 2021 22:40 UTC](https://discourse.nodered.org/t/compare-5-values/38810 "2021-01-09T22:40:44Z")

</div>

Hi everyone, In my family we use the HA app which can track the amount of steps per day. I can read these values in Node-Red but how can I compare these amounts/values/steps of 5 different entities and send back the hig…

---

## [Display image if value true](https://discourse.nodered.org/t/display-image-if-value-true/38824)

<div class="topic-metadata">

**Author:** [@warnert](https://discourse.nodered.org/u/warnert)\
**Replies:** 4\
**Last updated:** [9 January 2021 22:25 UTC](https://discourse.nodered.org/t/display-image-if-value-true/38824 "2021-01-09T22:25:25Z")

</div>

I have build a thermostat and I would like to display a little flame on the dashboard if the heater is on.I now have used node-red-contribute-led that displays a green led when the flame is on, but it would be nicer if i…

---

## [Stopping deploy because of missing nodetype](https://discourse.nodered.org/t/stopping-deploy-because-of-missing-nodetype/38868)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 2\
**Last updated:** [9 January 2021 22:25 UTC](https://discourse.nodered.org/t/stopping-deploy-because-of-missing-nodetype/38868 "2021-01-09T22:25:11Z")

</div>

Hello i have done a import - thinking it would work nicely but it did not - so all the import i deleted. but since when deply is pressed i got the error of a missing server Die Flows wurden aufgrund fehlender Nodetyp…

---

## [Node-Red will not complete loading with projects enabled](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822)

<div class="topic-metadata">

**Author:** [@flaver](https://discourse.nodered.org/u/flaver)\
**Replies:** 19\
**Last updated:** [9 January 2021 21:47 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822 "2021-01-09T21:47:28Z")

</div>

Node-Red is Installed with all defaults. Normal operation until "projects" is enabled. Then when starting I get: Graph showing "Loading Nodes 1/59 that stops at 59/59" Error: Failed to load ‘node-red/comment’ Normal…

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

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