You might want to move to the new SmartThings API.
Have a look on this thread and follow the links to the documentation.