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
31 lines (30 loc) • 1.24 kB
TypeScript
import { PlatformAccessory, CharacteristicValue } from 'homebridge';
import { CeilingFanRemotePlatform } from './platform';
import EventEmitter from 'node:events';
/**
* Platform Accessory
* An instance of this class is created for each accessory your platform registers
* Each accessory may expose multiple services of different service types.
*/
export declare class CeilingFanRemote extends EventEmitter {
private readonly platform;
private readonly accessory;
private name;
private serial;
private lightService;
private fanService;
private accessoryState;
constructor(platform: CeilingFanRemotePlatform, accessory: PlatformAccessory);
get config(): any;
getLightOn(): Promise<CharacteristicValue>;
getLightBrightness(): Promise<CharacteristicValue>;
getFanActive(): Promise<CharacteristicValue>;
getFanSpeed(): Promise<CharacteristicValue>;
setLightOn(value: CharacteristicValue): Promise<void>;
setLightBrightness(value: CharacteristicValue): Promise<void>;
setFanActive(value: CharacteristicValue): Promise<void>;
setFanSpeed(value: CharacteristicValue): Promise<void>;
private get commands();
update(command: number): void;
private saveState;
}