Virtual device

Developer Workspace provides the virtual device through the Web Console and the IDE. The virtual device contains a device profile including a device type and its capabilities, so that you can test the Virtual device instead of the physical device with the SmartThings app or the plugin simulator.

To open the virtual device Launcher, do one of the following:

  • In the Web Console, go to Tools > Virtual Device and click Run Virtual Device.
  • In the IDE, either:
    • Select Packages > SmartThings > Run As > Virtual Device in the menu bar.
    • Click the Virtual Device icon from the toolbar along the top.

Create a new virtual device

The virtual device contains the information as below:

  • Device Type - You can select the directly connected or cloud-to-cloud device. But for now we support only directly connected devices.
  • Device profile - You can select one of the device profiles you’ve registered.
  • Virtual Device name - Enter the name for your new virtual device.
  • Manufacturer ID - This is assigned to your Samsung Account, and identifies which device plugins you can view when you log into the SmartThings app.

With the Web Console

VirtualDevice from Web Console

  1. Go to Tools > Virtual Device.
  2. Enter the information about the targeted device.
  3. Click REGISTER.

With the IDE

  1. To create a new virtual device, do one of the following:
    • Select Packages > SmartThings > New virtual Device in the menu bar.
    • Press Alt + Shift + D.
  2. Enter the information about the targeted device. VirtualDevice from IDE
  3. Click Finish.

Launch the virtual device

  1. To open virtual device launcher, click OPEN VIRTUAL DEVICE LAUNCHER. You can see the virtual device Launcher in a new window. virtual device launcher
  2. Click LAUNCH of the virtual device which you want to test with. You can see your selected virtual device.
  3. If you want to delete the virtual device, click DELETE of the virtual device.

Control the virtual device

The virtual device shows the virtual device name, the device ID, and the list of its available resources. When you click a resource, each resource lists its functions. virtual device control

You can manually operate the functions in the virtual device. When you change a value, data is automatically sent to the cloud. virtual device control2