user @Chapapa at Discord found a solution as he had the same issue.
But if someone knows a cleaner way of doing this, please let me know
[{"id":"11d50307.f432ad","type":"inject","z":"623c0f42.a6265","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1100,"y":960,"wires":[["ccf56cd6.bef5f","e6224dc7.25296","f07a0e5b.f9db9"]]},{"id":"ccf56cd6.bef5f","type":"api-render-template","z":"623c0f42.a6265","name":"240sec","server":"6b0eff97.ad5e1","template":"{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.hall_rorelsesensor.last_changed)) > 240 }}","x":1320,"y":960,"wires":[["c9528629.1bbc28"]]},{"id":"c9528629.1bbc28","type":"switch","z":"623c0f42.a6265","name":"True?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"True","vt":"str"},{"t":"eq","v":"False","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1490,"y":960,"wires":[["eb24ee92.c2986"],["bcbe151.ca7f4e8"]]},{"id":"e6224dc7.25296","type":"api-render-template","z":"623c0f42.a6265","name":"240sec","server":"6b0eff97.ad5e1","template":"{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.hall_2_rorelsesensor.last_changed)) > 240 }}","x":1320,"y":1000,"wires":[["69859b08.686894"]]},{"id":"44502cd6.fd9144","type":"function","z":"623c0f42.a6265","name":"Merge results","func":"// add a context.data for every check you have, 2 checks, 2 context data for example.\ncontext.data = context.data = context.data || {};\n\nswitch (msg.topic) {\n//copy line 6-9 for every check you have and update the name \"case \"hall1\" where hall1 is the name\n case \"hall1\":\n context.data.hall1 = msg.payload;\n msg = null;\n break;\n case \"hall2\":\n context.data.hall2 = msg.payload;\n msg = null;\n break;\n case \"overrideon\":\n context.data.overrideon = msg.payload;\n msg = null;\n break; \n default:\n msg = null;\n \tbreak;\n\n}\n//add the line && context.data.overrideon != null for each check you have and update the name\nif(context.data.hall1 != null && context.data.hall2 != null && context.data.overrideon != null ) {\n\tmsg2 = {};\n//add a \"+context.data.overrideon\" for each check you have and update the name\n msg2.payload = context.data.hall1+context.data.hall2+context.data.overrideon;\n \n context.data=null;\n\treturn msg2;\n} ","outputs":1,"noerr":0,"x":1800,"y":980,"wires":[["ca250e02.c8ff5"]]},{"id":"eb24ee92.c2986","type":"function","z":"623c0f42.a6265","name":"hall1","func":"msg.topic=\"hall1\";\nmsg.payload=\"true\";\nreturn msg;","outputs":1,"noerr":0,"x":1610,"y":960,"wires":[["44502cd6.fd9144"]]},{"id":"2048171f.58bd98","type":"function","z":"623c0f42.a6265","name":"hall2","func":"msg.topic=\"hall2\";\nmsg.payload=\"true\";\nreturn msg;","outputs":1,"noerr":0,"x":1610,"y":1000,"wires":[["44502cd6.fd9144"]]},{"id":"ca250e02.c8ff5","type":"switch","z":"623c0f42.a6265","name":"truetruetrue","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"truetruetrue","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1970,"y":980,"wires":[[]]},{"id":"69859b08.686894","type":"switch","z":"623c0f42.a6265","name":"True?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"True","vt":"str"},{"t":"eq","v":"False","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1490,"y":1000,"wires":[["2048171f.58bd98"],["d47e796c.8be5b8"]]},{"id":"bcbe151.ca7f4e8","type":"stoptimer","z":"623c0f42.a6265","duration":"5","units":"Second","payloadtype":"num","payloadval":"0","name":"30sec","x":1490,"y":1080,"wires":[["ccf56cd6.bef5f"],[]]},{"id":"d47e796c.8be5b8","type":"stoptimer","z":"623c0f42.a6265","duration":"5","units":"Second","payloadtype":"num","payloadval":"0","name":"30sec","x":1490,"y":1040,"wires":[["e6224dc7.25296"],[]]},{"id":"f07a0e5b.f9db9","type":"api-render-template","z":"623c0f42.a6265","name":"override on?","server":"6b0eff97.ad5e1","template":"{{ states.input_boolean.garage_manual_lights_on.state }}","x":1330,"y":920,"wires":[["945232c5.8379a"]]},{"id":"3f6d39c0.2d24e6","type":"function","z":"623c0f42.a6265","name":"overrideon","func":"msg.topic=\"overrideon\";\nmsg.payload=\"true\";\nreturn msg;","outputs":1,"noerr":0,"x":1630,"y":920,"wires":[["44502cd6.fd9144"]]},{"id":"945232c5.8379a","type":"switch","z":"623c0f42.a6265","name":"off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1490,"y":920,"wires":[["3f6d39c0.2d24e6"]]},{"id":"6b0eff97.ad5e1","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true}]