Skip to main content
When developing an app to control IoT devices—before moving to production—it is imperative to test your app against events like device disconnection and removal. However, it can be difficult to orchestrate these events in your quality assurance (QA) environment using real devices. To help you test your app more easily and effectively, Seam provides the following suite of simulate endpoints that you can use in a sandbox workspace:
Currently, Seam supports these endpoints for August and Yale sandbox devices.

Simulation Capability Flags

The Seam API provides the following sandbox-only capability flags that show you which simulate endpoints you can currently use on a device:
  • device.can_simulate_disconnection
  • device.can_simulate_connection
  • device.can_simulate_removal

Simulate Disconnecting a Device

To simulate a device disconnection: Code:
Output:

Simulate Connecting a Device

To simulate a device connection: Code:
Output:

Simulate Removing a Device

To simulate a device removal: Code:
Output:

Simulate Device Disconnection, Connection, and Removal in the Seam Console

You can also use the Seam Console to simulate disconnecting, connecting, and removing a device.
Currently, Seam supports these actions for August and Yale sandbox devices.
  1. In the upper-right corner of the Seam Console, click the down arrow to display the workspace list and select a sandbox workspace.
  2. In the left navigation pane of the Seam Console, click Connected Accounts.
  3. Click the account that contains the device that you want to simulate disconnecting, connecting, or removing.
  4. At the right of the row for the desired device, click and select Simulate Removal, Simulate Connection, or Simulate Disconnection.
    The Seam Console only displays the actions that you can perform based on the current state of the device. For example, if the device is already disconnected, you cannot simulate disconnection.
  5. Click Simulate Removal, Simulate Connection, or Simulate Disconnection to confirm the action.