UNPKG

homebridge-mhi-wfrac

Version:

A homebridge plugin for Mitshubishi WF-RAC aircos (using the Smart M-Air app)

32 lines (31 loc) 1.31 kB
import { PlatformAccessory, CharacteristicValue } from 'homebridge'; import { HomebridgeMHIWFRACPlatform } from './platform.js'; export declare class WFRACAccessory { private readonly platform; private readonly accessory; static REFRESH_INTERVAL: number; private readonly deviceName; private readonly deviceMac; private readonly deviceId; private readonly ipAddress; private readonly port; private readonly operatorId; private device; private thermostatService; private fanService; private dehumidifierService; private refreshTimeout; private readonly selfManaged; constructor(platform: HomebridgeMHIWFRACPlatform, accessory: PlatformAccessory, ip: string, operatorId: string, selfManaged: boolean); private ensureRegistered; private handleSetError; private runSetCommand; refreshStatus(): void; updateStatus(): void; setTargetHeatingCoolingState(value: CharacteristicValue): Promise<void>; setTargetTemperature(value: CharacteristicValue): Promise<void>; setFanActive(value: CharacteristicValue): Promise<void>; setTargetFanState(value: CharacteristicValue): Promise<void>; setRotationSpeed(value: CharacteristicValue): Promise<void>; setHumidifierActive(value: CharacteristicValue): Promise<void>; }