homebridge-rabbitair
Version:
Homebridge plugin for RabbitAir air purifiers
43 lines (42 loc) • 1.52 kB
TypeScript
import { type CharacteristicValue, type PlatformAccessory } from 'homebridge';
import type { RabbitAirPlatform } from './platform.js';
/**
* RabbitAir Platform Accessory
* An instance of this class is created for each RabbitAir air purifier.
*/
export declare class RabbitAirAccessory {
private readonly platform;
private readonly accessory;
private service;
private client;
private updateInterval;
private initialUpdateTimeout;
private currentState;
constructor(platform: RabbitAirPlatform, accessory: PlatformAccessory);
/**
* Start periodic updates of device state
*/
private startPeriodicUpdates;
/**
* Stop periodic updates and cleanup resources
*/
private stopPeriodicUpdates;
/**
* Cleanup resources
*/
cleanup(): Promise<void>;
/**
* Update device state from RabbitAir device
*/
private updateDeviceState;
setActive(value: CharacteristicValue): Promise<void>;
getActive(): Promise<CharacteristicValue>;
getCurrentAirPurifierState(): Promise<CharacteristicValue>;
setTargetAirPurifierState(value: CharacteristicValue): Promise<void>;
getTargetAirPurifierState(): Promise<CharacteristicValue>;
setRotationSpeed(value: CharacteristicValue): Promise<void>;
getRotationSpeed(): Promise<CharacteristicValue>;
getFilterChangeIndication(): Promise<CharacteristicValue>;
getFilterLifeLevel(): Promise<CharacteristicValue>;
getAirQuality(): Promise<CharacteristicValue>;
}