node-switchbot
Version:
The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE) with automatic OpenAPI fallback.
33 lines • 1.02 kB
TypeScript
import type { Buffer } from 'node:buffer';
import type { LockCommands, LockStatus } from '../types/device.js';
import { SequenceDevice } from './sequence-device.js';
/**
* Smart Lock Pro Device (with unlatch support)
*/
export declare class WoSmartLockPro extends SequenceDevice implements LockCommands {
private lockNotificationHandlers;
/**
* Lock the lock
*/
lock(): Promise<boolean>;
/**
* Unlock the lock
*/
unlock(): Promise<boolean>;
/**
* Unlock without unlatching the door
*/
unlockWithoutUnlatch(): Promise<boolean>;
/**
* Unlatch the lock (Lock Pro only)
*/
unlatch(): Promise<boolean>;
getLockInfo(): Promise<Record<string, unknown>>;
onLockNotification(handler: (payload: Buffer) => void): Promise<void>;
offLockNotification(handler: (payload: Buffer) => void): void;
/**
* Get device status (BLE-first, API-fallback)
*/
getStatus(): Promise<LockStatus>;
}
//# sourceMappingURL=wo-lock-pro.d.ts.map