UNPKG

@chazepps/homebridge-hejhome

Version:

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

31 lines (30 loc) 946 B
import { HejhomePlatform } from '../platform.js'; export declare const getDevices: (platform: HejhomePlatform, familyId: number, roomId?: number) => Promise<HejDevices>; export interface HejDeviceState { power?: boolean; lightMode?: 'WHITE' | 'COLOR' | 'SCENE'; hsvColor?: { hue: number; saturation: number; brightness: number; }; brightness?: number; sceneValues?: string; power1?: boolean; power2?: boolean; battery?: number; } export interface HejDevice { id: string; name: string; deviceType: 'LightRgbw5' | 'ZigbeeSwitch1' | 'ZigbeeSwitch2' | 'IrFan' | 'IrTv' | 'SensorMo' | 'LedStripRgbw2' | 'SmartButton' | 'SensorTh' | 'RelayController'; hasSubDevices: boolean; modelName: string | null; familyId: number; category: string; deviceState: HejDeviceState | null; online: boolean; roomId?: number; } type HejDevices = HejDevice[]; export {};