import { Service } from 'homebridge' export interface YeelightIdentify { name: string address: string; } export interface YeelightDeviceProps { identify: YeelightIdentify service?: Service } export interface YeelightDeviceInfo { location: string; id: string; model: string; support: string; power: boolean; bright: number; color_mode: number; ct: number; rgb: string; hue: number; sat: number; host: string; port: number; debug: boolean; trackedAttributes: string[]; fw_ver: string; name: string; } export interface YeelightResponse { id?: number; result?: string[]; error?: { code: number; message: string }; } export interface YeelightProperties { power?: string; // on: smart LED is turned on / off: smart LED is turned off bright?: string; // Brightness percentage. Range 1 ~ 100 ct?: string; // Color temperature. Range 1700 ~ 6500(k) // rgb?: string; // Color. Range 1 ~ 16777215 // hue?: string; // Hue. Range 0 ~ 359 // sat?: string; // Saturation. Range 0 ~ 100 color_mode?: string; // 1: rgb mode / 2: color temperature mode / 3: hsv mode flowing?: string; // 0: no flow is running / 1:color flow is running delayoff?: string; // The remaining time of a sleep timer. Range 1 ~ 60 (minutes) // flow_params?: string; // Current flow parameters (only meaningful when 'flowing' is 1) // music_on?: string; // 1: Music mode is on / 0: Music mode is off // name?: string; // The name of the device set by “set_name” command bg_power?: string; // Background light power status bg_flowing?: string; // Background light is flowing bg_flow_params?: string; // Current flow parameters of background light bg_ct?: string; // Color temperature of background light bg_lmode?: string; // 1: rgb mode / 2: color temperature mode / 3: hsv mode bg_bright?: string; // Brightness percentage of background light bg_rgb?: string; // Color of background light bg_hue?: string; // Hue of background light bg_sat?: string; // Saturation of background light nl_br?: string; // Brightness of night mode light active_mode?: string; // 0: daylight mode / 1: moonlight mode (ceiling light only) }