UNPKG

homebridge-purpleair-sensor

Version:
31 lines 1.16 kB
import { PlatformAccessory } from 'homebridge'; import { PurpleAirPlatform } from './platform'; /** * 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 PurpleAirPlatformAccessory { private readonly platform; private readonly accessory; private service; private humidity?; private temperature?; constructor(platform: PurpleAirPlatform, accessory: PlatformAccessory); debugLog(message: string): void; infoLog(message: string): void; errorLog(message: string): void; getAirQuality(): any; getPM2_5Density(): any; getVOCDensity(): any; getCurrentRelativeHumidity(): any; getCurrentTemperature(): any; update(): Promise<void>; /** * Handle the "GET" requests from HomeKit * These are sent when HomeKit wants to know the current state of the accessory, for example, checking if a Light bulb is on. */ getStatusActive(): boolean; updateHomeKit(aqiInsteadOfDensity: boolean): void; } //# sourceMappingURL=platformAccessory.d.ts.map