Hi,
I am trying to join 4 messages into one object with the automatic mode of the join node but without a split node.
I constructed msg.parts into each message and the join works in manual mode but i want a certain order on the output, i assume the msg.parts.index should help that.
If i switch the mode to automatic in the join mode i get no output (and no error either)
I am out of ideas ( although might be a typo somewhere, it happened before).
Or did i misunderstood the help description? join strictly works only with split?
Thanks in advance;
[
{
"id": "5a0ca714aee31411",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "pressureval",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 840,
"y": 240,
"wires": [
[
"c919b02f4fbda282"
]
]
},
{
"id": "a814a91eff79d8ec",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "currentscaled",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 840,
"y": 160,
"wires": [
[
"25ab5b287455ad51"
]
]
},
{
"id": "89207abdc0e95323",
"type": "switch",
"z": "691d0babb80c900b",
"name": "StsMsg",
"property": "payload.Pressure01.Status",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 840,
"y": 560,
"wires": [
[
"1846f4b1544abffc"
]
]
},
{
"id": "ec3dacfabbb9b2cc",
"type": "switch",
"z": "691d0babb80c900b",
"name": "StsMsg",
"property": "payload.Pressure01.Status",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "0.1",
"vt": "num",
"v2": "4",
"v2t": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 840,
"y": 480,
"wires": [
[
"ab2603bb0fddf316"
]
]
},
{
"id": "eb68ecc6b5a25d49",
"type": "switch",
"z": "691d0babb80c900b",
"name": "StsMsg",
"property": "payload.Pressure01.Status",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "20.2",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 840,
"y": 400,
"wires": [
[
"49e70bcbdf12a386"
]
]
},
{
"id": "54e0f9392a34f8b8",
"type": "switch",
"z": "691d0babb80c900b",
"name": "StsMsg",
"property": "payload.Pressure01.Status",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "4.1",
"vt": "num",
"v2": "20.1",
"v2t": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 840,
"y": 320,
"wires": [
[
"f59cf71a5a69f431"
]
]
},
{
"id": "a8e1976c66f4a15f",
"type": "change",
"z": "691d0babb80c900b",
"name": "CurrentRaw",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.CurrentRaw",
"pt": "msg",
"to": "currentraw",
"tot": "msg"
},
{
"t": "delete",
"p": "currentraw",
"pt": "msg"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join03",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "2",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 80,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "c919b02f4fbda282",
"type": "change",
"z": "691d0babb80c900b",
"name": "PressureGauge",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Value",
"pt": "msg",
"to": "pressureval",
"tot": "msg"
},
{
"t": "delete",
"p": "pressureval",
"pt": "msg"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join01",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "0",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1100,
"y": 240,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "25ab5b287455ad51",
"type": "change",
"z": "691d0babb80c900b",
"name": "CurrentScaled",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.CurrentScaled",
"pt": "msg",
"to": "currentscaled",
"tot": "msg"
},
{
"t": "delete",
"p": "currentscaled",
"pt": "msg"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join02",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "1",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1100,
"y": 160,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "1846f4b1544abffc",
"type": "change",
"z": "691d0babb80c900b",
"name": "WireBreak",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "Wire Break",
"tot": "str"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join04",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "3",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 560,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "ab2603bb0fddf316",
"type": "change",
"z": "691d0babb80c900b",
"name": "UnderRange",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "Under Range",
"tot": "str"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join04",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "3",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 480,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "49e70bcbdf12a386",
"type": "change",
"z": "691d0babb80c900b",
"name": "OverRange",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "Over Range",
"tot": "str"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join04",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "3",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 400,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "f59cf71a5a69f431",
"type": "change",
"z": "691d0babb80c900b",
"name": "OK",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "OK",
"tot": "str"
},
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "Join04",
"tot": "str"
},
{
"t": "set",
"p": "parts.type",
"pt": "msg",
"to": "object",
"tot": "str"
},
{
"t": "set",
"p": "parts.key",
"pt": "msg",
"to": "Pressure01",
"tot": "str"
},
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "3",
"tot": "num"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "4",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 320,
"wires": [
[
"ad466e7ee358d6eb"
]
]
},
{
"id": "ad466e7ee358d6eb",
"type": "join",
"z": "691d0babb80c900b",
"name": "SigJoin",
"mode": "auto",
"build": "merged",
"property": "payload.Pressure01",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "4",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 1360,
"y": 240,
"wires": [
[
"aa06e3d861b7d61f"
]
]
},
{
"id": "ab6cb3ca7d846838",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "status",
"tot": "msg"
},
{
"t": "delete",
"p": "status",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 600,
"y": 320,
"wires": [
[
"eb68ecc6b5a25d49",
"54e0f9392a34f8b8"
]
]
},
{
"id": "c6567136ac1ddd09",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "payload.Pressure01.Status",
"pt": "msg",
"to": "status",
"tot": "msg"
},
{
"t": "delete",
"p": "status",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 600,
"y": 480,
"wires": [
[
"89207abdc0e95323",
"ec3dacfabbb9b2cc"
]
]
},
{
"id": "aa06e3d861b7d61f",
"type": "debug",
"z": "691d0babb80c900b",
"name": "debug 6",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1600,
"y": 240,
"wires": []
},
{
"id": "84bf6317bb615996",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "currentraw",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 840,
"y": 80,
"wires": [
[
"a8e1976c66f4a15f"
]
]
},
{
"id": "6119dbbe08835516",
"type": "inject",
"z": "691d0babb80c900b",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "16",
"payloadType": "num",
"x": 110,
"y": 80,
"wires": [
[
"84bf6317bb615996"
]
]
},
{
"id": "1d6d9a1c2fc546b5",
"type": "inject",
"z": "691d0babb80c900b",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "13",
"payloadType": "num",
"x": 110,
"y": 160,
"wires": [
[
"a814a91eff79d8ec"
]
]
},
{
"id": "41bd5f8f1fae0613",
"type": "inject",
"z": "691d0babb80c900b",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "5",
"payloadType": "num",
"x": 110,
"y": 240,
"wires": [
[
"5a0ca714aee31411"
]
]
},
{
"id": "7a0387b6fa84ea9e",
"type": "inject",
"z": "691d0babb80c900b",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "9",
"payloadType": "num",
"x": 110,
"y": 320,
"wires": [
[
"d6b239c1bfbf9120",
"546a302e8246b55b"
]
]
},
{
"id": "546a302e8246b55b",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 360,
"y": 480,
"wires": [
[
"c6567136ac1ddd09"
]
]
},
{
"id": "d6b239c1bfbf9120",
"type": "change",
"z": "691d0babb80c900b",
"name": "SigPrep",
"rules": [
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 360,
"y": 320,
"wires": [
[
"ab6cb3ca7d846838"
]
]
}
]