Integrating SmartThing's automation requires an understanding of the SmartApp lifecycles and implementing its protocol. The SmartThings nodes provided in the Automation Studio allows you to wire installed devices to implement autorun rules without any code. Or simply deploying an Automation node that implements the SmartApp lifecycle without coding. Event nodes for device subscriptions, Status nodes for device status checks, and Command nodes for device commands are provided.
In general, the SmartThings Automation is designed in the following order.
This node represents an installed device. In this flow, You need to choose a device for automation. Event, Condition and Action nodes need to know which devices will subscribe to the SmartThings Cloud or commands. This node has a capability that represents a device feature. Find more information about the Capabilities of SmartThings.
A label of the Name assigned by the user. It is a unique name in the flow.
The List of Capabilities provided by this Device. Determines if this Device supports the specified capability name.
This node represents the WebHook Endpoint of SmartApp. The Automation node handles lifecycles of SmartApp. A WebHook endpoint in this context is a web services application which can receive incoming HTTP POST requests.
A Name for the WebHook endpoint.
An Endpoint that should be invoked during execution.
lifecyle Event Next node is the Event node only.
This node is registered as a subscriber through the Automation Node. Must be used with Automation Node.
This node represents a change of device. Whenever a user installs a SmartApp, they typically will select the devices to be used on the SmartApp. The installed device interacts with this event node. When the device changes and an event occurs, the event node can receive the event as a subscriber.
The label of the Device assigned by the user.
The unique system identifier for this Device.
The list of Attributes for this Device. Determines if this Device has the specified attribute.
This node checks the status of the device. When a user installs a SmartApp, they typically will select the devices to be used by the SmartApp. This condition node interacts with the installed device. This node allows you to branch the flows based on the state of the device.
The list of Attribute s for this Device. Determine if this Device has the specified attribute.
This node can commands to the device. When a user installs a SmartApp, they typically will select the devices to be used by the SmartApp. This action node interact with the installed device. The commands in this action node can change the state of the installed device.
The List of Capabilities provided by this Device. Determine if this Device supports the specified capability name.
The list of Attribute s for this Device. Determines if this Device has the specified attribute.
It's a SmartThings Automation using ContactSensor and LIFX Bulb
In order for SmartThings Automation to work, app-registration is required.
Deploying your SmartApp to test does not mean your Service is published. When you deploy your Service to test, only the Samsung developer account used to deploy to test will be able to install the Service from the SmartThings app, and only after enabling developer mode in the SmartThings app.
test-your-device
After this, you can install the SmartApp that "Deploy to Test" above.