# Dashboard 2.0 Notification - Dual Output Messages

**URL:** https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957
**Category:** Dashboard
**Tags:** node-red-dashboard, dashboard-2
**Created:** [17 December 2024 11:02 UTC](https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957 "2024-12-17T11:02:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Skaedian](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/skaedian/32/85790_2.png) [@Skaedian](https://discourse.nodered.org/u/Skaedian)
#### Post date: [17 December 2024 11:02 UTC](https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957/1 "2024-12-17T11:02:26Z")

</div>

Hi there

I'm working in Node-RED 4.0.5 with a notification node and noticed that this node outputs two messages:

 ![Node-RED Notification Output](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a18460aa680cc174eedc97b354643726246c6d63.png)

The notification node is configured like this:

 ![Node-RED Notification Config](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9a0958d12f5d28ebeab4bd84cff69435a01e3cf.png)

Is it normal for the notification node to output two messages?

(Here is a copy of the flow)

```auto
[
    {
        "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:

 ![Node-RED Notification placement](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c353286b44beaf9b53169a9f268389b6d62f6b0d.png)

I can re-wire the flow like this and my problem will be solved:

 ![Node-RED Notification Correct Placement](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f75fc21f192e9ba6f183f10877554bd09158d41.png)

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.

---

<div class="post-metadata">

### Author: ![sumitshinde-84](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sumitshinde-84/32/83795_2.png) [@sumitshinde-84](https://discourse.nodered.org/u/sumitshinde-84)
#### Post date: [17 December 2024 11:51 UTC](https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957/2 "2024-12-17T11:51:54Z")

</div>

No, it's not a bug; it's normal behavior. The first message printed in the output occurs when you click the inject button or trigger the notification widget to show the notification. The second message is printed when the duration you have defined in the notification widget ends. You can see the second message with the payload: 'timeout.' It will also generate the message when you interact with the notification, such as by clicking the close button.

---

<div class="post-metadata">

### Author: ![Skaedian](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/skaedian/32/85790_2.png) [@Skaedian](https://discourse.nodered.org/u/Skaedian)
#### Post date: [17 December 2024 11:55 UTC](https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957/3 "2024-12-17T11:55:34Z")

</div>

Thank you @sumitshinde-84 for the confirmation. Much appreciated. I will re-order my flow to take this into account. 😁

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [16 January 2025 11:56 UTC](https://discourse.nodered.org/t/dashboard-2-0-notification-dual-output-messages/93957/4 "2025-01-16T11:56:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
