I think I know what's going on. It's the payload attribute. Do this:
- create inject node and set the payload attribute to something
- add a second attribute and call it payload aswell, set it to a different value
- Close the edit panel with done
- open the edit panel and the payload value is the same:
That's because the payload
attribute is handled separately in the inject node:
[
{
"id": "fec30d0fd480bbf4",
"type": "inject",
"z": "5c82c4b32e500961",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "snafu", // <<<<<--------- payload can only have one value
"payloadType": "str",
"x": 1180,
"y": 623,
"wires": [
[]
]
}
]
it's probably something similar in the switch node - the attribute being used is also called payload
in the example here.
EDIT: damn, just checked - it's not!