WebCore is probably The best place to start. It’s essentially a scripting language for SmartThings, very powerful.
The thread I linked to is still interesting, but was written before webcore existed.