I am trying to perform something as below,
read and extract value --> either it is lower then or grater then or in between certain value using switch node--> in between certain value then Status ok using change node --> combine 2 string using combine node --> split to give numbers before string -->change node ((parts.index+1) & ": " & payload) --> Join-Automatic -->displayed using text.
but second string doesn't come on second line. SS of the flow and result displayed on the dashboard have been attached below.
Kindly guide me how can I print the next string on next line on dashboard
[{"id":"613c3bec.69fca4","type":"tab","label":"Flow 1"},{"id":"e54c93fe.6ff87","type":"change","z":"613c3bec.69fca4","name":"set topic to agg1","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg1","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"Agg2: Status:OK","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":500,"wires":[["2886ab01.99ebd4","e4fe4043.532:1"]]},{"id":"5c70c3b0.a3e27c","type":"change","z":"613c3bec.69fca4","name":"set topic to agg1","rules":[{"t":"set","p":"topic","pt":"msg","to":"Agg1","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"Agg1:Status OK","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":280,"wires":[["4c198664.9e13c8","e4fe4043.532"]]},{"id":"9912ee40.c4b21","type":"change","z":"613c3bec.69fca4","name":"Prepend line number","rules":[{"t":"set","p":"payload","pt":"msg","to":"(parts.index+1) & \": \" & payload","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":260,"wires":[["cb68d31f.f8b4e","550e6260.c93e9c"]]},{"id":"e4fe4043.532","type":"combine","z":"613c3bec.69fca4","name":"","triggers":"1,0","inputs":2,"timeseries":false,"waitall":false,"reset":false,"x":940,"y":340,"wires":[["74f84b0f.d5e724"]]},{"id":"4c198664.9e13c8","type":"debug","z":"613c3bec.69fca4","name":"","active":true,"console":"false","xaxis":"_time","complete":"false","x":990,"y":60,"wires":[]},{"id":"2886ab01.99ebd4","type":"debug","z":"613c3bec.69fca4","name":"","active":true,"console":"false","xaxis":"_time","complete":"false","x":1030,"y":580,"wires":[]},{"id":"608f6c08.c056e4","type":"debug","z":"613c3bec.69fca4","name":"","active":true,"console":"false","xaxis":"_time","complete":"false","x":1270,"y":560,"wires":[]},{"id":"b3b7c1f7.c88e","type":"extract parameter","z":"613c3bec.69fca4","name":"Agg1_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg1_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"te977db91a139c\",\"variableName\":\"Agg1_Current_Weight\"}","parameter":"Agg1_Current_Weight","x":400,"y":240,"wires":[["149e5837.4befb8","c7906a0c.b0bba8"]]},{"id":"f73d3e48.14b6c","type":"extract parameter","z":"613c3bec.69fca4","name":"Agg2_Current_Weight","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg2_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspect\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variable\":\"tf977db91a139d\",\"variableName\":\"Agg2_Current_Weight\"}","parameter":"Agg2_Current_Weight","x":400,"y":400,"wires":[["b55467f3.7db4a8","cd90a03f.2a5c4"]]},{"id":"cb68d31f.f8b4e","type":"join","z":"613c3bec.69fca4","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","timeout":"","count":"","x":1330,"y":260,"wires":[["c675673a.49a9a8","60b728ac.56da78"]]},{"id":"38358e09.88c4f2","type":"read timeseries","z":"613c3bec.69fca4","name":"All 6 var read","topic":"1a655a707b4a445a98eb4f4e516b02a0/BatchMix_Current_Weight/Agg1_Current_Weight,Agg2_Current_Weight,Agg3_Current_Weight,Agg4_Current_Weight,Bitumen_Current_Weight,Filler_Current_Weight","topicLabel":"BatchMix/BatchMix_Current_Weight/Agg1_Current_Weight,Agg2_Current_Weight,Agg3_Current_Weight,Agg4_Current_Weight,Bitumen_Current_Weight,Filler_Current_Weight","topicData":"{\"asset\":\"1a655a707b4a445a98eb4f4e516b02a0\",\"assetName\":\"BatchMix\",\"aspects\":[{\"aspectId\":\"cde53ccd1ff84624af95951d5dc41188\",\"aspectName\":\"BatchMix_Current_Weight\",\"variables\":[{\"variableId\":\"te977db91a139c\",\"name\":\"Agg1_Current_Weight\"},{\"variableId\":\"tf977db91a139d\",\"name\":\"Agg2_Current_Weight\"},{\"variableId\":\"tg977db91a139e\",\"name\":\"Agg3_Current_Weight\"},{\"variableId\":\"th977db91a139f\",\"name\":\"Agg4_Current_Weight\"},{\"variableId\":\"ti977db91a13a0\",\"name\":\"Bitumen_Current_Weight\"},{\"variableId\":\"tj977db91a13a1\",\"name\":\"Filler_Current_Weight\"}]}]}","assetName":"","selectedTopics":"","period":"60","offset":"0","mode":"lastValue","from":"","datetimepickerFrom":"","to":"","datetimepickerTo":"","timezoneoffset":0,"x":210,"y":320,"wires":[["b3b7c1f7.c88e","f73d3e48.14b6c"]]},{"id":"74f84b0f.d5e724","type":"split","z":"613c3bec.69fca4","name":"","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"topic","x":1090,"y":340,"wires":[["9912ee40.c4b21","608f6c08.c056e4"]]},{"id":"b55467f3.7db4a8","type":"switch","z":"613c3bec.69fca4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"100","vt":"str"},{"t":"gt","v":"400","vt":"str"},{"t":"btwn","v":"101","vt":"num","v2":"399","v2t":"num"}],"checkall":"true","outputs":3,"x":590,"y":400,"wires":[["302e8f4f.590eb"],["50fa3045.2b0fa"],["e54c93fe.6ff87"]]},{"id":"c7906a0c.b0bba8","type":"switch","z":"613c3bec.69fca4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"100","vt":"str"},{"t":"gt","v":"400","vt":"str"},{"t":"btwn","v":"101","vt":"num","v2":"399","v2t":"num"}],"checkall":"true","outputs":3,"x":610,"y":240,"wires":[["404d05c5.fc3b3c"],["92fd9fe4.bf237"],["5c70c3b0.a3e27c"]]},{"id":"50fa3045.2b0fa","type":"template","z":"613c3bec.69fca4","name":"template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Value at higher stage Agg2: {{payload}} !","output":"str","x":780,"y":440,"wires":[[]]},{"id":"302e8f4f.590eb","type":"template","z":"613c3bec.69fca4","name":"template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Value at low stage Agg2: {{payload}} !","output":"str","x":760,"y":380,"wires":[[]]},{"id":"92fd9fe4.bf237","type":"template","z":"613c3bec.69fca4","name":"template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Value at higher stage Agg1: {{payload}} !","output":"str","x":780,"y":220,"wires":[[]]},{"id":"404d05c5.fc3b3c","type":"template","z":"613c3bec.69fca4","name":"template","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Value at low stage Agg1: {{payload}} !","output":"str","x":780,"y":180,"wires":[[]]},{"id":"4fe31d3b.57f984","type":"ui_button","z":"613c3bec.69fca4","name":"","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"passthru":false,"label":"check","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"Current_Weight","powerMode":false,"x":70,"y":320,"wires":[["38358e09.88c4f2"]]},{"id":"149e5837.4befb8","type":"ui_text","z":"613c3bec.69fca4","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"name":"","label":"Agg1_Current_Weight","format":"{{msg.payload}}","layout":"row-center","x":640,"y":120,"wires":[]},{"id":"c675673a.49a9a8","type":"ui_text","z":"613c3bec.69fca4","group":"70709469.2c1bcc","order":0,"width":"5","singleBrowser":false,"height":"2","name":"","label":"","format":"{{msg.payload}}","layout":"row-spread","x":1450,"y":260,"wires":[]},{"id":"cd90a03f.2a5c4","type":"ui_text","z":"613c3bec.69fca4","group":"70709469.2c1bcc","order":0,"width":0,"singleBrowser":false,"height":0,"name":"","label":"Agg2_Current_Weight","format":"{{msg.payload}}","layout":"row-center","x":640,"y":560,"wires":[]},{"id":"550e6260.c93e9c","type":"debug","z":"613c3bec.69fca4","name":"","active":true,"console":"false","xaxis":"_time","complete":"false","x":1270,"y":140,"wires":[]},{"id":"60b728ac.56da78","type":"debug","z":"613c3bec.69fca4","name":"","active":true,"console":"false","xaxis":"_time","complete":"false","x":1410,"y":360,"wires":[]},{"id":"70709469.2c1bcc","type":"ui_group","z":"","name":"Select Input using Dropdown","tab":"71bf6668.e36f88","order":3,"disp":true,"width":"6","collapse":false,"_type":"config"},{"id":"71bf6668.e36f88","type":"ui_tab","z":"","name":"PLANT1","icon":"dashboard","publicAccess":"true","fmAccess":"default","fmAccessType":"private","assetType":"","asset":"","assetName":"","assetText":"","image":"","description":"","hideTitleBar":false,"_type":"config"}]
