Text node not displaying title and payload same time


Hey guys.
I am a bit perplexed on my UI text node. I have a Text node that doesn't display both things that I have set. So I have a MQTT message that gets put into json then i filter out only a name of the MQTT. It then splits off and changes to a time stamp and the other one sends the name of the message to the text node.
In the text node I have the label set to {{msg.payload2}} then in the Value i have put {{msg.payload1}}.
When I deploy. It never displays both of them at a time. I know I have them set right because I can remove the link between label and then the value will always show up. If i remove the link between the value the label will always show up. But if I have both of them linked to the same txt node it will not display both of them.
Am I doing something wrong that I don't understand? Or is this a limitation of the text node?

Below is displayed of my flow.



two things

  1. provide a copy of your flow so people can look at it.
  2. you are sending one msg to both change nodes - what are you doing in them?


The Text node displays whatever is in the last message it receives. As @zenofmud says you have not posted the flow so it is difficult to be certain but I suspect you are sending it the label in one message and the text in another. You need to put them both into one message and pass that to the text node.



Here is the flow but @Colin you pretty much answered it. I knew that it would display the last thing sent it to it but I thought the Label and the Vaule would be seperate from one another. if they are not seperate then it would explain why the Label always gets displayed even if I send 2 things as the time stamp would be recieved a few microseconds after due to more processing time of nodes

[{"id":"4256a624.bca368","type":"tab","label":"IOT Firmware Managment","disabled":false,"info":""},{"id":"9e91a090.63af6","type":"mqtt in","z":"4256a624.bca368","name":"","topic":"domoticz/out","qos":"2","broker":"a4eef001.c9406","x":150,"y":160,"wires":[["a14a5bd0.234d88"]]},{"id":"9307d0b5.7572c","type":"function","z":"4256a624.bca368","name":"Filter out name","func":"return { payload: msg.payload.name }\n ","outputs":1,"noerr":0,"x":480,"y":160,"wires":[["b5d8cdf1.ecd01","160dfcca.748753"]]},{"id":"a14a5bd0.234d88","type":"json","z":"4256a624.bca368","name":"","property":"payload","action":"obj","pretty":true,"x":310,"y":160,"wires":[["9307d0b5.7572c"]]},{"id":"b5d8cdf1.ecd01","type":"change","z":"4256a624.bca368","name":"Change to Timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["87f8aeb0.b4931","7df079d1.fdf398"]]},{"id":"87f8aeb0.b4931","type":"moment","z":"4256a624.bca368","name":"","topic":"","input":"payload","inputType":"msg","inTz":"Europe/London","adjAmount":"0","adjType":"hours","adjDir":"add","format":"DD-MM-YY hh:mm:ss","locale":"en_GB","output":"payload1","outputType":"msg","outTz":"Europe/London","x":960,"y":100,"wires":[["28101b49.269124","f4eb5656.57bad8"]]},{"id":"f4eb5656.57bad8","type":"ui_text","z":"4256a624.bca368","group":"77b8538a.d9e3fc","order":0,"width":0,"height":0,"name":"Test","label":"{{msg.payload2}}","format":"{{msg.payload1}}","layout":"row-spread","x":950,"y":160,"wires":[]},{"id":"160dfcca.748753","type":"change","z":"4256a624.bca368","name":"Change to payload2","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":160,"wires":[["f4eb5656.57bad8","7df079d1.fdf398"]]},{"id":"7df079d1.fdf398","type":"debug","z":"4256a624.bca368","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":920,"y":260,"wires":[]},{"id":"28101b49.269124","type":"ui_text","z":"4256a624.bca368","group":"77b8538a.d9e3fc","order":0,"width":0,"height":0,"name":"Test","label":"","format":"{{msg.payload1}}","layout":"row-spread","x":1150,"y":100,"wires":[]},{"id":"a4eef001.c9406","type":"mqtt-broker","broker":"","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":15,"cleansession":true,"willQos":"0","birthQos":"0"},{"id":"77b8538a.d9e3fc","type":"ui_group","z":"","name":"Last Reported","tab":"600f3e67.161b","disp":true,"width":"6","collapse":false},{"id":"600f3e67.161b","type":"ui_tab","z":"","name":"IOT Management ","icon":"router","order":"7"}]



you could just leave the name where it was, and use a change node to set msg.payload.ts to timestamp - then in the ui_text node set label to {{payload.name}} and value to {{payload.ts}}



I was able to get it working. I took the change node of the timestamp added another change and set msg.topic to msg.payload then they both get passed through and sent in the same message to the text node :slight_smile:
Thanks guy