UNPKG

homebridge-blaq

Version:

Control and view your garage door(s) remotely with real-time updates using Konnected's BlaQ hardware

44 lines (43 loc) 1.1 kB
export type ConfigDevice = { displayName: string; host: string; port: number; mac?: string; username?: string; password?: string; }; export type GarageLockType = 'lock' | 'lock_remotes'; export type GarageLightType = 'garage_light' | 'light'; export type GarageCoverType = 'garage_door' | 'door'; export type LockStateType = 'UNSECURED' | 'SECURED' | 'JAMMED' | 'UNKNOWN'; export type CurrentOperationType = 'IDLE' | 'OPENING' | 'CLOSING'; export type OpenClosedStateType = 'CLOSED' | 'OPEN'; export type BlaQCoverDoorEvent = { id: string; state: 'CLOSED' | 'OPEN'; value: number; current_operation: 'IDLE' | 'OPENING' | 'CLOSING'; position: number; }; export type BlaQBinarySensorEvent = { id: string; name: string; value: boolean; state: 'OFF' | 'ON'; }; export type BlaQButtonEvent = { id: string; name: string; }; export type BlaQTextSensorEvent = { id: string; name: string; value: string; state: string; }; export type BlaQLockEvent = { id: string; name: string; value: number; state: string; };