Create a No-Code Three-Gang Switch

Last Updated on : 2024-09-13 08:51:38download

This topic describes how to create a switch product with a no-code solution on the Tuya Developer Platform, using Three-gang Switch Pro Wi-Fi and Bluetooth LE combo as an example.

Create a switch product

Procedure

  1. Log in to the Tuya Developer Platform.

  2. Click Create.

    Create a No-Code Three-Gang Switch

  3. Find Standard Category, and click Electrical > Switch.
    Create a No-Code Three-Gang Switch

  4. Find Choose a product plan, and click Zero-Coding Development > WiFi+Bluetooth > 3-gang > Three-gang Switch Pro_Wi-Fi_Bluetooth LE. Create a No-Code Three-Gang Switch

    Note: If the functions provided by the no-code solution fails to meet your requirements, you can turn to custom solutions with the reference of SoC custom firmware process.

  5. Complete product information.

    • Product Name (required): Enter the brand and product name. The name will be displayed on the app control panel.
    • Product Model (optional): Enter the product model. Multiple models are available, separated by a comma.

    Note:

    • The model will not be displayed on the app. It is recommended to enter the internal model name or customer’s product model to ease product and order management on the platform.
    • The product information above can be modified in subsequent steps. See Modify product information.

    Create a No-Code Three-Gang Switch

  6. Click Create. When a product is created, you will see Create Standard Functions of the step of Function Definition.

Define product features

Procedure

  1. In the dialog box of Create Standard Functions, add functions as needed, and click Confirm.Create a No-Code Three-Gang Switch

    Note:

    • The required functions cannot be removed from the selected functions.
    • Select data points for different products according to actual interface prompts.

  2. (Optional) Modify product information. Product information can be modified at any stage of the no-code solution. Create a No-Code Three-Gang Switch

  3. (Optional) On the Function Definition page, enable cloud functions as needed. Create a No-Code Three-Gang Switch

  4. Click Next: Device Panel at the bottom of the page. You will see the Device Panel page.

Configure device panel

This section describes how to configure a device panel, using a public panel as an example. If you require custom panels or panel editing, you can proceed with relevant operations as per the prompts.

Procedure

  1. On the Device Panel page, find an ideal panel and click Apply.Create a No-Code Three-Gang Switch

    Note: More panels are available after upgrading to an enterprise account.

  2. (Optional) You can change or edit the panel as needed. Scan the QR code with the Tuya Smart app to preview. Create a No-Code Three-Gang Switch

  3. Click Next: Hardware Commission. You will see the Hardware Commission page.

Hardware commission

This section uses the WB3S Wi-Fi and Bluetooth LE combo module to describe hardware commission. It is recommended that professional engineers perform hardware commissioning.

Note

  • The modules will be burned according to the firmware parameters in the following steps, and the modules can not be changed after being sent.
  • If you change the firmware configuration parameters after the module is sent, the two modules will be inconsistent. The old product cannot be upgraded online.

Procedure

  1. Select a module as needed after checking the module details. Create a No-Code Three-Gang Switch

  2. Configure firmware parameters in the Generate firmware 1 To be generated area. The specific parameter configuration is as follows. Create a No-Code Three-Gang Switch

    Parameter Type Parameters Description
    Master control settings Device Status
    • Power off: Each time the device is powered on again, the relay is off.
    • Power on: Each time the device is powered on again, the relay is on.
    • Power off memory: Each time the device is powered on again, the relay is in the last status before power off.
    button_type
    • Level trigger - button switch: Triggering upon the button is pressed and released.
    • Edge trigger - touch switch: Triggering immediately after the button is pressed.
    • Level flip trigger - paddle switch: Pull up from external. The normally open and normally closed status of the paddle switch does not correspond with on/off status, Every operation involves relay.
    • High and low level trigger - paddle switch: the normally open and normally closed status of the paddle switch corresponds with the on/off status. It might involve one invalid operation.
    Hardware function selection Backlight selection Select as needed. Backlight switch DP corresponds with backlight function respectively.
    Zero-crossing action selection Select as needed.
    distribution_network_setting first_distribution_network_trigger_mode Pairing triggering mode when the switch is powered on for the first time.
    • Power on and networking without timeout and anti-error deletion: The indicator keeps blinking upon the first time pairing after power-on. The function of anti-error deletion is not included.
    • Long press to networking for 3 minutes timeout without anti-error deletion: Press the pairing button until the indicator starts blinking, which indicates that the pairing is ready to start. The function of anti-error deletion is not included.
    • Long press to networking for 3 minutes timeout with anti-error deletion included: Press the pairing button until the indicator starts blinking, which indicates that the pairing is ready to start. The function of anti-error deletion is included.
    • Long press to networking for 3 minutes timeout without anti-error deletion: The indicator keeps blinking upon the first time pairing after power-on, which indicates that the pairing is ready to start. The function of anti-error deletion is not included.
    • Long press to networking for 3 minutes timeout with anti-error deletion: The indicator keeps blinking upon the first time pairing after power-on, which indicates that the pairing is ready to start. The function of anti-error deletion is included.
      Note: With the 3-minute timeout relink function, when a device is locally reset, if it is not paired by another account in 3 minutes, it will retain all the configuration information of the previous account. Otherwise, it will be paired as a new device. If you want to remove pairing information of this device from the account, you can use the app, including Tuya Smart, Smart Life, and OEM app, to remove the configuration or restore factory defaults.
    reset_time The time of pressing and holding the button to restore the device.
    Value range: 3 to10 seconds.
    netled Select a pin from the pull-down menu and the selected one cannot be used for other parameter configurations. High-level active and low-level active.
    Note: When the indicator is blank, use the first relay indicator of the configuration as network indicator. Network indicator and relay indicator cannot both be blank.
    Network indicator status when not connected Select the indicator status as needed when it is not connected to the network.
    Network indicator status when connected Select the indicator status as needed when it is connected to the network.
    Channel settings Button Select a pin from the pull-down menu and the selected one cannot be used for other parameter configurations. High-level active and low-level active.
    Relay Select a pin from the pull-down menu and the selected one cannot be used for other parameter configurations. High-level active and low-level active.
    relay led Select a pin from the pull-down menu and the selected one cannot be used for other parameter configurations.
  3. When the configuration is completed, click Online Firmware Generation.

  4. Development debugging. Follow the interface prompts, view the circuit schematic, download the Tuya Cloud Test app, and perform debugging.

  5. After debugging is completed, Click Next: Product Configuration. You will see Product Configuration page.

Product configuration

Configure items according to operating instructions. When the configuring is finished, click Next: Test Services. Create a No-Code Three-Gang Switch

Test service

Follow the prompts on the page to perform a self-service test with the Tuya Cloud Test app and produce a test report. You can also subscribe to the Tuya Test service. When the test is completed, click Next: Product Release. Create a No-Code Three-Gang Switch

Note:

  • Tuya Cloud Test app is only available for Android.
  • For more information about the Tuya Cloud Test process, see Tuya Cloud Test App.
  • Do not delete developing or completed products to avoid data loss and affecting proper product usage.