I’m trying to utilize a group environment variable as an addendum to variable names throughout a flow. Attached is a simplified version - a group env variable is set to TankNum = T1 and in theory a change node could set a variable name with a combination of a static name + a variable name. The resulting variable name would be TankNameT1. Is there any way of doing this as this method doesn’t seem to work?
[
{
"id": "1e05ea3ac797b66e",
"type": "group",
"z": "f6200681b265563b",
"name": "",
"style": {
"label": true
},
"nodes": [
"a17e5330370eca1d",
"9ad2dc41299e88d4",
"785e596f500556a3"
],
"env": [
{
"name": "TankNum",
"value": "T1",
"type": "str"
}
],
"x": 174,
"y": 6659,
"w": 552,
"h": 82
},
{
"id": "a17e5330370eca1d",
"type": "inject",
"z": "f6200681b265563b",
"g": "1e05ea3ac797b66e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "str",
"x": 270,
"y": 6700,
"wires": [
[
"785e596f500556a3"
]
]
},
{
"id": "9ad2dc41299e88d4",
"type": "debug",
"z": "f6200681b265563b",
"g": "1e05ea3ac797b66e",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 620,
"y": 6700,
"wires": []
},
{
"id": "785e596f500556a3",
"type": "change",
"z": "f6200681b265563b",
"g": "1e05ea3ac797b66e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "TankName${TankNum}",
"tot": "global"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 6700,
"wires": [
[
"9ad2dc41299e88d4"
]
]
}
]