Hi there
I'm working in Node-RED 4.0.5 with a notification node and noticed that this node outputs two messages:
The notification node is configured like this:
Is it normal for the notification node to output two messages?
(Here is a copy of the flow)
[
{
"id": "9b8e7d0bf1112b14",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "9143dda9ea5f0827",
"type": "ui-notification",
"z": "9b8e7d0bf1112b14",
"ui": "907d6633b1fb572a",
"position": "top center",
"colorDefault": true,
"color": "#000000",
"displayTime": "3",
"showCountdown": true,
"outputs": 1,
"allowDismiss": true,
"dismissText": "Close",
"allowConfirm": false,
"confirmText": "Confirm",
"raw": false,
"className": "",
"name": "Test Notification",
"x": 1010,
"y": 220,
"wires": [
[
"f7a943d2b584f36f"
]
]
},
{
"id": "67b87f3ff69004fd",
"type": "inject",
"z": "9b8e7d0bf1112b14",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 630,
"y": 220,
"wires": [
[
"4a574414e497976f"
]
]
},
{
"id": "4a574414e497976f",
"type": "function",
"z": "9b8e7d0bf1112b14",
"name": "Do Stuff",
"func": "msg.payload = \"Test Message For Notification.\"\nmsg.randomProperty = true;\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 810,
"y": 220,
"wires": [
[
"9143dda9ea5f0827",
"dbe8da6e66d8b114"
]
]
},
{
"id": "dbe8da6e66d8b114",
"type": "debug",
"z": "9b8e7d0bf1112b14",
"name": "Check Func Node",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 120,
"wires": []
},
{
"id": "f7a943d2b584f36f",
"type": "debug",
"z": "9b8e7d0bf1112b14",
"name": "Check Notification",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1210,
"y": 120,
"wires": []
},
{
"id": "907d6633b1fb572a",
"type": "ui-base",
"name": "My Dashboard",
"path": "/dashboard",
"appIcon": "",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control",
"ui-form",
"ui-text-input",
"ui-number-input",
"ui-file-input",
"ui-button",
"ui-button-group",
"ui-dropdown",
"ui-radio-group",
"ui-slider",
"ui-text",
"ui-table",
"ui-chart",
"ui-gauge",
"ui-markdown",
"ui-template",
"ui-switch"
],
"showPathInSidebar": false,
"showPageTitle": true,
"navigationStyle": "default",
"titleBarStyle": "default",
"notificationDisplayTime": 5
}
]
In my other flow I used the notification node in line with the flow and noticed that all actions are duplicated. In my other flow, the notification node is placed like this:
I can re-wire the flow like this and my problem will be solved:
I just need to know if the two messages that the notification node outputs is a bug or not. I might be missing something.
Thank you.