getDeviceIdList
Requires:
HomeKit≥3.1.0@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Method signature
getDeviceIdList(params: )Minimum SDK versions
- iOS
ThingSmartHomeKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-homekit - ≥ 5.2.0
Description
Get the list of device IDs under the current home from local cache
Parameters
| Property | Type | Required | Description | HomeKit Since | Minimum SDK versions |
|---|---|---|---|---|---|
ownerId | number | Yes | Home ID | - | — |
roomId | number | Yes | Room ID | v3.7.10 |
|
devId | string | Yes | Device ID | v3.8.0 |
|
complete | () => void | No | Completion callback (executed on both success and failure) | - | — |
success | (params: Object) => void | No | Callback on successful API call | - | — |
fail | (params: Object) => void | No | Failure callback | - | — |
success callback parameters
| Property | Type | Description | Minimum SDK versions |
|---|---|---|---|
devIds | string[] | Device ID list | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None