Last Updated on : 2023-10-12 08:00:14download
This topic describes Tuya’s scaffold templates for panel development and how to get the scaffold templates.
Tuya’s scaffold templates can be obtained in either of the following methods:
Method 1: Use Tuya’s SDK to download the templates.
$ tuya-panel-cli init [projectName]
$ cd [projectName]
$ yarn && yarn start
Method 2: Visit the GitHub repository tuya-panel-demo to check the templates or download them.
$ git clone https://github.com/tuya/tuya-panel-demo.git
$ cd tuya-panel-demo/examples
The following table lists a variety of scaffold templates for panel development.
Name | GitHub repository | Scan to preview | Example |
---|---|---|---|
Air purifier | airPurifier | ![]() |
![]() |
Air thermostat | airThermostat | ![]() |
![]() |
React Native TypeScript template 0.59 | basic-ts-0.59 | ![]() |
![]() |
Basic navigation template | basic-ts-navigation | ![]() |
![]() |
Cooker | cooker | ![]() |
![]() |
Curtain | Curtain | ![]() |
![]() |
Curtain switch | curtainSwitch | ![]() |
![]() |
Electric heating table | electricHeatingTable | ![]() |
![]() |
Bluetooth Low Energy mesh gateway | gatewayBleMesh | ![]() |
![]() |
Zigbee gateway | gatewayZigbee | ![]() |
![]() |
IPC | Ipc | ![]() |
![]() |
Basic IPC (recommended) | ipcBasic | ![]() |
![]() |
Classic light bulb | lampClassic | ![]() |
![]() |
Dimmer | lampDimmer | ![]() |
![]() |
Generic light bulb | lampGeneric | ![]() |
![]() |
Power strip | platoonSocket | ![]() |
![]() |
Scene switch | scenario | ![]() |
![]() |
Contact sensor | sensor | ![]() |
![]() |
Smart lock | smartLock | ![]() |
![]() |
Zigbee lock | smartLockZigbee | ![]() |
![]() |
Switch | switch | ![]() |
![]() |
Wireless switch | wirelessSwitch | ![]() |
![]() |
For more information about Tuya’s scaffold templates, see GitHub repository.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback