Please read the FAQ, it answers all of the questions you just asked.
[OBSOLETE] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)
Please read the FAQ, it answers all of the questions you just asked.
[OBSOLETE] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)