English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Manage Virtual Devices

Last Updated on : 2021-10-21 10:23:41download

Virtual devices help you to perform cloud development without an actual IoT device. You can add virtual devices to quickly simulate the cloud development process.

Add devices on the Devices tab

Note: Your account of the Tuya Smart app has been linked with your project. For more information, see Link Devices.

You can link virtual devices under the Tuya Smart app or the Smart Life app. This section takes a virtual plug as an example to describe how to add a virtual device.

  1. Log in to the platform.

  2. Choose Development > My Cloud Projects and select a project.

  3. Click the Devices tab.

  4. Click the All Devices tab and click Add Device > Add Virtual Device.
    Manage Virtual Devices

  5. Select a virtual device. In this example, the selected virtual plug is from Products on TuyaGo. On the Add Virtual Devices pane, click Products on TuyaGo > Electrical > Outlets > Plugs > Add Virtual Devices.

    • Products on TuyaGo: All products that support virtual device functionality.
    • My Products: All the products that you created on the Tuya IoT Platform.

    Note: My Products include all the products that you have created on the Tuya IoT Platform.

    Manage Virtual Devices

  6. Select a method to link the virtual device. For example, click Add to Tuya App Account. Scan the QR code to add a virtual device.
    Manage Virtual Devices

    You can also link virtual devices in the following ways.

    • Add to Asset
      Select the asset path to add the device.
    • Add to My App
      Add this virtual device to the test account of your developed app, and then you can debug and control the virtual device by making API requests The linked details are as follows:
      • Select App: Select a linked app.
      • Account: Enter the username or UUID.
      • Home: Link this virtual device with a specific home.

Action result: You can view and operate the virtual device with the Tuya Smart or Smart Life app.

Add devices on the Assets tab

  1. Log in to the platform.

  2. Choose Cloud > Development > My Cloud Projects and select a project.

  3. Click Assets in the top navigation bar.
    Manage Virtual Devices

  4. Click the Devices tab and choose Add Device > Add Virtual Devices for Debugging.

  5. Select a virtual device. In this example, the selected virtual plug is from Products on TuyaGo. On the Add Virtual Devices pane, click Products on TuyaGo > Electrical > Outlets > Plugs > Add Virtual Devices.
    Manage Virtual Devices

Action result: After the actions, the added devices will be automatically synchronized to the assets. A Virtual tag will appear following the device name.

Manage Virtual Devices