For SmartApps, you’ll need to host those yourself, and can use whatever language you’d like to communicate with the ST API.
For Device Type Handlers, it depends whether or not your device needs to connect via a Hub. For now, hub-connected devices are still using Groovy, with no replacement announced, yet… Direct-Connected devices will communicate directly to the ST Cloud Server via the new API.
There are threads discussing these topics, which are quite active with developers trying to migrate everything that they can.
How to build Direct Connected devices with the SmartThings Platform
Direct connected devices do not require a middle cloud or a hub. After flashing the firmware the device will use the SmartThings platform as its backend provider. Communication happens directly between the platform and the device over MQTT. The SDK enables rapid development of these devices on a variety of low cost SOCs.
Workstation Setup
Prerequisites:
Latest release of Ubuntu (v20.04 as of this tutorial)
Python 3
ESP32 SoC
Espressif IDF
SmartThings SDK for Direct Connected Devices
Example Apps
Development of Direct Connected devices with the SDK is currently optimized for Ubuntu workstations. The tutorial will be using the latest 20.04 release of Ubuntu. The distro does not matter, but a Debian-based distro will …
Overview
At SmartThings we want to provide tooling to allow developers to get their device integrations working in the SmartThings app. These changes will allow an integrator to move from using custom commands and attributes to custom capabilities.
DTH Migration For Custom Capabilities
In order to follow along with the example set forth in this guide, you will want to have the CLI set up, so make sure that you take this step first.
You can download the CLI here from the releases tab and read more about it in the README .
It is also recommended that you familiarize yourself with the concepts:
Custom Capabilities
Capability Presentations
Walkthrough
We are going to walk through a simple example of updating our Device Type Handler (DTH) so that devices installed with the DTH will be …