Schema Devices and Custom Capabilities

You’re right, the Rules API is used to create complex automations, the Actions property includes a Commands section, where you can call a command from the device and send arguments. You can see more details about the parameters it can receive at the SmartThings API reference - Rules and the newest trigger options here: