Device
APIs for device query, attribute read/write, and command execution
đī¸ List Device Types
Get all existing device types (DeviceType) in your Aqara Studio.
đī¸ List Devices
Paginated device information query, supporting filter by space, online status, associated gateway, device type, and device name.
đī¸ Query Device Definitions (Device Details)
Query device definitions (device details), including device types, endpoints, and properties.
đī¸ Get Device Filter Options
Returns the protocol instances that have been created and are visible to the caller, which can be used as filter conditions for /devices.
đī¸ Query Single Device Matching Capabilities
Query the capabilities of a single device that meet the filter criteria. Only matched definitions and the current value for the corresponding traits will be returned. The full device definition will NOT be returned.
đī¸ Batch Query Device Matching Capabilities and Current Trait Values
Batch-query matching capabilities for the explicit `deviceIds` list. Always returns a device array, with no pagination. `deviceIds` is required, and the raw array may contain at most 20 items, including duplicates. After trimming, devices are queried in first-occurrence order with duplicates removed.
đī¸ Control Devices by Traits
Control devices by traits. You can perform the following operations:
đī¸ Query Trait Values
Batch query the current values of specified traits.
đī¸ Control Devices by Commands
Use commands to control device.
đī¸ Send Command to Device and Wait for Response
Control the device via command and obtain the device's response from the server. <br />
đī¸ Batch Query Device Point Information
Query the associated space, device name, and point name for points by deviceId, endpointId, functionCode and traitCode/commandCode.
đī¸ Update Device Name
Update the device name by device ID.
đī¸ Update Device Point Name
Update the trait or command point name for a device; either traitCode or commandCode must be provided, but not both.
đī¸ Delete A Function
Delete a function by deviceId, endpointId, and functionCode.
đī¸ Add A Virtual Device
Add a virtual device. Currently, two types are supported:
đī¸ Bind source device function points
Bind source device function points to a custom virtual device (i.e., virtual device of type `virtual`).
đī¸ Unbind source device function points
Unbind source device function points from the custom virtual device (i.e., virtual device of type `virtual`). This does not affect the original source device.
đī¸ Unbind A Device
Unbind a specified device. After successful unbinding, you will no longer see this device in Aqara Studio.