@mickym sagte in Node Red Timer zwischen Injects:
@lenny-cb
Nimm einfach eine Delay Node und begrenze die Nachrichtenrate.
[image: 1683135340731-f4f77114-e593-4574-a59c-1570c99a5384-image.png]
Wenn Du sicher gehen willst, dass das die Reihenfolge garantiert werden soll, dann nimm nicht mehrere Inject-Nodes, sondern eine einzige mit einem Array
[image: 1683135556400-5bccb84c-47f9-4eb2-92d2-91ef4beaa348-image-resized.png]
Spoiler
[
{
"id": "c58170adfd4ea5d5",
"type": "inject",
"z": "289f539dcc33814e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "20",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[10000,10500,10800,12000]",
"payloadType": "json",
"x": 2530,
"y": 4340,
"wires": [
[
"8ab74f1d3a836440"
]
]
},
{
"id": "8ab74f1d3a836440",
"type": "split",
"z": "289f539dcc33814e",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 2670,
"y": 4340,
"wires": [
[
"97a6156be8662927"
]
]
},
{
"id": "97a6156be8662927",
"type": "delay",
"z": "289f539dcc33814e",
"name": "",
"pauseType": "rate",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "5",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 2860,
"y": 4340,
"wires": [
[
"cb5265cffb7dcb48"
]
]
},
{
"id": "cb5265cffb7dcb48",
"type": "debug",
"z": "289f539dcc33814e",
"name": "Ausgabe",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3060,
"y": 4340,
"wires": []
}
]
Ich probiere. Vielen Dank!