@homebridge-plugins/homebridge-smarthq
Version:
The SmartHQ plugin allows you to interact with SmartHQ Devices in HomeKit and with Siri.
34 lines • 1.64 kB
TypeScript
import type { CharacteristicValue, PlatformAccessory } from 'homebridge';
import type { SmartHQPlatform } from '../platform.js';
import type { devicesConfig, SmartHqContext } from '../settings.js';
import { deviceBase } from './device.js';
export declare class SmartHQHood extends deviceBase {
protected readonly platform: SmartHQPlatform;
protected readonly accessory: PlatformAccessory<SmartHqContext>;
protected readonly device: SmartHqContext['device'] & devicesConfig;
private readonly FAN_SVC_NAME;
private readonly LIGHT_SVC_NAME;
private readonly fanSvc;
private readonly lightSvc;
constructor(platform: SmartHQPlatform, accessory: PlatformAccessory<SmartHqContext>, device: SmartHqContext['device'] & devicesConfig);
private getErdValue;
private setErdValue;
private getFanSpeed;
private setFanSpeed;
private getLightLevel;
private setLightLevel;
private fanSpeedToRotationSpeed;
private rotationSpeedToFanSpeed;
private lightLevelToBrightness;
private brightnessToLightLevel;
handleGetFanActive(): Promise<CharacteristicValue>;
handleSetFanActive(value: CharacteristicValue): Promise<void>;
handleGetFanRotationSpeed(): Promise<CharacteristicValue>;
handleSetFanRotationSpeed(value: CharacteristicValue): Promise<void>;
handleGetLightOn(): Promise<CharacteristicValue>;
handleSetLightOn(value: CharacteristicValue): Promise<void>;
handleGetLightBrightness(): Promise<CharacteristicValue>;
handleSetLightBrightness(value: CharacteristicValue): Promise<void>;
refreshState(): Promise<void>;
}
//# sourceMappingURL=hood.d.ts.map