This Action will send a command to a specific device.
- API endpoint slug
- attm2x.send_command
- Filter code method
- Attm2x.sendCommand.skip(string?: reason)
- Runtime method
- runAction("attm2x.send_command", {})
Action fields
- Label
- Which device?
- Helper text
- The device ID can be found on the Device Details page of your M2X account.
- Slug
- device_id
- Required
- true
- Can have default value
- true
- Filter code method
- Attm2x.sendCommand.setDeviceId(string: deviceId)
- Label
- Command name
- Helper text
- The name of the command that will be sent to the device.
- Slug
- command_name
- Required
- true
- Can have default value
- true
- Filter code method
- Attm2x.sendCommand.setCommandName(string: commandName)
- Label
- Command data
- Helper text
- Optional additional data to be sent along with the command (must be a valid JSON string).
- Slug
- command_data
- Required
- false
- Can have default value
- true
- Filter code method
- Attm2x.sendCommand.setCommandData(string: commandData)