The SmartApp way was/is a bit complicated, but it’s now changing: SmartThings new “real” traditional API is now in public Beta. Try it.