After you create a product, you must define its features. This is done by defining a Thing Specification Language model.
Features are composed of three elements: properties, events, and services.
| Three Elements of a Feature | Description |
| Property | Describes the runtime status of a device. Supports reading and setting the status, such as on/off state, temperature, and color. |
| Service | Implements complex business logic. Services can include input and output parameters to make a device perform a specific task. For example, an oven's baking service requires setting the time and temperature. |
| Event | Describes device runtime events, such as instant notifications. Events can also include multiple output parameters. For example, an event is triggered when a motion sensor detects a person or an air conditioner reports a failure. |
Each product has the following two types of features.
| Feature type | Description |
| Standard features | The platform creates default standard features for each product category based on the ICA Data Standard. |
| Custom features | If the standard features do not match your device, define custom features. Note Feature customization is available only in Private Brand Projects. |
You must define a Thing Specification Language model for each product. For more information, see Thing Specification Language model overview.
| Feature type | Description |
| Import Thing Specification Language model | Import a Thing Specification Language model by copying it from an existing product or by uploading a local JSON file. Note You can import a Thing Specification Language model only for products in a Private Brand Project. |
| View Thing Specification Language model | After you define the features, the platform automatically generates a Thing Specification Language model in JSON format. The model is based on the standard and custom features. |
| Export Thing Specification Language model | When you view a Thing Specification Language model, you can export it. For more information, see Export a Thing Specification Language model. |
该文章对您有帮助吗?