<mappings> <input-mappings>************************** All your input commands go here </input-mappings>************************** You must create the output section <output-mappings>************************** All your output(led) commands go here************************** You must close the output section </output-mappings>************************** You must close the mappings </mappings>************************** You must close the controller </controller>************************** You must close the file</main>

This set condition for on, off and blink when it is a loop.the duration value determines the length of time of the state in millisecond.500 milliseconds =.5 seconds so on the example the led turns of for .5 seconds and on for .5 seconds (blink)