UNPKG

@ronniepettersson/homebridge-dummy

Version:

Create Homebridge accessories to help with automation and control — scheduling, delays, sensors, commands, webhooks, and more

21 lines (20 loc) 984 B
import { CharacteristicValue, PlatformAccessory } from 'homebridge'; import { DummyAccessory } from './base.js'; import { AccessoryType } from '../model/enums.js'; import { CharacteristicType, LockConfig, ServiceType } from '../model/types.js'; import { Webhook } from '../model/webhook.js'; import { Log } from '../tools/log.js'; export declare class LockAccessory extends DummyAccessory<LockConfig> { private state; constructor(Service: ServiceType, Characteristic: CharacteristicType, accessory: PlatformAccessory, config: LockConfig, log: Log, isGrouped: boolean); private initializeState; getAccessoryType(): AccessoryType; webhooks(): Webhook[]; private get defaultLockState(); protected getState(): Promise<CharacteristicValue>; protected setState(value: CharacteristicValue): Promise<void>; schedule(): Promise<void>; reset(): Promise<void>; private logTemplateForCV; protected logLockState(value: CharacteristicValue): void; }