UNPKG

@chazepps/homebridge-hejhome

Version:

The Hejhome plugin allows you to access your Hejhome device(s) from HomeKit.

44 lines (43 loc) 1.48 kB
import { CharacteristicValue, PlatformAccessory } from 'homebridge'; import { HejhomePlatform } from '../platform.js'; import { HejDevice } from '../requests/get_devices.js'; import { Base } from './base.js'; export declare class LightRgbw5 extends Base { private service; private platform; private accessory; private device; constructor(platform: HejhomePlatform, accessory: PlatformAccessory, device: HejDevice); get state(): { power?: boolean; lightMode?: "WHITE" | "COLOR" | "SCENE"; hsvColor?: { hue: number; saturation: number; brightness: number; }; brightness?: number; sceneValues?: string; power1?: boolean; power2?: boolean; battery?: number; lastMotionAt?: number; } | null; setOn(value: CharacteristicValue): Promise<void>; getOn(): Promise<CharacteristicValue>; setBrightness(value: CharacteristicValue): Promise<void>; getBrightness(): Promise<CharacteristicValue>; setHue(value: CharacteristicValue): Promise<void>; getHue(): Promise<CharacteristicValue>; setSaturation(value: CharacteristicValue): Promise<void>; getSaturation(): Promise<CharacteristicValue>; private hue; private saturation; private brightness; setHSV(hsv: { hue?: number; saturation?: number; brightness?: number; }): Promise<void>; updateCharacteristics(): void; }