UNPKG

@ronniepettersson/homebridge-dummy

Version:

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

18 lines (17 loc) 816 B
import { CharacteristicValue, PlatformAccessory } from 'homebridge'; import { DummyAccessory } from '../base.js'; import { CharacteristicType, OnOffConfig, ServiceType } from '../../model/types.js'; import { Webhook } from '../../model/webhook.js'; import { Log } from '../../tools/log.js'; export declare abstract class OnOffAccessory<C extends OnOffConfig = OnOffConfig> extends DummyAccessory<C> { private on; constructor(Service: ServiceType, Characteristic: CharacteristicType, accessory: PlatformAccessory, config: C, log: Log, isGrouped: boolean); webhooks(): Webhook[]; private initializeOn; private get defaultOn(); private getOn; private setOn; schedule(): Promise<void>; reset(): Promise<void>; protected logMessageForOnState(value: CharacteristicValue): string; }