There are at least four existing threads on this issue.
First you have to activate developer mode, and then as @Paul_Oliver mentioned, you will be able to do it from the Discover tab under add an automation in the smartthings app. But again, they’re already multiple threads on this, a couple just added in the last 10 days or so.