2
0
Files
lpsarii/.devcontainer/nodered/flows.json

1744 lines
44 KiB
JSON
Raw Normal View History

2026-01-09 07:46:52 +01:00
[
{
"id": "41526b8c80d5a5f7",
"type": "tab",
"label": "Flux 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "dc9d3b99eadb9b34",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B0",
2026-01-09 10:59:47 +01:00
"order": 3,
2026-01-09 07:46:52 +01:00
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
2026-01-09 10:59:47 +01:00
"x": 690,
"y": 680,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 10:59:47 +01:00
"40cd3b8ab614429e"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "9dcd1bf2a25f7371",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B1",
2026-01-09 10:59:47 +01:00
"order": 4,
2026-01-09 07:46:52 +01:00
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
2026-01-09 10:59:47 +01:00
"x": 690,
"y": 720,
2026-01-09 07:46:52 +01:00
"wires": [
[
"4ee747c8012c58a1"
]
]
},
{
"id": "143358afb510246e",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B2",
2026-01-09 10:59:47 +01:00
"order": 5,
2026-01-09 07:46:52 +01:00
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
2026-01-09 10:59:47 +01:00
"x": 690,
"y": 760,
2026-01-09 07:46:52 +01:00
"wires": [
[
"d966ba0d813b7cb7"
]
]
},
{
"id": "e863fe498c528076",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B3",
2026-01-09 10:59:47 +01:00
"order": 6,
2026-01-09 07:46:52 +01:00
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
2026-01-09 10:59:47 +01:00
"x": 690,
"y": 800,
2026-01-09 07:46:52 +01:00
"wires": [
[
"501355b0c82cae08"
]
]
},
{
"id": "04e097a5c78127cb",
"type": "mqtt out",
"z": "41526b8c80d5a5f7",
"name": "",
"topic": "geii/in",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "5bf949eb0a1b50a7",
2026-01-09 10:59:47 +01:00
"x": 1930,
"y": 100,
2026-01-09 07:46:52 +01:00
"wires": []
},
{
"id": "d12767fc3e33bb20",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "MARCHE",
"order": 1,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
2026-01-09 10:59:47 +01:00
"x": 700,
"y": 500,
2026-01-09 07:46:52 +01:00
"wires": [
[
"3e0c75aae8971dca"
]
]
},
{
"id": "0ca8f4a10a6048af",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "format mqtt",
2026-01-09 10:59:47 +01:00
"func": "let marche = Number(flow.get(\"marche\") || 0);\nlet arret = Number(flow.get(\"arret\") || 0);\nlet b0 = Number(flow.get(\"b0\") || 0);\nlet b1 = Number(flow.get(\"b1\") || 0);\nlet b2 = Number(flow.get(\"b2\") || 0);\nlet b3 = Number(flow.get(\"b3\") || 0);\nlet b4 = Number(flow.get(\"b4\") || 0);\nlet b5 = Number(flow.get(\"b5\") || 0);\nlet b6 = Number(flow.get(\"b6\") || 0);\nlet b7 = Number(flow.get(\"b7\") || 0);\n\nmsg.payload = {\n \"marche\": marche,\n \"arret\": arret,\n \"b0\": b0,\n \"b1\": b1,\n \"b2\": b2,\n \"b3\": b3,\n \"b4\": b4,\n \"b5\": b5,\n \"b6\": b6,\n \"b7\": b7\n};\n\nreturn msg;",
2026-01-09 07:46:52 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 10:59:47 +01:00
"x": 510,
"y": 40,
2026-01-09 07:46:52 +01:00
"wires": [
[
"04e097a5c78127cb"
]
]
},
{
"id": "a49263451d77f972",
"type": "inject",
"z": "41526b8c80d5a5f7",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 40,
"wires": [
[
2026-01-09 10:59:47 +01:00
"869aedf62de05359",
"e52bad35a9e3303a"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "3e0c75aae8971dca",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set marche",
2026-01-09 10:59:47 +01:00
"func": "msg.payload = {\n \"marche\": 1\n};\n\nreturn msg;",
2026-01-09 07:46:52 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 10:59:47 +01:00
"x": 870,
"y": 500,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 10:59:47 +01:00
"bf55b8bf4a7aaf10"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "4ee747c8012c58a1",
"type": "function",
"z": "41526b8c80d5a5f7",
2026-01-09 10:59:47 +01:00
"name": "send b1",
"func": "msg.payload = {\n \"b1\": 1\n};\n\nreturn msg;",
2026-01-09 07:46:52 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 10:59:47 +01:00
"x": 860,
"y": 720,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 10:59:47 +01:00
"bf55b8bf4a7aaf10"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "d966ba0d813b7cb7",
"type": "function",
"z": "41526b8c80d5a5f7",
2026-01-09 10:59:47 +01:00
"name": "send b2",
"func": "msg.payload = {\n \"b2\": 1\n};\n\nreturn msg;",
2026-01-09 07:46:52 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 10:59:47 +01:00
"x": 860,
"y": 760,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 10:59:47 +01:00
"bf55b8bf4a7aaf10"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "501355b0c82cae08",
"type": "function",
"z": "41526b8c80d5a5f7",
2026-01-09 09:52:51 +01:00
"name": "set b3",
2026-01-09 10:59:47 +01:00
"func": "msg.payload = {\n \"b3\": 1\n};\n\nreturn msg;",
2026-01-09 07:46:52 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 10:59:47 +01:00
"x": 850,
"y": 800,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 10:59:47 +01:00
"bf55b8bf4a7aaf10"
2026-01-09 07:46:52 +01:00
]
]
},
{
"id": "1dfea06c14d2732c",
"type": "mqtt in",
"z": "41526b8c80d5a5f7",
"name": "",
"topic": "geii/out",
"qos": "2",
"datatype": "auto-detect",
"broker": "5bf949eb0a1b50a7",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 130,
2026-01-09 10:59:47 +01:00
"y": 1140,
2026-01-09 07:46:52 +01:00
"wires": [
[
2026-01-09 09:25:37 +01:00
"9ef1bb67f51b254c"
2026-01-09 07:46:52 +01:00
]
]
},
2026-01-09 09:25:37 +01:00
{
"id": "309cae1a9bcc718b",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
2026-01-09 09:52:51 +01:00
"order": 1,
2026-01-09 09:25:37 +01:00
"width": 0,
"height": 0,
"name": "",
"label": "s0",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1080,
2026-01-09 09:25:37 +01:00
"wires": []
},
{
"id": "6bd900b695c3a793",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
2026-01-09 09:52:51 +01:00
"order": 2,
2026-01-09 09:25:37 +01:00
"width": 0,
"height": 0,
"name": "",
"label": "s1",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1120,
2026-01-09 09:25:37 +01:00
"wires": []
},
{
"id": "cdc7f0e7741ad210",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
2026-01-09 09:52:51 +01:00
"order": 3,
2026-01-09 09:25:37 +01:00
"width": 0,
"height": 0,
"name": "",
"label": "s2",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1160,
2026-01-09 09:25:37 +01:00
"wires": []
},
{
"id": "9ef1bb67f51b254c",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "function 1",
2026-01-09 10:59:47 +01:00
"func": "flow.set(\"s0\", Number(msg.payload.s0));\nflow.set(\"s1\", Number(msg.payload.s1));\nflow.set(\"s2\", Number(msg.payload.s2));\nflow.set(\"s3\", Number(msg.payload.s3));\nflow.set(\"s4\", Number(msg.payload.s4));\nflow.set(\"s5\", Number(msg.payload.s5));\nflow.set(\"s6\", Number(msg.payload.s6));\nflow.set(\"s7\", Number(msg.payload.s7));\n\nreturn msg;",
2026-01-09 09:25:37 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
2026-01-09 07:46:52 +01:00
"x": 380,
2026-01-09 10:59:47 +01:00
"y": 1140,
2026-01-09 09:25:37 +01:00
"wires": [
[
"9dad44eccec1d282",
"fc568b731fec8026",
2026-01-09 09:52:51 +01:00
"6179e102d7866a82",
"ccecf6f984daae7c",
"51bb134ec07cdcef",
"ae4e0b8f232fbdfc",
"f98062374cdfd8d1",
"9dfe2d239a268225"
2026-01-09 09:25:37 +01:00
]
]
},
{
"id": "9dad44eccec1d282",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s0",
2026-01-09 09:52:51 +01:00
"func": "msg.payload = Number(flow.get(\"s0\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
2026-01-09 09:25:37 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1080,
2026-01-09 09:25:37 +01:00
"wires": [
[
"309cae1a9bcc718b"
]
]
},
{
"id": "fc568b731fec8026",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s1",
2026-01-09 09:52:51 +01:00
"func": "msg.payload = Number(flow.get(\"s1\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
2026-01-09 09:25:37 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1120,
2026-01-09 09:25:37 +01:00
"wires": [
[
"6bd900b695c3a793"
]
]
},
{
"id": "6179e102d7866a82",
"type": "function",
"z": "41526b8c80d5a5f7",
2026-01-09 09:52:51 +01:00
"name": "s2",
"func": "msg.payload = Number(flow.get(\"s2\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
2026-01-09 09:25:37 +01:00
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1160,
2026-01-09 09:25:37 +01:00
"wires": [
[
"cdc7f0e7741ad210"
]
]
2026-01-09 07:46:52 +01:00
},
2026-01-09 09:52:51 +01:00
{
"id": "6172598e36ec2754",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
"order": 4,
"width": 0,
"height": 0,
"name": "",
"label": "s3",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1200,
2026-01-09 09:52:51 +01:00
"wires": []
},
{
"id": "7b808775687a1e80",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
"order": 5,
"width": 0,
"height": 0,
"name": "",
"label": "s4",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1240,
2026-01-09 09:52:51 +01:00
"wires": []
},
{
"id": "5e969524f2d7ac83",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
"order": 6,
"width": 0,
"height": 0,
"name": "",
"label": "s5",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1280,
2026-01-09 09:52:51 +01:00
"wires": []
},
{
"id": "f832017038053787",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
"order": 7,
"width": 0,
"height": 0,
"name": "",
"label": "s6",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1320,
2026-01-09 09:52:51 +01:00
"wires": []
},
{
"id": "a85963dd6d125a42",
"type": "ui-text",
"z": "41526b8c80d5a5f7",
"group": "c3dd11d0778f9e67",
"order": 8,
"width": 0,
"height": 0,
"name": "",
"label": "s7",
"format": "{{msg.payload}}",
"layout": "row-spread",
"style": false,
"font": "",
"fontSize": 16,
"color": "#717171",
"wrapText": false,
"className": "",
"value": "payload",
"valueType": "msg",
"x": 870,
2026-01-09 10:59:47 +01:00
"y": 1360,
2026-01-09 09:52:51 +01:00
"wires": []
},
{
"id": "ccecf6f984daae7c",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s3",
"func": "msg.payload = Number(flow.get(\"s3\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1200,
2026-01-09 09:52:51 +01:00
"wires": [
[
"6172598e36ec2754"
]
]
},
{
"id": "51bb134ec07cdcef",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s4",
"func": "msg.payload = Number(flow.get(\"s4\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1240,
2026-01-09 09:52:51 +01:00
"wires": [
[
"7b808775687a1e80"
]
]
},
{
"id": "ae4e0b8f232fbdfc",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s5",
"func": "msg.payload = Number(flow.get(\"s5\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1280,
2026-01-09 09:52:51 +01:00
"wires": [
[
"5e969524f2d7ac83"
]
]
},
{
"id": "f98062374cdfd8d1",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s6",
"func": "msg.payload = Number(flow.get(\"s6\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1320,
2026-01-09 09:52:51 +01:00
"wires": [
[
"f832017038053787"
]
]
},
{
"id": "9dfe2d239a268225",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "s7",
"func": "msg.payload = Number(flow.get(\"s7\")) ? \"🟩\" : \"🟥\";\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 690,
2026-01-09 10:59:47 +01:00
"y": 1360,
2026-01-09 09:52:51 +01:00
"wires": [
[
"a85963dd6d125a42"
]
]
},
{
"id": "869aedf62de05359",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "reset",
"func": "flow.set(\"marche\", 1);\n\nflow.set(\"b0\", 0);\nflow.set(\"b1\", 0);\nflow.set(\"b2\", 0);\nflow.set(\"b3\", 0);\nflow.set(\"b4\", 0);\nflow.set(\"b5\", 0);\nflow.set(\"b6\", 0);\nflow.set(\"b7\", 0);\n\nflow.set(\"s0\", 0);\nflow.set(\"s1\", 0);\nflow.set(\"s2\", 0);\nflow.set(\"s3\", 0);\nflow.set(\"s4\", 0);\nflow.set(\"s5\", 0);\nflow.set(\"s6\", 0);\nflow.set(\"s7\", 0);\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 310,
"y": 40,
"wires": [
[
"0ca8f4a10a6048af"
]
]
},
2026-01-09 07:46:52 +01:00
{
2026-01-09 10:59:47 +01:00
"id": "e13f6855fb2ae6e5",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B4",
"order": 7,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
2026-01-09 07:46:52 +01:00
"className": "",
2026-01-09 10:59:47 +01:00
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 690,
"y": 840,
"wires": [
[
"6b074a32f2f70f5f"
]
]
2026-01-09 07:46:52 +01:00
},
{
2026-01-09 10:59:47 +01:00
"id": "23c475d0fb3faedb",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
2026-01-09 07:46:52 +01:00
"name": "",
2026-01-09 10:59:47 +01:00
"label": "B5",
"order": 8,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 690,
"y": 880,
"wires": [
[
"13525a762ac7e327"
]
]
2026-01-09 07:46:52 +01:00
},
2026-01-09 09:25:37 +01:00
{
2026-01-09 10:59:47 +01:00
"id": "e9da3426111867c2",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B6",
"order": 9,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 690,
"y": 920,
"wires": [
[
"501a187ca9d5dc4e"
]
]
},
{
"id": "887889076242a450",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "B7",
"order": 10,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 690,
"y": 960,
"wires": [
[
"9d0587a99be6ccac"
]
]
},
{
"id": "6b074a32f2f70f5f",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set b4",
"func": "msg.payload = {\n \"b4\": 1\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 850,
"y": 840,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "13525a762ac7e327",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set b5",
"func": "msg.payload = {\n \"b5\": 1\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 850,
"y": 880,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "501a187ca9d5dc4e",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set b6",
"func": "msg.payload = {\n \"b6\": 1\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 850,
"y": 920,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "f1c934fc513b2bc7",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i0\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 140,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "ac96af9d69f69372",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I0",
"group": "00ea85a0e0b38df3",
"order": 1,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 140,
"wires": [
[
"f1c934fc513b2bc7"
]
]
},
{
"id": "d64b5ceb51e6356d",
"type": "ui-button",
"z": "41526b8c80d5a5f7",
"group": "5fe915fcd26e78ae",
"name": "",
"label": "ARRET",
"order": 2,
"width": 0,
"height": 0,
"emulateClick": false,
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"buttonColor": "",
"textColor": "",
"iconColor": "",
"enableClick": true,
"enablePointerdown": false,
"pointerdownPayload": "",
"pointerdownPayloadType": "str",
"enablePointerup": false,
"pointerupPayload": "",
"pointerupPayloadType": "str",
"x": 700,
"y": 540,
"wires": [
[
"6144c03f7e61ad75"
]
]
},
{
"id": "40cd3b8ab614429e",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "send b0",
"func": "msg.payload = {\n \"b0\": 1\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 860,
"y": 680,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "bf55b8bf4a7aaf10",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "format mqtt",
"func": "let i0 = Number(flow.get(\"i0\") || 0);\nlet i1 = Number(flow.get(\"i1\") || 0);\nlet i2 = Number(flow.get(\"i2\") || 0);\nlet i3 = Number(flow.get(\"i3\") || 0);\nlet i4 = Number(flow.get(\"i4\") || 0);\nlet i5 = Number(flow.get(\"i5\") || 0);\nlet i6 = Number(flow.get(\"i6\") || 0);\nlet i7 = Number(flow.get(\"i7\") || 0);\n\nif (typeof msg.payload[\"arret\"] === 'undefined') msg.payload[\"arret\"] = 1;\nif (typeof msg.payload[\"marche\"] === 'undefined') msg.payload[\"marche\"] = 0;\n\nif (typeof msg.payload[\"b0\"] === 'undefined') msg.payload[\"b0\"] = 0;\nif (typeof msg.payload[\"b1\"] === 'undefined') msg.payload[\"b1\"] = 0;\nif (typeof msg.payload[\"b2\"] === 'undefined') msg.payload[\"b2\"] = 0;\nif (typeof msg.payload[\"b3\"] === 'undefined') msg.payload[\"b3\"] = 0;\nif (typeof msg.payload[\"b4\"] === 'undefined') msg.payload[\"b4\"] = 0;\nif (typeof msg.payload[\"b5\"] === 'undefined') msg.payload[\"b5\"] = 0;\nif (typeof msg.payload[\"b6\"] === 'undefined') msg.payload[\"b6\"] = 0;\nif (typeof msg.payload[\"b7\"] === 'undefined') msg.payload[\"b7\"] = 0;\n\nmsg.payload[\"i0\"] = i0;\nmsg.payload[\"i1\"] = i1;\nmsg.payload[\"i2\"] = i2;\nmsg.payload[\"i3\"] = i3;\nmsg.payload[\"i4\"] = i4;\nmsg.payload[\"i5\"] = i5;\nmsg.payload[\"i6\"] = i6;\nmsg.payload[\"i7\"] = i7;\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1430,
"y": 500,
"wires": [
[
"04e097a5c78127cb",
"2eb8008f157e3905"
]
]
},
{
"id": "9d0587a99be6ccac",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set b7",
"func": "msg.payload = {\n \"b7\": 1\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 850,
"y": 960,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "057f5330eb0243b5",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i1\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 180,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "a2dd41c333e61095",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I1",
"group": "00ea85a0e0b38df3",
"order": 2,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 180,
"wires": [
[
"057f5330eb0243b5"
]
]
},
{
"id": "ed8a7b695f241e17",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i2\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 220,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "7fa06bb9fc6290c2",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I2",
"group": "00ea85a0e0b38df3",
"order": 3,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 220,
"wires": [
[
"ed8a7b695f241e17"
]
]
},
{
"id": "f7196bb1c9ad7882",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i3\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 260,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "787b142395f2812c",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I3",
"group": "00ea85a0e0b38df3",
"order": 4,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 260,
"wires": [
[
"f7196bb1c9ad7882"
]
]
},
{
"id": "a14b6f743fc24f5a",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i4\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 300,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "5e24007ebaf43929",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I4",
"group": "00ea85a0e0b38df3",
"order": 5,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 300,
"wires": [
[
"a14b6f743fc24f5a"
]
]
},
{
"id": "3a78dbb26cfb4ced",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i5\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 340,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "3a440beb763d86fb",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I5",
"group": "00ea85a0e0b38df3",
"order": 6,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 340,
"wires": [
[
"3a78dbb26cfb4ced"
]
]
},
{
"id": "0da4875391d23ba7",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i6\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 380,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "9a6dbd2385a1e118",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I6",
"group": "00ea85a0e0b38df3",
"order": 7,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 380,
"wires": [
[
"0da4875391d23ba7"
]
]
},
{
"id": "6343064ecf3d8a64",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set i0",
"func": "flow.set(\"i7\", msg.payload);\nmsg.payload = {};\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 870,
"y": 420,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "a4bb8403a98d9690",
"type": "ui-switch",
"z": "41526b8c80d5a5f7",
"name": "",
"label": "I7",
"group": "00ea85a0e0b38df3",
"order": 8,
"width": 0,
"height": 0,
"passthru": false,
"decouple": false,
"topic": "topic",
"topicType": "msg",
"style": "",
"className": "",
"layout": "row-spread",
"clickableArea": "switch",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"x": 710,
"y": 420,
"wires": [
[
"6343064ecf3d8a64"
]
]
},
{
"id": "2eb8008f157e3905",
"type": "debug",
"z": "41526b8c80d5a5f7",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1760,
"y": 500,
"wires": []
},
{
"id": "e52bad35a9e3303a",
"type": "change",
"z": "41526b8c80d5a5f7",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 160,
"wires": [
[
"ac96af9d69f69372",
"a2dd41c333e61095",
"7fa06bb9fc6290c2",
"a4bb8403a98d9690",
"9a6dbd2385a1e118",
"3a440beb763d86fb",
"5e24007ebaf43929",
"787b142395f2812c"
]
]
},
{
"id": "6144c03f7e61ad75",
"type": "function",
"z": "41526b8c80d5a5f7",
"name": "set arret",
"func": "msg.payload = {\n \"arret\": 0\n};\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 860,
"y": 540,
"wires": [
[
"bf55b8bf4a7aaf10"
]
]
},
{
"id": "5fe915fcd26e78ae",
"type": "ui-group",
"name": "Pupitre",
"page": "bb436fe040268d40",
"width": "2",
"height": 1,
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
{
"id": "5bf949eb0a1b50a7",
"type": "mqtt-broker",
"name": "",
"broker": "rabbitmq",
"port": 1883,
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": 4,
"keepalive": 60,
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "c3dd11d0778f9e67",
"type": "ui-group",
"name": "Voyants",
"page": "bb436fe040268d40",
"width": "2",
"height": 1,
"order": 3,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
{
"id": "00ea85a0e0b38df3",
"type": "ui-group",
"name": "Interrupteurs",
"page": "bb436fe040268d40",
"width": "2",
2026-01-09 09:25:37 +01:00
"height": 1,
2026-01-09 09:52:51 +01:00
"order": 2,
2026-01-09 09:25:37 +01:00
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false",
"groupType": "default"
},
2026-01-09 07:46:52 +01:00
{
"id": "bb436fe040268d40",
"type": "ui-page",
"name": "LP SARII",
"ui": "92537b03143c5e06",
"path": "/page1",
"icon": "home",
"layout": "grid",
"theme": "ea2bf5532fa513eb",
"breakpoints": [
{
"name": "Default",
"px": "0",
"cols": "3"
},
{
"name": "Tablet",
"px": "576",
"cols": "6"
},
{
"name": "Small Desktop",
"px": "768",
"cols": "9"
},
{
"name": "Desktop",
"px": "1024",
"cols": "12"
}
],
"order": 1,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "92537b03143c5e06",
"type": "ui-base",
"name": "My Dashboard",
"path": "/dashboard",
"appIcon": "",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control"
],
"showPathInSidebar": false,
"headerContent": "page",
"navigationStyle": "default",
"titleBarStyle": "default",
"showReconnectNotification": true,
"notificationDisplayTime": 1,
"showDisconnectNotification": true,
"allowInstall": false
},
{
"id": "ea2bf5532fa513eb",
"type": "ui-theme",
"name": "Default Theme",
"colors": {
"surface": "#ffffff",
"primary": "#0094CE",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
},
"sizes": {
"density": "default",
"pagePadding": "12px",
"groupGap": "12px",
"groupBorderRadius": "4px",
"widgetGap": "12px"
}
},
{
2026-01-09 10:59:47 +01:00
"id": "f77ff628addd5fe5",
2026-01-09 07:46:52 +01:00
"type": "global-config",
"env": [],
"modules": {
2026-01-09 09:25:37 +01:00
"@flowfuse/node-red-dashboard": "1.30.1"
2026-01-09 07:46:52 +01:00
}
}
]