English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Create Products

Last Updated on : 2022-09-21 03:51:42download

Product creation is the first step in product development. A smart product has a globally unique identifier—Product ID (PID). The product contains all the metadata of the smart device set you can deploy in the actual scenarios, including the core and basic functional attributes in product development. The metadata also includes customized support services. Based on products, the entire process of product development goes from product creation to production scheduling.

This topic describes how to create a smart product on the Tuya IoT Development Platform.

Before you start

  1. Learn about product solutions. Before creating a product, you can visit Solution Center to learn about Tuya’s product development solutions, find out more about features of a specified product category, and look for alternative product solutions.
  2. Learn more communication protocols. IoT protocols and standards are classified into:
    • Network protocols: Wi-Fi, Zigbee, Bluetooth, Long Range (LoRa), Narrowband Internet of Things (NB-IoT), cellular networks (such as 5G), Tuya Beacon, Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Modbus, serial port types (such as RS-433, RS-485, USB), and more. During product creation, the support for network protocols varies depending on the product category.
    • IoT data protocols: HTTP/HTTPS, Constrained Application Protocol (CoAP), Message Queuing Telemetry Transport (MQTT), Extensible Messaging and Presence Protocol (XMPP), Advanced Message Queuing Protocol (AMQP), and Java Message Service (JMS), and more.
  3. Learn about device integration methods. The integration methods, also known as smart modes, determine the two-way communication method between your product and Tuya IoT Development Platform. For more information, see Smart Mode.

Prerequisites

A developer account is registered on the Tuya IoT Development Platform and the account identity is verified.

Procedure

Step 1: Select a category

  1. Log in to the Tuya IoT Development Platform.

  2. On the homepage, click Create.

    Create Products

  3. On the Standard Category or By Business Type tab, select your desired category.

    • Method 1: Select the level-1 and level-2 categories, and then a specified product. For example, click Electrical and select Socket under Plug & Outlet.

      Create Products

    • Method 2: If you are not sure which category a product belongs to, you can click the search icon in the top right corner, and enter a category name in the search box.

      Create Products

Step 2: Select a smart mode

Smart modes are used to distinguish the device integration methods. TuyaOS and TuyaLink are available for you to choose from. For more information about their definitions and difference, see Smart Mode.

Create Products

Step 3: Select a solution

Based on the smart mode you have selected, you can continue to select a solution with varied development difficulty and flexibility.

Create Products

  • No-Code Development: You only need to create a product and purchase the corresponding module to complete the development.

    • Only TuyaOS smart mode supports no-code development.
    • No-code development solutions only apply to some product categories, such as electrical, lighting, sensor, IP camera, voice & control panel, outdoor travel, and gateway control.
  • Custom Solution: You need to implement product application logic by yourself, and use MCU SDK, TuyaOS, or TuyaLink to manage connections between the device and the cloud.

    As a more flexible development method, custom solutions apply to a wider range of categories and achieve more diversified features. However, it is more difficult to deal with custom solutions.

Step 4: Complete product information

You can describe the product and confirm its communication type. The product information varies depending on the smart mode and solution you have selected. Meanwhile, the product category you have selected also affects the product information options. The actual instructions on the page shall prevail. Here are some examples.

  • No-code development:
    Create Products

  • Custom solution:

    • TuyaOS:

      Create Products

    • TuyaLink:

      Create Products

The following table lists the description of product information:

Parameter Description Example Application scope
Product name (required) Specify a name for the product. XXX (brand) + XXX (product) + XXX (module model). All options
Product model (optional) Specify a model for the product. User-defined model, used to distinguish one product from another. XXX (AE1123) All options
Product description (optional) Briefly describe ​the product features. None TuyaLink
Device type (required) The device type cannot be modified after product creation. There are three types of devices:
  • Common device: refers to devices that can access the Tuya IoT Development Platform through a direct connection or a router. The common device can also connect to a gateway as a sub-device but cannot work as a hub to connect sub-devices to the cloud.
  • Gateway Device: refers to devices that can work as a hub to connect sub-devices to the cloud. A gateway can manage sub-devices, maintain the topological relationships with the sub-devices, and synchronize the topology information to the cloud.
  • Gateway Sub-Device: refers to devices that cannot connect directly to the cloud. They must connect to a gateway as a sub-device to access the cloud.
Common device TuyaLink
Data protocol (required) The data protocol cannot be modified after product creation. There are two types of data protocols:
  • Tuya Standard Protocol: indicates the device interacts with the cloud with the device model-defined standard data format.
  • Custom: indicates the device interacts with the cloud with the raw data. The cloud converts raw data into device model data.
Tuya standard protocol TuyaLink
Protocol (required) Indicates the protocol used for communication. If the product you create is not supported by your required protocol, you can submit a ticket or feedback to contact Tuya. Wi-Fi Custom solution
Power type (required) Standard Power Consumption is selected by default. Standard power consumption Custom solution
  • Please carefully confirm the required product information, which will affect the subsequent process and configuration of product development.
  • If you use the Custom Solution to develop gateway devices, you must select the upstream and downstream protocols.
    • The upstream protocol establishes the communication between the gateway device and the cloud. That is the Protocol. Wi-Fi is selected by default.
    • The downstream protocol establishes the communication between the gateway device and the sub-devices. That is the Wireless Connectivity. For example, Zigbee is such type of protocol.
      Create Products

Next steps

After a product is created, you can perform the following actions based on your selected smart mode:

  • TuyaOS: You can add functions to this product, including standard functions, custom functions, and advanced functions. For more information, see Product Functions.
  • TuyaLink: You can define functions for a TuyaLink-based product. For more information, see Function Definition.