destroy() => void Destroy the current instance: unregister the device Runtime, clear in-memory state and listeners (accessory instances also release passthrough report listeners). › updateConfig(options: UpdateConfigParams ) => void Update the runtime configuration for the current instance (applies only to this instance’s device). getCloudServiceStatus() => Promise < CloudServiceStatus > Get cloud storage service status (purchased or not / remaining days, etc.) getServicePopupList() => Promise < ServiceBenefitPopupItem [] > Get VAS benefits popup content (vouchers to claim / auto-claimed) › claimService(batchId: string ) => Promise < ClaimResultItem [] > Claim VAS benefits getVasNotifyConfig() => Promise < VasNotifyConfig > Get VAS notification settings (scenario switches and push methods) › updateVasNotifyConfig(params: UpdateVasNotifyConfigParams ) => Promise < VasNotifyConfig > Update VAS notification settings (incrementally update a single switch by key path) getVoipAuth() => Promise < VoipAuth > Get VoIP service authorization / push target info › saveVoipAuth(userId: string ) => Promise < boolean > Set the VoIP push target (select the family member to receive incoming calls). getGestureStatus() => Promise < GestureStatus > Query gesture password status (enabled or not + cloud password string). › getCurrentUser(isForce: boolean ) => Promise < CurrentUser > Get the current user getCurrentUserSync() => CurrentUser Synchronously read the current user from cache (no request is made). › getDeviceStatus() => DeviceStatus Read the device's overall status (online/sleep, etc.). › onDeviceStatusChange(callback: (status: DeviceStatus ) => void ) => void Subscribe to aggregated device status changes (online/sleep, etc.). › offDeviceStatusChange(callback: (status: DeviceStatus ) => void ) => void Unsubscribe from device status changes (must use the same `callback` reference as when subscribing). › getDpValue(code: string ) => DpValue Read the current value of a device DP › hasDp(dpCode: string ) => boolean Check whether the device supports a DP › publishDps(dpData: Record < string , DpValue > , option: PublishDpsOption ) => Promise < Record < string , DpValue > > Send DP to the device › onOfflineDpsUpdate(callback: (dps: OfflineDps ) => void ) => void Listen for offline DP updates › offOfflineDpsUpdate(callback: (dps: OfflineDps ) => void ) => void Unregister the offline DP update listener › publishOfflineDps(dps: Record < string , DpValue > ) => Promise < void > Send offline DP › getOfflineDps(isForce: boolean ) => Promise < OfflineDps > Get offline DP list › getOfflineDpCache(code: string ) => OfflineDpInfo Get the offline DP cache entry for the specified code › isOfflineDpSyncing(code: string ) => boolean Determine whether the specified offline DP is still syncing (push not completed). › getUsers(params: GetUsersParams ) => Promise < getUsersResult > Query the user list with pagination/keywords. › getUserInfo(params: GetUserInfoParams ) => Promise < UserInfo > Get details of a single user. › updateUserLimitTime(params: UpdateUserLimitTimeParams ) => Promise < void > Update user validity, permanent flag, and offline unlock restrictions. › openFamilyUserDetail(userId: string ) => Promise < void > Open the home user details page › addUser(params: AddUserParams ) => Promise < void > Add a regular user › removeUser(userId: string ) => Promise < void > Delete a regular user › addSharedUser(params: AddSharedUserParams ) => Promise < AddSharedUserResult > Add a shared user (Bluetooth door lock). › updateSharedUser(params: UpdateSharedUserParams ) => Promise < void > Update a shared user (Bluetooth door lock). › removeSharedUser(params: RemoveSharedUserParams ) => Promise < void > Remove a shared user (Bluetooth door lock). getSharedUserList() => Promise < SharedUserInfo [] > Get the shared user list openAddFamilyUser() => Promise < void > syncDeleteUsers() => Promise < void > Trigger the cloud/device sync process to delete user-related data. syncUnlockMethod() => Promise < void > Send a command to the device to synchronize unlock methods › getUnlockMethodDetail(id: number ) => Promise < UnlockMethodDetail > Get unlock method details checkSpecialSupportPhone() => boolean Check whether SMS notifications are supported › addPassword(params: AddPasswordParams ) => Promise < CreateUnlockMethodResult > Add a password-type unlock method. › startAddUnlockMethod(params: StartAddUnlockMethodParams ) => Promise < StartAddUnlockMethodResult > Start adding an unlock method › cancelAddUnlockMethod(params: CancelAddUnlockMethodParams ) => Promise < void > Cancel the ongoing add unlock method process. › updateUnlockMethod(params: updateUnlockMethodParams ) => Promise < void > Update unlock method › deleteUnlockMethod(id: number ) => Promise < void > Delete an unlocking method. checkUnBindUnlockMethods() => Promise < boolean > Check whether there are unbound unlocking methods getUnbindUnlockMethods() => Promise < UnBindUnlockMethodGroup [] > Get the list of unbound unlocking methods › bindUnlockMethod(params: BindUnlockMethodParams ) => Promise < boolean > Bind unbound unlocking methods to a user › unbindUnlockMethod(id: number ) => Promise < void > Unbind the user's unlocking method › bindUnlockMethodFromLog(params: BindUnlockMethodFromLogParams ) => Promise < boolean > No unlocking method is associated with the user in the binding record › sendVerifyCode(params: SendVerifyCodeParams ) => Promise < void > Send SMS verification code › onAddUnlockMethod(listener: (event: AddUnlockMethodEvent ) => void ) => void Register a step listener for unlocking methods › offAddUnlockMethod(listener: (event: AddUnlockMethodEvent ) => void ) => void Unregister the step listener for unlocking methods › getUnlockGuide(type: UnlockMethodType ) => Promise < UnlockGuide > Get the guide image or video for the specified unlock method type › createTempCustom(params: CreateCustomParams ) => Promise < TempPasswordResult > Create a custom temporary password. › removeTempCustom(params: RemoveCustomProps ) => Promise < boolean > Delete a custom temporary password. › updateTempCustom(params: UpdateTempPasswordParams ) => Promise < boolean > Update a custom temporary password. getTempEffectiveList() => Promise < EffectivePasswrodItem [] > Get the list of active temporary passwords. › getTempInvalidList(params: GetInvalidListParams ) => Promise < GetTempInvalidListResult > Get the list of invalid temporary passwords clearTempInvalidList() => Promise < boolean > Clear the list of invalid temporary passwords › freezeTemp(params: FreezeParams ) => Promise < boolean > Freeze the specified custom temporary password. › unfreezeTemp(params: FreezeParams ) => Promise < boolean > Unfreeze the specified custom temporary password. › renameTemp(params: RenameParams ) => Promise < void > Rename the temporary password › saveTempOnlineUnlimited(params: CreateOnlineUnlimitedParams ) => Promise < SaveTempOnlineUnlimitedResult > Save an online unlimited-use password › removeTempOnlineUnlimited(id: string ) => Promise < void > Delete an online unlimited-use password getTempOnlineUnlimitedList() => Promise < OnlinePasswordItem [] > Get the list of online unlimited-use passwords › createTempOffline(params: CreateOfflineParams ) => Promise < OfflineTempResult > Create an offline temporary password. › getTempOfflineEffectiveList(pwdTypeCode: OfflinePasswordType ) => Promise < EffectivePasswrodItem [] > Get the list of valid offline passwords › getTempOfflineInvalidList(pwdTypeCode: OfflinePasswordType ) => Promise < EffectivePasswrodItem [] > Get the list of expired offline passwords › createTempLimit(params: CreateLimitParams ) => Promise < TempPasswordResult > Create a time-limited temporary password › createTempOnce(params: CreateOnceParams ) => Promise < TempPasswordResult > Create a single-use temporary password createTempDynamic() => Promise < TempPasswordResult > Create a dynamic temporary password. › createTempClear(params: CreateClearParams ) => Promise < TempPasswordResult > Create an offline password clear code getTempLimitListForClear() => Promise < LimitTempItem [] > Get clearable time-limited password list checkRemoteEnabled() => Promise < void > Check whether (Wi‑Fi) remote unlocking is currently allowed. › openDoor(option: OpenDoorCallOptions ) => Promise < void > Unlock › closeDoor(option: OpenDoorCallOptions ) => Promise < void > Lock › remoteEnabled(state: boolean ) => Promise < void > Enable or disable the remote lock/unlock feature getRemoteEnabled() => boolean Get remote lock/unlock enablement status getRemotePermission() => RemotePermissionType Get current remote open/close door permissions › updateRemotePermission(permission: RemotePermissionType ) => Promise < void > Update the remote open/close door permission policy › agreeOpenDoor(option: OpenDoorCallOptions ) => Promise < void > Approve remote door-open request (used by Wi‑Fi Pro solution) › rejectOpenDoor(option: OpenDoorCallOptions ) => Promise < void > Reject remote door-open request (Wi‑Fi Pro and similar confirmation flows) getVoiceUnlockPwdEnabled() => Promise < boolean > Check whether the voice unlock passcode capability is enabled voiceUnlockPwdDisabled() => Promise < boolean > Disable the voice unlock passcode capability › updateVoiceUnlockPwd(password: string ) => Promise < boolean > Update the voice unlock passcode getRemotePermissionList() => RemotePermissionType [] › onLogsRefresh(cb: () => void ) => void Register for log-refresh notifications › offLogsRefresh(cb: () => void ) => void Unregister the log-refresh notification getLatestLogs() => Promise < GetLatestLogsResult > Get the most recent 2 records › getLogs(params: GetLogsParams ) => Promise < GetLogsResult > Get log record list › getAlarms(params: GetAlarmsParams ) => Promise < GetAlarmsResult > Get alarm log list › getAlbums(params: GetAlbumsParams ) => Promise < GetAlbumsResult > Get album logs › getLockLogList(params: GetLockLogListParams ) => Promise < GetLockLogListResult > Get device log list Supports operation logs, unlock logs, lock logs, and alarm logs getAlarmUnreadCount() => Promise < number > Get the number of unread alerts getActivePeriod() => Promise < number > Get valid security days (since device activation) unlockDp2TypeRecord < string , UnlockMethodType > getWiFiSignal() => Promise < void > Get device signal strength getCurrentWiFiSignal() => number | "unknown" Get Wi-Fi signal strength › onWiFiSignalChange(cb: (params: WiFiSignalChangeParams ) => void ) => void Subscribe to Wi‑Fi signal changes › offWiFiSignalChange(cb: (params: WiFiSignalChangeParams ) => void ) => void Unsubscribe from Wi‑Fi signal changes isSleep() => boolean Whether currently in sleep mode hasSleepAbility() => boolean Check whether the lock supports the sleep feature isEnabledSleep() => boolean Check whether the sleep feature is enabled enableSleep() => Promise < void > Enable the sleep feature disableSleep() => Promise < void > Disable the sleep feature getSleepPeriod() => GetDpPeriodTimeResult Get the sleep time range › updateSleepPeriod(params: UpdateSleepPeriodParams ) => Promise < void > Set the sleep time range › onSleepStatusChange(callback: (args: SleepStatusChangeEvent ) => void ) => void Register sleep-state change event › offSleepStatusChange(callback: (args: SleepStatusChangeEvent ) => void ) => void Unregister sleep-state change event › openScene(options: OpenSceneOptions ) => Promise < void > Open the Smart Scene page isSupportBleControl() => boolean Check whether Bluetooth control is supported › getDpPeriodTime(dpCode: string ) => GetDpPeriodTimeResult Get the current value of a time-range DP › updateDpPeriodTime(dpCode: string , data: UpdateDpPeriodTimeParams , option: UpdateDpPeriodTimeOption ) => Promise < void > Update the time range of a time-range DP › connectDevice(options: ConnectDeviceOptions ) => Promise < true > Initiate the near-field/LAN device connection flow. › gotoService(params: GotoServiceParams ) => Promise < void > Navigate to host pages such as Value-added Services/Cloud Storage. › validatePwdComplexity(password: string ) => Promise < boolean > Validate password complexity per product rules. › parseDpPeriodTime(dpValue: string ) => ParseDpPeriodTimeResult › formatDpPeriodTime(start: number , end: number ) => any › updateGestureStatus(params: UpdateGestureStatusParams ) => Promise < boolean > Set/toggle the gesture password (if a password already exists, you can toggle it directly without the native panel). › getMediaUrl(params: GetMediaUrlParams ) => Promise < MediaUrlResult > Get the actual playback URL of a video isSupportMedia() => boolean Whether media capabilities (video/snapshot, etc.) are supported. getMediaRotate() => MediaRotate Get the device camera rotation angle getMediaInfo() => MediaInfo Get device camera data › openLocalAlbum(params: OpenLocalAlbumParams ) => Promise < void > Open local album › gotoPlayback(params: GotoPlaybackParams ) => Promise < void > Open the playback/cruise monitoring panel isSupportMultiCamera() => boolean Whether multi-camera switching is supported getCameraInfo() => CameraDpInfo Get camera info queryCameraInfo() => Promise < CameraDpInfo > Query camera info › switchCamera(index: number ) => Promise < true > Switch the camera to the specified index getMediaViewTimes() => Promise < MediaViewTimesResult > Get this month's media view count addMediaViewTimes() => Promise < MediaViewTimesResult > Set this month's media view count getAlbumDateList() => Promise < getAlbumDateListResult > Get the list of dates with album records in the last 30 days getCameraConfig() => CameraConfig [] Get information for all cameras › getVoiceFileList() => Promise < VoiceFileItem [] > Get voice file list › sendVoiceFile(file: VoiceFileItem ) => Promise < true > Deliver the voice file to the device › onVoiceFileProgress(callback: (event: VoiceFileProgressEvent ) => void ) => void Subscribe to voice file delivery progress › offVoiceFileProgress(callback: (event: VoiceFileProgressEvent ) => void ) => void Unsubscribe from voice file delivery progress getCurrentVoiceFile() => VoiceFileStatus Get current voice file status getDoorbellService() => Promise < LinkageRule > Get doorbell notification service info enableDoorbellService() => Promise < void > Enable the doorbell notification service disableDoorbellService() => Promise < void > Disable the doorbell notification service toSetDoorbellService() => Promise < void > Go to configure the doorbell notification service getRemainingInfo() => Promise < RemainingInfo > › hasCapability(capability: ProductCommunicationType ) => boolean Whether a certain `ProductCommunicationType` capability is supported. isBlePureDevice() => boolean Whether the current device is a pure Bluetooth lock (no Wi‑Fi/Thread or other communication capabilities). getDeviceAdvancedAbilities() => Promise < DeviceAdvancedAbility > Fetch the device value‑added capability list (cloud). getDeviceAdvancedAbilitiesSync() => DeviceAdvancedAbility Synchronously retrieve the list of device value-added capabilities getDeviceCapabilities() => CapabilityInfo Get device capabilities getAIReport() => Promise < AIReportPopup > Get the pending AI monthly report; returns null if disabled or none available. › acknowledgeAIReport(reportId: string ) => Promise < void > Mark the AI monthly report as read (to prevent duplicate pop-ups). isAIReportEnabled() => Promise < boolean > Whether the AI data report is enabled (cloud capability ai_data_report && device property LOCK_UNLOCK_REPORT). › bindFitToLock(fit: UnbindFitItem ) => Promise < unknown > Bind an accessory to the current door lock. › unbindFitToLock(fit: BoundFitLockItem & Object ) => Promise < unknown > Unbind the accessory from the current door lock. › getBoundFitList() => Promise < BoundFitLockItem [] > Get the list of accessories currently bound to the lock. › getUnbindFitList() => Promise < UnbindFitItem [] > Get the list of accessories that can be bound to the current lock. › getScreenEventList(params: ScreenEventListParams ) => Promise < ScreenEventListResult > Get the paginated list of activity events for the current detached screen. getScreenBoundLockList() => Promise < BoundLockListResult > Get the list of locks currently bound to the detached screen. getScreenBindableLockList() => Promise < BindableLockListResult > Get the list of locks that can be bound to the current detached screen. › bindLockToScreen(lockDevId: string ) => Promise < AddBindingResult > Initiate binding the specified lock to the current detached screen. › onBindLockToScreen(listener: (event: BindLockToScreenEvent ) => void ) => void Subscribe to the result of binding a lock to the detached screen. › offBindLockToScreen(listener: (event: BindLockToScreenEvent ) => void ) => void Unsubscribe from the result of binding a lock to the detached screen (must use the same reference as in subscribe). › unbindLockFromScreen(relationId: string ) => Promise < UnbindingResult > Remove the specified binding relation and return after the unbinding result converges in the cloud. getBoundLockList() => Promise < BoundLockListItem [] > Get the list of locks bound to the current accessory; each item includes a security version compatibility check getUnbindLockList() => Promise < UnbindLockListItem [] > Get the list of locks that can be bound to the current accessory; each item includes a bindability check › bindLockToFit(lock: UnbindLockItem ) => Promise < unknown > Bind the lock to the current accessory › unbindLockToFit(lock: BoundFitLockItem & Object ) => Promise < unknown > Unbind the lock from the current accessory › activateLockToFit(lock: BoundFitLockItem ) => Promise < void > Activate a bound lock device › fitAddPassword(params: FitAddPasswordParams ) => Promise < void > Add a password on the accessory side › fitStartAddUnlockMethod(params: FitStartAddUnlockMethodParams ) => Promise < FitStartAddUnlockMethodResult > Start a multi-stage process on the accessory side to add an unlock method (fingerprint/card/face, etc.) › fitCancelAddUnlockMethod(params: FitCancelAddUnlockMethodParams ) => Promise < void > Cancel the in-progress add-unlock-method process on the accessory side › onFitAddUnlockMethod(listener: (event: FitAddUnlockMethodEvent ) => void ) => void Register an accessory-side listener for add-unlock-method steps › offFitAddUnlockMethod(listener: (event: FitAddUnlockMethodEvent ) => void ) => void Unregister the accessory-side listener for add-unlock-method steps › fitUpdateUnlockMethod(params: FitUpdateUnlockMethodParams ) => Promise < void > Update an unlock method on the accessory side (cloud-only) › fitDeleteUnlockMethod(id: number , lockDevId: string ) => Promise < void > Delete an unlock method on the accessory side › getFitUnlockMethodList(params: GetFitUnlockMethodListParams ) => Promise < FitUnlockMethodItem [] > Get the list of unlock methods of the specified type for the accessory. › syncOpenModeRise(dpCodes: string [] ) => Promise < SyncOpenModeRiseResult > Initiate unlock-method synchronization. getFitBleKeyList() => Promise < FitBleKeyItem [] > Get the accessory's Bluetooth key list. › addFitBleKey(params: Record < string , unknown > ) => Promise < unknown > Add a Bluetooth key on the accessory side. › createFitPermanentBleKey(userId: string ) => Promise < unknown > Create a permanent Bluetooth key on the accessory side › createFitTemporaryBleKey(params: CreateTemporaryBleKeyParams ) => Promise < unknown > Create a temporary Bluetooth key on the accessory side › updateFitTemporaryBleKey(params: UpdateTemporaryBleKeyParams ) => Promise < unknown > Update the temporary Bluetooth key on the accessory side (rename/change the validity period) › removeFitBleKey(params: RemoveFitBleKeyParams ) => Promise < unknown > Delete a Bluetooth key on the accessory side. › renameFitBleKey(params: RenameFitBleKeyParams ) => Promise < unknown > Rename a Bluetooth key on the accessory side. getFitUsers() => Promise < FitUserItem [] > Get the member (user) list for the accessory. › getFitLogs(params: GetFitLogsParams ) => Promise < GetLogsResult > Get the accessory's door open/close record list getFitPasswordList() => Promise < FitPasswordItem [] > Get the current accessory's online password list. getFitOnlinePasswordList() => Promise < FitOnlinePasswordItem [] > Get the current accessory's online password details list (retaining original fields such as opModeType/effective period/phone number/lock name). getFitOfflinePasswordList() => Promise < FitOfflinePasswordItem [] > Get the list of valid offline temporary passwords for the current accessory. › addFitTempPwd(params: AddFitTempPwdParams ) => Promise < AddFitTempPwdResult > Add a temporary password on the accessory. › removeFitTempPwd(params: RemoveFitTempPwdParams ) => Promise < void > Delete a temporary password on the accessory. › updateFitTempPwd(params: UpdateFitTempPwdParams ) => Promise < void > Modify a temporary password on the accessory. › renameFitTempPwd(params: RenameFitTempPwdParams ) => Promise < void > Rename a temporary password on the accessory. › renameFitOfflineTempPwd(params: RenameFitOfflineTempPwdParams ) => Promise < void > Rename an offline temporary password on the accessory (cloud-only). › revokeFitOfflineTempPwd(params: RevokeFitOfflineTempPwdParams ) => Promise < FitOfflineClearCodeResult > Delete an offline temporary password on the accessory: generate a 'clear code' (cloud-only). › resendFitTempPwd(params: ResendFitTempPwdParams ) => Promise < boolean > Resend the temporary password SMS. › getFitInvalidPwdList(params: GetFitInvalidPwdListParams ) => Promise < FitInvalidPwdListResult > Retrieve the list of expired passwords for the accessory. › clearFitInvalidPwd(params: ClearFitInvalidPwdParams ) => Promise < boolean > Clear the accessory's expired passwords. getFitDynamicPassword() => Promise < TempPasswordResult > Get the current accessory's dynamic password (short-term validity; usable multiple times within 5 minutes). getFitOfflineOncePassword() => Promise < FitOfflineOnceResult > Get the current accessory's one-time offline password › getFitOfflineLimitPassword(params: FitOfflineLimitParams ) => Promise < FitOfflineOnceResult > Get the current accessory's time-limited offline password getFitOfflineClearAllCode() => Promise < FitOfflineOnceResult > Generate the 'Clear All' erase code getFitOfflineRevocableList() => Promise < LimitOfflinePwdItem [] > Get the list of offline passwords that can be "cleared individually" (time-limited offline passwords used at least once). › getFitOfflinePwdAvailable(pwdType: string ) => Promise < OfflinePwdAvailableResult > Check whether a given type of offline password for the current accessory can still be obtained (one-time/clear codes limited to 10 per hour).