Trigger light to go on/off/on within 3 seconds

I think most people would now do it with webcore, which is essentially a scripting language for smartthings. Very powerful. See the FAQ:

FAQ: What is WebCoRE? (And what was CoRE?)