Skip to main content

The device Object for Locks

Represents a lock. The Seam API enables you to control connected smart locks from a wide variety of manufacturers, including locks that provide online and offline access code programming. Depending on the smart lock brand and model, actions that you can perform include remote unlock, remote lock, and programming access codes. You can also view a lock’s properties, capabilities, and status. Further, you can monitor for unlock and lock events. See also Webhooks.

Properties

Boolean
Indicates whether the lock supports configuring automatic locking.
Boolean
Indicates whether the thermostat supports cooling.
Boolean
Indicates whether the thermostat supports heating.
Boolean
Indicates whether the thermostat supports simultaneous heating and cooling.
Boolean
Indicates whether the device supports programming offline access codes.
Boolean
Indicates whether the device supports programming online access codes.
Boolean
Indicates whether the thermostat supports different climate programs for each day of the week.
Boolean
Indicates whether the thermostat supports a single climate program applied to every day.
Boolean
Indicates whether the thermostat supports weekday/weekend climate programs.
Boolean
Indicates whether the device supports remote locking.
Boolean
Indicates whether the device supports remote unlocking.
Boolean
Indicates whether the thermostat supports running climate programs.
Boolean
Indicates whether the device supports simulating connection in a sandbox.
Boolean
Indicates whether the device supports simulating disconnection in a sandbox.
Boolean
Indicates whether the hub supports simulating connection in a sandbox.
Boolean
Indicates whether the hub supports simulating disconnection in a sandbox.
Boolean
Indicates whether the device supports simulating a paid subscription in a sandbox.
Boolean
Indicates whether the device supports simulating removal in a sandbox.
Boolean
Indicates whether the thermostat can be turned off.
Boolean
Indicates whether the lock supports unlocking with an access code.
Array
Collection of capabilities that the device supports when connected to Seam. Values are access_code, which indicates that the device can manage and utilize digital PIN codes for secure access; lock, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; noise_detection, which indicates that the device supports monitoring and responding to ambient noise levels; thermostat, which indicates that the device can regulate and adjust indoor temperatures; battery, which indicates that the device can manage battery life and health; and phone, which indicates that the device is a mobile device, such as a smartphone. Important: Superseded by capability flags.
String (UUID)
Unique identifier for the account associated with the device.
String (ISO 8601)
Date and time at which the device object was created.
Object
Set of key:value pairs. Adding custom metadata to a resource, such as a Connect Webview, connected account, or device, enables you to store custom information, like customer details or internal IDs from your application.
String (UUID)
ID of the device.
Enum (String)
Type of the device.
String
Display name of the device, defaults to nickname (if it is set) or properties.appearance.name, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
Array
Array of errors associated with the device. Each error object within the array contains two fields: error_code and message. error_code is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. message provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.
Boolean
Indicates whether Seam manages the device. See also Managed and Unmanaged Devices.
String
Optional nickname to describe the device, settable through Seam.
Object
Properties of the device.
Array
IDs of the spaces the device is in.
Array
Array of warnings associated with the device. Each warning object within the array contains two fields: warning_code and message. warning_code is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. message provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.
String (UUID)
Unique identifier for the Seam workspace associated with the device.

Access Codes

Boolean
deprecated
Deprecated. use device.can_program_offline_access_codesIndicates whether it is currently possible to use offline access codes for the device.
Boolean
deprecated
Deprecated. use device.can_program_online_access_codesIndicates whether it is currently possible to use online access codes for the device.
Boolean
deprecated
Deprecated. use device.properties.model.can_connect_accessory_keypadThe supports accessory keypad.
Boolean
deprecated
Deprecated. use offline_access_codes_enabledThe supports offline access codes.
Boolean
Indicates whether the backup access code pool is currently enabled for the device. To disable it, set this to false using /devices/update.
Array
Constraints on access codes for the device. Seam represents each constraint as an object with a constraint_type property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.
Boolean
Indicates whether the device supports native entry events.
Object
Keypad battery status.
number
Maximum number of active access codes that the device supports.
Array
Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options’ duration ranges do not overlap, or by display_name when they do) and satisfies that one option’s rules. When undefined, any time frame works.
Array
Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options’ duration ranges do not overlap, or by display_name when they do) and satisfies that one option’s rules. When undefined, any time frame works.
Array
Supported code lengths for access codes.
Boolean
Indicates whether the device supports a backup access code pool.

Locks

number
The delay in seconds before the lock automatically locks after being unlocked.
Boolean
Indicates whether automatic locking is enabled.
Boolean
Indicates whether the door is open.
Boolean
Indicates whether the lock is locked.