UNPKG

homebridge-august-door-sense

Version:
42 lines 1.28 kB
import { Logger } from 'homebridge'; export type AugustHome = { id: string; name: string; }; export type AugustLock = { id: string; name: string; macAddress: string; houseId: string; houseName: string; }; export declare enum AugustDoorStatus { UNKNOWN = 0, CLOSED = 1, OPEN = 2 } export type AugustSession = { apiKey: string; idType: string; identifier: string; token: string; }; export type AugustSessionOptions = { apiKey: string; uuid: string; idType: string; identifier: string; password: string; code: string; }; type AugustStatus = { doorStatus: AugustDoorStatus; serialNumber?: string; }; export declare function augustStartSession(options: AugustSessionOptions, log: Logger): Promise<AugustSession>; export declare function augustGetHouses(session: AugustSession, log: Logger): Promise<AugustHome[]>; export declare function augustGetLocks(session: AugustSession, log: Logger): Promise<AugustLock[]>; export declare function augustGetDoorStatus(session: AugustSession, lockId: string, log: Logger): Promise<AugustStatus>; export declare function augustGetSerialNumber(session: AugustSession, lockId: string, log: Logger): Promise<string>; export {}; //# sourceMappingURL=august.d.ts.map