Moin @JensEsPunkt,
es gibt da natürlich Möglichkeiten. Eine sieht so aus.
Hier würdest du mit dem Relay 7 für 1 Sekunde einschalten.
Du müsstest dir in der Palette “node-red-contrib-mytimeout” Installieren.
dann den Flow importieren, fertig!!
Hier kannst du die Zeit einstellen die der Ausgang eingeschaltet sein soll.
Und in den Linkin, Linkout kannst du angeben von welchem Relay es geschaltet wird.
Und hier der Flow
[{"id":"91d7b72240e61dbc","type":"mytimeout","z":"84665a90ee817182","name":"","outtopic":"","outsafe":"","outwarning":"Warning","outunsafe":"off","warning":"50","timer":"5","debug":false,"ndebug":false,"ignoreCase":false,"repeat":false,"again":false,"x":790,"y":840,"wires":[["2f885cfbea622fbe"],[]]},{"id":"b634bb65c7cd4add","type":"function","z":"84665a90ee817182","name":"function 65","func":"if (msg.payload == true){\n return msg\n}\nif (msg.payload==false){\n return null\n}\nreturn [msg, null];","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":630,"y":840,"wires":[["91d7b72240e61dbc"]]},{"id":"2f885cfbea622fbe","type":"function","z":"84665a90ee817182","name":"function 66","func":"if (msg.payload == \"off\") {\n msg.payload = false\n return [msg, null]\n}\nelse {\n msg.payload = \"Warningn\"\n return [null, msg];\n}","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":970,"y":840,"wires":[["3f3e175f522773ad"],[]]},{"id":"a54a5dc242c965b2","type":"link in","z":"84665a90ee817182","name":"link in 16","links":["7342408f.2fe48"],"x":335,"y":840,"wires":[["0bf51b60035487a6"]]},{"id":"3f3e175f522773ad","type":"link out","z":"84665a90ee817182","name":"link out 11","mode":"link","links":["38796905.f4b7f6"],"x":1105,"y":840,"wires":[]},{"id":"0bf51b60035487a6","type":"rbe","z":"84665a90ee817182","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":470,"y":840,"wires":[["b634bb65c7cd4add"]]}]
Gruß Arno