The following is old, so some of the examples may be out of date, but the concepts and process should still help if you do want to look for a groovy DTH.
[OBSOLETE] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)