@elshaer/homebridge-hdl-buspro-enhanced
Version:
Linking the HDL bus into the Homebridge widget
29 lines • 1.21 kB
TypeScript
import { PlatformAccessory, CharacteristicValue } from 'homebridge';
import { EventEmitter } from 'events';
import { Device } from 'smart-bus';
import { HDLBusproHomebridge } from './HDLPlatform';
import { ABCDevice, ABCListener } from './ABC';
export declare class ContactSensor implements ABCDevice {
private readonly platform;
private readonly accessory;
private readonly name;
private readonly controller;
private readonly device;
private readonly listener;
private readonly area;
private readonly channel;
private readonly nc;
private service;
private ContactStates;
constructor(platform: HDLBusproHomebridge, accessory: PlatformAccessory, name: string, controller: Device, device: Device, listener: DryListener, area: number, channel: number, nc: boolean);
getOn(): Promise<CharacteristicValue>;
}
export declare class DryListener implements ABCListener {
private readonly device;
private readonly controller;
private channelsMap;
private eventEmitter;
constructor(device: Device, controller: Device);
getChannelEventEmitter(area: number, channel: number): EventEmitter<[never]>;
}
//# sourceMappingURL=ContactSensor.d.ts.map