Hello @richard8901 , welcome to the forum.
Consider a flow like this which will send "ON" then "OFF" 2 seconds apart until it's reset.
It uses 2 trigger nodes - one to repeat the alarm signal every 4 seconds and one to send ON, wait and send OFF.
[{"id":"6a5630552e28e546","type":"inject","z":"f25b549c8bc73a59","name":"ALARM!","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":120,"y":60,"wires":[["2bc95c352e116d1e"]]},{"id":"ce3e7f2b328b5653","type":"inject","z":"f25b549c8bc73a59","name":"Reset","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":110,"y":100,"wires":[["480412d8c1e5da5b"]]},{"id":"2bc95c352e116d1e","type":"trigger","z":"f25b549c8bc73a59","name":"","op1":"ON","op2":"0","op1type":"str","op2type":"str","duration":"-4","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":460,"y":60,"wires":[["1af1544504f997b4"]]},{"id":"480412d8c1e5da5b","type":"change","z":"f25b549c8bc73a59","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":100,"wires":[["2bc95c352e116d1e"]]},{"id":"1af1544504f997b4","type":"trigger","z":"f25b549c8bc73a59","name":"On then Off","op1":"ON","op2":"OFF","op1type":"str","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":510,"y":100,"wires":[["25adab300b9d6fb7"]]},{"id":"25adab300b9d6fb7","type":"debug","z":"f25b549c8bc73a59","name":"debug 458","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":100,"wires":[]}]