Send Device Commands

Device commands are sent by users via the SmartThings app or by Automations. A device command is first sent to SmartThings Cloud, which then calls the SmartApp Connector. The SmartApp Connector should then relay the command to the third-party device cloud, which actuates the device.

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"
      }
    ]
  }
]

See also