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": "colorControl",
        "command": "setHue",
        "arguments": [
          {
            "value": 25,
            "unit": "percent"
          }
        ]
      }
    ]
        204 No content (success)