If you like the coding style there is a community-developed rules engine called Webcore which is essentially a scripting language for smartthings. very popular for people with a technical background. It was originally developed under the classic app, but they have already said that it will be available on the new platform and it was one of the examples they showed at a recent Samsung event. see the following FAQ: