UNPKG

homebridge-mqtt-ceiling-fan-remote

Version:

A remote using http commands to control a hunter ceiling fan via a tasmotized sonoff rfbridge for homebridge written in Typescript

34 lines (33 loc) 1.4 kB
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; import { CeilingFanRemote } from './platformAccessory.js'; /** * HomebridgePlatform * This class is the main constructor for your plugin, this is where you should * parse the user config and discover/register accessories with Homebridge. */ export declare class CeilingFanRemotePlatform implements DynamicPlatformPlugin { readonly log: Logger; readonly config: PlatformConfig; readonly api: API; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; readonly accessories: PlatformAccessory[]; readonly rooms: CeilingFanRemote[]; readonly remotes: { [remote_id: string]: CeilingFanRemote[]; }; readonly initializedRemotes: string[]; readonly remoteCommands: {}; private mqttClient; private rfbridgeResultsTopic; private rfbridgeBootTopic; private debounceQueue; constructor(log: Logger, config: PlatformConfig, api: API); /** * This function is invoked when homebridge restores cached accessories from disk at startup. * It should be used to setup event handlers for characteristics and update respective values. */ configureAccessory(accessory: PlatformAccessory): void; private removeUnusedAccessoriesFromCache; initialize(): void; }