getDeviceIdList(params: Object)
Requires:
HomeKit≥3.1.0@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Description
Get the list of device IDs under the current home from local cache
Parameters
| Property | Type | Required | Description | HomeKit Since |
|---|---|---|---|---|
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 |
|---|---|---|
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