getFitBleKeyList()
Requires:
@ray-js/lock-sdk≥1.2.0
Description
Get the accessory's Bluetooth key list.
Parameters
None
Return Value
Type: Promise<FitBleKeyItem[]>
Bluetooth key list
FitBleKeyItem
| Property | Type | Description |
|---|---|---|
id | string | Key ID |
unlockBindingId | string | Unlock binding ID (used for rename/update/delete) |
name | string | Key name |
opModeSubType | number | Subtype; in the Bluetooth key scenario, `10` is a permanent key, other values are temporary keys. |
| Validity configuration (time/period) | ||
sn | number | Hardware ID |
userName | string | Username (permanent key scenario) |
devNameList | string[] | List of associated lock names |
Referenced Types
interface
EffectiveConfig| Property | Type | Description |
|---|---|---|
effectiveDate | number | Effective date (seconds-level timestamp) |
expiredDate | number | Expiration date (seconds-level timestamp) |
repeat | "none" | "week" | Repeat policy: none or weekly |
weeks | Week | Weekly repeat bitmap |
effectiveTime | number | Daily start time (minutes) |
expiredTime | number | Daily end time (minutes) |
type
WeekWeekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 activeValid Values
EffectiveConfig.repeat
| Value | Description | Since |
|---|---|---|
none | - | - |
week | - | - |
Week
| Value | Description | Since |
|---|---|---|
0 | - | - |
1 | - | - |