In between, I've made a subflow to suppress the starting messages, but I'm not really happy with it.
[
{
"id": "40e05e66b371431f",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "752031fa4315b740",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": ""
},
{
"id": "80b1aaaaebd95ddd",
"type": "tab",
"label": "init",
"disabled": false,
"info": ""
},
{
"id": "4d01417d37387e09",
"type": "subflow",
"name": "Suppress Connect Msg",
"info": "",
"category": "",
"in": [
{
"x": 60,
"y": 140,
"wires": [
{
"id": "0e87aae8e625c3b8"
}
]
}
],
"out": [
{
"x": 780,
"y": 200,
"wires": [
{
"id": "7dafd4084b2d4ddb",
"port": 0
}
]
}
],
"env": [],
"meta": {},
"color": "#DDAA99"
},
{
"id": "7a4e5eedce768290",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "2de998771a42e6cd",
"type": "ui_base",
"theme": {
"name": "theme-light",
"lightTheme": {
"default": "#0094CE",
"baseColor": "#0094CE",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": false
},
"darkTheme": {
"default": "#097479",
"baseColor": "#097479",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": false
},
"customTheme": {
"name": "Untitled Theme 1",
"default": "#4B7930",
"baseColor": "#4B7930",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
},
"themeState": {
"base-color": {
"default": "#0094CE",
"value": "#0094CE",
"edited": false
},
"page-titlebar-backgroundColor": {
"value": "#0094CE",
"edited": false
},
"page-backgroundColor": {
"value": "#fafafa",
"edited": false
},
"page-sidebar-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"group-textColor": {
"value": "#1bbfff",
"edited": false
},
"group-borderColor": {
"value": "#ffffff",
"edited": false
},
"group-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"widget-textColor": {
"value": "#111111",
"edited": false
},
"widget-backgroundColor": {
"value": "#0094ce",
"edited": false
},
"widget-borderColor": {
"value": "#ffffff",
"edited": false
},
"base-font": {
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
}
},
"angularTheme": {
"primary": "indigo",
"accents": "blue",
"warn": "red",
"background": "grey",
"palette": "light"
}
},
"site": {
"name": "Node-RED Dashboard",
"hideToolbar": "false",
"allowSwipe": "false",
"lockMenu": "false",
"allowTempTheme": "true",
"dateFormat": "DD/MM/YYYY",
"sizes": {
"sx": 48,
"sy": 48,
"gx": 6,
"gy": 6,
"cx": 6,
"cy": 6,
"px": 0,
"py": 0
}
}
},
{
"id": "1dd2f9c7af288162",
"type": "ui_group",
"name": "Default",
"tab": "7a4e5eedce768290",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "1ee02f02c57a6d39",
"type": "ui_tab",
"name": "Home2",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "61fcd3381637a8bc",
"type": "ui_group",
"name": "Default2",
"tab": "1ee02f02c57a6d39",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "035db9e7d8ee42c8",
"type": "inject",
"z": "40e05e66b371431f",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 130,
"y": 180,
"wires": [
[
"57d99e98fa45dcfb"
]
]
},
{
"id": "57d99e98fa45dcfb",
"type": "ui_ui_control",
"z": "40e05e66b371431f",
"name": "",
"events": "change",
"x": 300,
"y": 120,
"wires": [
[
"d3bc6e7ba64cdb5c"
]
]
},
{
"id": "8f0d7188ec16d89d",
"type": "ui_button",
"z": "40e05e66b371431f",
"name": "",
"group": "1dd2f9c7af288162",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "button1",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "1",
"payloadType": "num",
"topic": "topic",
"topicType": "msg",
"x": 120,
"y": 60,
"wires": [
[
"57d99e98fa45dcfb"
]
]
},
{
"id": "8824cc20ca3fd59c",
"type": "inject",
"z": "752031fa4315b740",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 130,
"y": 180,
"wires": [
[
"dccf41f6ecae1a9f"
]
]
},
{
"id": "dccf41f6ecae1a9f",
"type": "ui_ui_control",
"z": "752031fa4315b740",
"name": "",
"events": "change",
"x": 280,
"y": 120,
"wires": [
[
"e267bda721c86ed8"
]
],
"inputLabels": [
"2"
]
},
{
"id": "2898664019ec43c6",
"type": "debug",
"z": "752031fa4315b740",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 180,
"wires": []
},
{
"id": "5bb20267f71c7d63",
"type": "ui_button",
"z": "752031fa4315b740",
"name": "",
"group": "61fcd3381637a8bc",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "button2",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "0",
"payloadType": "num",
"topic": "topic",
"topicType": "msg",
"x": 120,
"y": 60,
"wires": [
[
"dccf41f6ecae1a9f"
]
]
},
{
"id": "0d3414d916185a46",
"type": "inject",
"z": "80b1aaaaebd95ddd",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 190,
"y": 80,
"wires": [
[
"97755dcd01bc4a5b"
]
]
},
{
"id": "97755dcd01bc4a5b",
"type": "change",
"z": "80b1aaaaebd95ddd",
"name": "",
"rules": [
{
"t": "set",
"p": "socketid",
"pt": "global",
"to": "0",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 470,
"y": 80,
"wires": [
[]
]
},
{
"id": "0e87aae8e625c3b8",
"type": "switch",
"z": "4d01417d37387e09",
"name": "",
"property": "socketid",
"propertyType": "global",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "str"
},
{
"t": "null"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 190,
"y": 140,
"wires": [
[
"1dbf5c32f073ecbd"
],
[
"7dfb88c583ddf8e9"
],
[
"7dafd4084b2d4ddb"
]
]
},
{
"id": "c5b88faef387ec76",
"type": "debug",
"z": "40e05e66b371431f",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 830,
"y": 180,
"wires": []
},
{
"id": "1dbf5c32f073ecbd",
"type": "change",
"z": "4d01417d37387e09",
"name": "",
"rules": [
{
"t": "set",
"p": "socketid",
"pt": "global",
"to": "socketid",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 80,
"wires": [
[]
]
},
{
"id": "7dfb88c583ddf8e9",
"type": "change",
"z": "4d01417d37387e09",
"name": "",
"rules": [
{
"t": "set",
"p": "socketid",
"pt": "global",
"to": "socketid",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 140,
"wires": [
[]
]
},
{
"id": "7dafd4084b2d4ddb",
"type": "switch",
"z": "4d01417d37387e09",
"name": "",
"property": "socketid",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "socketid",
"vt": "global"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 470,
"y": 300,
"wires": [
[],
[
"d84bed1948462852"
]
]
},
{
"id": "525b4c312ca7f099",
"type": "subflow:4d01417d37387e09",
"z": "40e05e66b371431f",
"name": "",
"env": [],
"x": 610,
"y": 120,
"wires": [
[
"c5b88faef387ec76",
"798d6fbe144f2fd7"
]
]
},
{
"id": "27735dbae834ac60",
"type": "subflow:4d01417d37387e09",
"z": "752031fa4315b740",
"name": "",
"env": [],
"x": 630,
"y": 120,
"wires": [
[
"2898664019ec43c6",
"1a4083f42dc820ad"
]
]
},
{
"id": "7aa50663a94d641f",
"type": "change",
"z": "4d01417d37387e09",
"name": "",
"rules": [
{
"t": "set",
"p": "socketid",
"pt": "global",
"to": "socketid",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 910,
"y": 320,
"wires": [
[]
]
},
{
"id": "d84bed1948462852",
"type": "delay",
"z": "4d01417d37387e09",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"x": 680,
"y": 320,
"wires": [
[
"7aa50663a94d641f"
]
]
},
{
"id": "1f6ae9baf7edf62c",
"type": "inject",
"z": "80b1aaaaebd95ddd",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 200,
"y": 140,
"wires": [
[
"cdb959f9575f2105"
]
]
},
{
"id": "ee99f4b75221d52c",
"type": "debug",
"z": "80b1aaaaebd95ddd",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 140,
"wires": []
},
{
"id": "cdb959f9575f2105",
"type": "change",
"z": "80b1aaaaebd95ddd",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "socketid",
"tot": "global"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 140,
"wires": [
[
"ee99f4b75221d52c"
]
]
},
{
"id": "e267bda721c86ed8",
"type": "switch",
"z": "752031fa4315b740",
"name": "",
"property": "tab",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 430,
"y": 120,
"wires": [
[
"27735dbae834ac60"
]
]
},
{
"id": "d3bc6e7ba64cdb5c",
"type": "switch",
"z": "40e05e66b371431f",
"name": "",
"property": "tab",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 430,
"y": 120,
"wires": [
[
"525b4c312ca7f099"
]
]
},
{
"id": "1a4083f42dc820ad",
"type": "ui_text",
"z": "752031fa4315b740",
"group": "61fcd3381637a8bc",
"order": 1,
"width": 0,
"height": 0,
"name": "",
"label": "text",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 830,
"y": 60,
"wires": []
},
{
"id": "798d6fbe144f2fd7",
"type": "ui_text",
"z": "40e05e66b371431f",
"group": "1dd2f9c7af288162",
"order": 1,
"width": 0,
"height": 0,
"name": "",
"label": "text",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 830,
"y": 60,
"wires": []
}
]