Thanks you for trying to help out.
I'm running node red under HomeAssistant, node red version 3.0.2.
After your comment I made an empty flow put in just an insert, delay and debug. Now it works like it should so it must be an other mistake in my flow.
It turn solid far a fraction of a second, looks like it gets triggered again. I'm injecting 'on' and 'off' in the flow. But the first inject 'on' after an 'off' also triggers and 'off' on all other nodes.
So now I need to figure out why the inject node is triggering an 'off', might be the switch node, not sure yet.
[{"id":"d4e49684.c7b908","type":"tab","label":"Rook Melders","disabled":false,"info":""},{"id":"54dfd2ff.201bfc","type":"switch","z":"d4e49684.c7b908","name":"On or Off?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":650,"y":40,"wires":[["995563a2.8b24e","b7ed0916.42d458","54c80f1a6a67a1c3","89c307492652ea21"],["b4fb356e.e09888","cd629d57.6e19a","ffaa738d.8dbb6","e3b4ff3e5945987d","e01d9adf99d646a8","8d4c3169126b470e"]]},{"id":"64de7d95.a96bd4","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 11 Keuken","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_keuken_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":240,"wires":[["54dfd2ff.201bfc","132b67a3.dcec28"]]},{"id":"4e8c4ec3.49c84","type":"inject","z":"d4e49684.c7b908","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":110,"y":100,"wires":[["54dfd2ff.201bfc","54c80f1a6a67a1c3"]]},{"id":"33d94071.f1f0d","type":"inject","z":"d4e49684.c7b908","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":110,"y":160,"wires":[["54dfd2ff.201bfc","e01d9adf99d646a8","e3b4ff3e5945987d"]]},{"id":"501f15f9.dad72c","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 12 Kantoor","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_kantoor_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":280,"wires":[["54dfd2ff.201bfc","439c307a.f66fa"]]},{"id":"85adc6d.0e6f338","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 13 Woonkamer","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_woonkamer_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":320,"wires":[["54dfd2ff.201bfc","b8225e.85939da"]]},{"id":"5c292c6b.199c64","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 14 Kelder","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_kelder_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":360,"wires":[["54dfd2ff.201bfc","817ba97.5efa858"]]},{"id":"7439f241.2016dc","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 15 Overloop","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_overloop_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":400,"wires":[["54dfd2ff.201bfc","48dba081.9f9c9"]]},{"id":"b08f7131.8ee6a","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 16 Slaapkamer","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_slaapkamer_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":440,"wires":[["54dfd2ff.201bfc","b391a3e7.07a16"]]},{"id":"3884ddf9.2bf512","type":"server-state-changed","z":"d4e49684.c7b908","name":"Sensor 17 Zolder","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.smoke_sensor_zolder_iaszone","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":480,"wires":[["54dfd2ff.201bfc","8e81d4ec.08d228"]]},{"id":"f14b9e4b.2142e","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Keuken","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Keuken.\", \"message\": \"Rookmelder Keuken Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":890,"y":600,"wires":[[]]},{"id":"10dc8365.2e52cd","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Kantoor","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Kantoor.\", \"message\": \"Rookmelder Kantoor Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":890,"y":640,"wires":[[]]},{"id":"5107a1e3.5611e","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Woonkamer","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Woonkamer.\", \"message\": \"Rookmelder Woonkamer Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":900,"y":680,"wires":[[]]},{"id":"9d9bbc48.9413","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Kelder","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Kelder.\", \"message\": \"Rookmelder Kelder Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":880,"y":720,"wires":[[]]},{"id":"3070cf21.d658b","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Overloop","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Overloop.\", \"message\": \"Rookmelder Overloop Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":890,"y":760,"wires":[[]]},{"id":"7d9fcc3c.aefcc4","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Slaapkamer","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Slaapkamer.\", \"message\": \"Rookmelder Slaapkamer Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":900,"y":800,"wires":[[]]},{"id":"5697f35.f30c00c","type":"api-call-service","z":"d4e49684.c7b908","name":"Telefoon Rookmelder Zolder","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"notify","service":"notify","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\": \"Rookmelder Zolder.\", \"message\": \"Rookmelder Zolder Gaat Af!!!\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":880,"y":840,"wires":[[]]},{"id":"b4fb356e.e09888","type":"change","z":"d4e49684.c7b908","name":"Stop Melding","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":230,"y":720,"wires":[["439c307a.f66fa","b8225e.85939da","817ba97.5efa858","48dba081.9f9c9","b391a3e7.07a16","8e81d4ec.08d228","132b67a3.dcec28"]]},{"id":"b7ed0916.42d458","type":"api-call-service","z":"d4e49684.c7b908","name":"Buiten Lamp Aan","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.buiten_lamp"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":460,"wires":[[]]},{"id":"ffaa738d.8dbb6","type":"api-call-service","z":"d4e49684.c7b908","name":"Buiten Lamp Uit","server":"af3a37e2.d6c9b8","version":3,"debugenabled":false,"service":"turn_off","entityId":"light.buiten_lamp","data":"","dataType":"json","mustacheAltTags":false,"outputProperties":[],"queue":"none","service_domain":"light","mergecontext":"","x":1180,"y":600,"wires":[[]]},{"id":"995563a2.8b24e","type":"api-call-service","z":"d4e49684.c7b908","name":"Hall Lamp Aan Bright","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.hal_lamp"],"data":"{\"brightness\": 130}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1200,"y":400,"wires":[[]]},{"id":"cd629d57.6e19a","type":"api-call-service","z":"d4e49684.c7b908","name":"Hal Lamp Uit","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.hal_lamp"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1170,"y":540,"wires":[[]]},{"id":"132b67a3.dcec28","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":600,"wires":[["f14b9e4b.2142e"],[]]},{"id":"439c307a.f66fa","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":640,"wires":[["10dc8365.2e52cd"],[]]},{"id":"b8225e.85939da","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":680,"wires":[["5107a1e3.5611e"],[]]},{"id":"817ba97.5efa858","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":720,"wires":[["9d9bbc48.9413"],[]]},{"id":"48dba081.9f9c9","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":760,"wires":[["3070cf21.d658b"],[]]},{"id":"b391a3e7.07a16","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":800,"wires":[["7d9fcc3c.aefcc4"],[]]},{"id":"8e81d4ec.08d228","type":"looptimer","z":"d4e49684.c7b908","duration":"1","units":"Minute","maxloops":"30","maxtimeout":"1","maxtimeoutunits":"Hour","name":"Herhaal Alarm Melding","x":620,"y":840,"wires":[["5697f35.f30c00c"],[]]},{"id":"0f5c71764199a19e","type":"api-call-service","z":"d4e49684.c7b908","name":"Extra Sirene Aan","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"siren","service":"turn_on","areaId":[],"deviceId":["1415022a162c11ebbc14759547a49195","8a625efc138f11eb9878fb779a320497"],"entityId":[],"data":"{\"duration\": 600}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":40,"wires":[[]]},{"id":"8d4c3169126b470e","type":"api-call-service","z":"d4e49684.c7b908","name":"Extra Sirene Uit","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"siren","service":"turn_off","areaId":[],"deviceId":["1415022a162c11ebbc14759547a49195","8a625efc138f11eb9878fb779a320497"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1200,"y":120,"wires":[[]]},{"id":"e01d9adf99d646a8","type":"change","z":"d4e49684.c7b908","name":"off naar reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":140,"wires":[["89c307492652ea21"]]},{"id":"c2d2e7530b316f4d","type":"server-state-changed","z":"d4e49684.c7b908","name":"Rook Alarm Via Interface","server":"af3a37e2.d6c9b8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.rook_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":40,"wires":[["b4fb356e.e09888","e01d9adf99d646a8","8d4c3169126b470e"]]},{"id":"54c80f1a6a67a1c3","type":"api-call-service","z":"d4e49684.c7b908","name":"Lovelace Rook Alarm Switch","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_on","areaId":[],"deviceId":[],"entityId":["input_boolean.rook_alarm"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":740,"y":440,"wires":[[]]},{"id":"e3b4ff3e5945987d","type":"api-call-service","z":"d4e49684.c7b908","name":"Lovelace Rook Alarm Switch","server":"af3a37e2.d6c9b8","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.rook_alarm"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":740,"y":480,"wires":[[]]},{"id":"89c307492652ea21","type":"delay","z":"d4e49684.c7b908","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":980,"y":40,"wires":[["2fd8b0ea242dee94"]]},{"id":"2fd8b0ea242dee94","type":"debug","z":"d4e49684.c7b908","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":240,"wires":[]},{"id":"af3a37e2.d6c9b8","type":"server","name":"Home Assistant","version":2,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
edit * found my error, was updating the input_boolean that I made to have a button on the HA interface, updating the button to correctly represent the state was retriggering the 'off'