Last Updated on : 2024-06-19 02:11:58download
There are three options to develop a smart product using Tuya’s modules:
Before getting started with the SDK development, you need to create a product on the Tuya Developer Platform and select the function, panel, and module to get the data point (DP) ID and product ID (PID).
The example in this topic uses the ZSU Zigbee module to show you how to create a 1-gang switch product on the platform.
Log in to the Tuya Developer Platform. Click Create.
In the Standard Category, choose the desired product category. The example chooses Electrical > Switch.
Choose TuyaOS for smart mode.
To perform custom development on top of the SDK, choose Custom Solution.
The no-code development allows you to generate the firmware by configuring it in a graphical interface without coding. For more information, see No-Code Development.
Complete the required information and select a protocol. Click Create.
We are going to develop a Zigbee 1-gang switch with the ZSU Zigbee module, so we choose Zigbee for the protocol. If you are not clear about what protocol your module uses, check out the datasheet.
Data point (DP) is an abstract representation of a feature you want to apply to a physical device, which can be defined by various data types.
Select the standard functions as needed and click OK.
If the standard functions cannot meet your needs, you can create custom functions. Note that the standard functions can be displayed and operated properly on the app panel but this might not work for the custom functions.
To ensure the stable operation of your product, we recommend the total number of standard functions and custom functions be limited to 40. Otherwise, make sure to test the stability of your product.
For more information, see Product Functions.
Select a control panel as you prefer.
You can choose an all-in-one panel or use the SDK to develop a custom panel. The panels for some products support drag-and-drop configuration.
For more information, see Panel Development.
Select the development method and module. Download the SDK and upload the custom firmware.
Click the Hardware Development tab. Choose TuyaOS and then the module for use. We choose the ZSU Zigbee Module.
Scroll down the page and find Development Documents. Download the debugging file and the SDK.
After you build the firmware, you can click Add Custom Firmware to upload it.
Configure product-specific features including firmware update, multilingual support, push notification, pairing guides, quick toggle, smart scenes, and more.
For more information, see Product Configuration
You can test product functions using a real device and a virtual device.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback