Played with it a bit, try this
[{"id":"14f630f.3ecfecf","type":"tab","label":"Alive","disabled":false,"info":""},{"id":"1487b85e.3df798","type":"ui_led","z":"14f630f.3ecfecf","group":"6d162e99.278f3","order":2,"width":0,"height":0,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"0","valueType":"num"},{"color":"green","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"name":"","x":490,"y":60,"wires":[]},{"id":"78e813de.89ae0c","type":"inject","z":"14f630f.3ecfecf","name":"","topic":"","payload":"1","payloadType":"num","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":60,"wires":[["38e8476d.5d8358"]]},{"id":"38e8476d.5d8358","type":"function","z":"14f630f.3ecfecf","name":"LED","func":"let z = msg.payload;\nlet y = flow.get('led');\nvar msg1 = { payload: 0};\nvar msg2 = { payload: 1};\nvar msg3 = { payload: 0}\n\nif (y == 'red'){\n flow.set('led','green');\n msg3 = { payload: 0}\n node.status({fill:\"red\",shape:\"dot\",text:\"LED \" + y});\n return [msg1, msg2, msg3];\n} \nif (y == 'green') {\n flow.set('led','red');\n msg3 = { payload: 1}\n node.status({fill:\"green\",shape:\"ring\",text:\"LED \" + y});\n return [msg2, msg1, msg3];\n}\n\nflow.set('led','red');\n\nreturn msg;","outputs":3,"noerr":0,"x":250,"y":60,"wires":[["1487b85e.3df798","375b28d8.530428","f3dfa914.8f09a8"],["3eb65a92.980abe"],["ca535ab9.78c458"]]},{"id":"375b28d8.530428","type":"mqtt out","z":"14f630f.3ecfecf","name":"LED","topic":"LED","qos":"0","retain":"true","broker":"9b49824b.ebaf5","x":490,"y":100,"wires":[]},{"id":"f3dfa914.8f09a8","type":"rpi-gpio out","z":"14f630f.3ecfecf","name":"","pin":"33","set":true,"level":"0","freq":"","out":"out","x":500,"y":160,"wires":[]},{"id":"3eb65a92.980abe","type":"rpi-gpio out","z":"14f630f.3ecfecf","name":"","pin":"35","set":true,"level":"0","freq":"","out":"out","x":500,"y":220,"wires":[]},{"id":"ca535ab9.78c458","type":"rpi-gpio out","z":"14f630f.3ecfecf","name":"","pin":"37","set":true,"level":"0","freq":"","out":"out","x":500,"y":280,"wires":[]},{"id":"6d162e99.278f3","type":"ui_group","z":"","name":"Home","tab":"fe965871.9140d8","disp":false,"width":"6","collapse":false},{"id":"9b49824b.ebaf5","type":"mqtt-broker","z":"","name":"four","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"fe965871.9140d8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]