
The CONFIGURE lifecycle event defines a set of UI controls in a layout that are presented to a user through it's JSON response.Įlements on the UI are defined such as selecting sensors like temperature measurements, contact sensors, or a whole host of others in the SmartThings ecosystem. The first request is a PING, and that verifies that the webhook can be reached.Īs soon as someone attempts to install the app, a series of calls are made to configure the app and trigger an installation. When an application is registered in the SmartThings developer portal, an HTTP URL is supplied for the application.Īs soon as that is done, it makes requests. Those 4 being mentioned are the absolute minimum that need to be implemented in order for the application to work. These request lifecycle events include things like PING, CONFIGURE, UPDATE, INSTALL, and so on. The applications are really just HTTP webhooks that respond with information to requests by the Smart Things infrastructure.Įach request made to the webhook is part of a "lifecycle". Building a Smart Things Smart Appīuilding a SmartThings Smart App is a semi-complicated venture without using an SDK. I'm going to talk about a few of the overall concepts, and how the code glues it all together.

SMARTTHINGS CREATE SMARTAPP HOW TO
The documentation on how to get started on both of those is pretty good. I'm not going to go through the full process on how to set up a Samsung Developer or Azure Function, but will touch on what they are. So, I built a small Azure Function as a WebHook that SmartThings calls in real time to get this type of data. SmartThings allows building web hooks (Smart Apps) to react to data and events. I've wanted to integrate with them for some time to build various applications around them, or to be able to audit things in my house such as if I leave a door open for too long. Mainly, I have a few around doors around the house with contact sensors to know if they've been opened. A few years ago, I started placing SmartThings sensors around my home.
