I’m an experienced developer who’s looking to create a few custom apps (and I think device handlers) for SmartThings. After looking at existing handlers & SmartApps that I’m using and reading through the ST dev docs, I’m a little confused and looking for some guidance. It seems, but I can’t figure out, is that Samsung recently introduced some changes to their platform that may have introduced new things and deprecated others… but I can’t tell if this is accurate or not.
I have two different scenarios: (1) connect directly to a local device (RaspberryPI) to monitor and control devices & sensors connected to it & (2) connect to a cloud hosted REST API to monitor & issue commands.
It appears the for both, I want to create device handlers and SmartApps… correct? Is there a special device handler API? Looking at some samples, I see some methods in the groovy file that I can’t find declared or referenced anywhere so I assume these are global methods part of an API.
Next question, how does a handler work with a SmartApp? I’m not groking what the SmartApp does. It seems like it is a way for me to create a “project” that contains settings that the handlers can use or walk the user through an auth process… but I can’t see how it’s connected/integrated/uses with the handlers.
Looking for someone who can help me connect the dots… thanks!