Hi, that works as desired. How do I parse the object in the Switch node. Can I reference them by name? msg.payload.binary1 or msg.payload[1] ?
[
{
"id": "7c22c4349ab21472",
"type": "inject",
"z": "5331bb12.a5ac24",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "analogue1",
"payload": "40",
"payloadType": "num",
"x": 290,
"y": 680,
"wires": [
[
"d7992a39a5c3ecc4"
]
]
},
{
"id": "937abd8b8c0bf4fc",
"type": "inject",
"z": "5331bb12.a5ac24",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "analogue2",
"payload": "50",
"payloadType": "num",
"x": 290,
"y": 740,
"wires": [
[
"d7992a39a5c3ecc4"
]
]
},
{
"id": "d07f274009064d7a",
"type": "inject",
"z": "5331bb12.a5ac24",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "binary1",
"payload": "true",
"payloadType": "bool",
"x": 290,
"y": 800,
"wires": [
[
"d7992a39a5c3ecc4"
]
]
},
{
"id": "d7992a39a5c3ecc4",
"type": "join",
"z": "5331bb12.a5ac24",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": true,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 550,
"y": 780,
"wires": [
[
"1921a5adfb412e87"
]
]
},
{
"id": "d12954e001aba47d",
"type": "debug",
"z": "5331bb12.a5ac24",
"name": "analogue1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 890,
"y": 760,
"wires": []
},
{
"id": "9b9d054e5e2cd861",
"type": "inject",
"z": "5331bb12.a5ac24",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "binary1",
"payload": "false",
"payloadType": "bool",
"x": 290,
"y": 860,
"wires": [
[
"d7992a39a5c3ecc4"
]
]
},
{
"id": "70bc33f6ee91c816",
"type": "debug",
"z": "5331bb12.a5ac24",
"name": "analogue2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 890,
"y": 820,
"wires": []
},
{
"id": "1921a5adfb412e87",
"type": "switch",
"z": "5331bb12.a5ac24",
"name": "",
"property": "payload[3]",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
},
{
"t": "eq",
"v": "false",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 690,
"y": 780,
"wires": [
[
"d12954e001aba47d"
],
[
"70bc33f6ee91c816"
]
]
}
]