Issuing commands to the device

During the normal operation of the cloud-connected device, a user’s action can result in a command for the device. Such action can occur either on the SmartThings app, or by an Automation in use. The resulting device command is first sent to SmartThings Cloud, which then calls the SmartThings Connector. The SmartThings Connector should then relay the command to the device cloud, which actuates the device.

See picture below.

Actuate cloud device

Here is an example of a POST request body to execute a command on a device.

    "component": "main",
    "capability": "temperatureSetPoint",
    "command": "setTemperature",
    "arguments": [
        "value": 5,
        "unit": "°C"
204 No content (success)


Commands are asynchronous. That is, when a command to a device is issued by the SmartThings Connector, the 204 No content (success) response is sent back from SmartThings Cloud, only indicating that the command is valid, and that the SmartThings Connector has permissions to issue this command. Proper events will be created by SmartThings Cloud when the device is eventually actuated.