IoT Platform allows you to define a Thing Specification Language (TSL) model for a product. You can abstract product features into a data model that consists of properties, services, and events. This facilitates cloud management and data interaction. After the product is created, you can define the TSL model. Devices under the product automatically inherit the TSL model.


A product is created. For more information, see Create products and devices.

Background information

This article describes how to define the Current and Main Light Switch TSL properties for the product to which a street lamp belongs. After you define the TSL model, you can add street lamps to the product. The street lamps automatically inherit the defined TSL model. For more information about TSL models, see What is a TSL model?.


  1. In the left-side navigation pane, choose Devices > Products. In the product list, find the product and click View in the Actions column.
  2. On the Product Details page, click the Define Feature tab, and then click Edit Draft.Power Bank Cabinet-Define Feature-Edit Draft
  3. In the Default Module section of the Define Feature page, click Add Self-defined Feature to configure the TSL feature and then click OK.
    Configure the Main Light Switch and Current properties, as shown in the following figures.
    • Main Light Switch propertyiot
    • Current propertyProperty_Counter
  4. Optional. Click TSL Model. On the Full TSL tab, you can view the JSON file of the complete TSL model.
  5. Release the TSL model.
    1. On the Edit Draft page, click Release online. The Release model online? dialog box appears.
    2. Optional. Click +Add post notes, and enter a version number and note.
      Parameter Description
      Version Number The version number of the TSL model. You can manage the TSL model based on the version number.

      The version number must be 1 to 16 characters in length, and can contain letters, digits, and periods (.).

      Note The description of the TSL model. The description can contain letters, digits, and special characters. It must be 1 to 100 characters in length.
    3. If an online version is available, you must check the differences between the current version and the online version.
      Click View differences. In the View Differences dialog box, you can view the differences. After you confirm your settings, click Confirm. In the Release model online? dialog box, the checkbox is automatically selected.
    4. Click OK to release the TSL model.
      • A TSL model is applied to the product only after it is released.
      • IoT Platform can save the latest 10 versions of a TSL model. Earlier versions are overwritten.

What to do next

Connect a device to IoT Platform