@chazepps/homebridge-hejhome
Version:
The Hejhome plugin allows you to access your Hejhome device(s) from HomeKit.
39 lines (38 loc) • 1.18 kB
TypeScript
import { EventEmitter } from 'events';
import { Base } from '../accessories/base.js';
import { HejhomePlatform } from '../platform.js';
export declare const hejEvent: EventEmitter<[never]>;
type HejDevice = {
id: string;
roomId?: number;
name: string;
deviceType: 'LightRgbw5' | 'ZigbeeSwitch1' | 'ZigbeeSwitch2' | 'IrFan' | 'IrTv' | 'SensorMo' | 'LedStripRgbw2' | 'SmartButton' | 'SensorTh' | 'RelayController';
hasSubDevices: boolean;
modelName: string | null;
familyId: number;
category: string;
deviceState: {
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;
online: boolean;
};
export declare const hejAccessories: {
[id: string]: Base;
};
export declare const hejDevices: {
[id: string]: HejDevice;
};
export declare const startRealtime: (platform: HejhomePlatform) => Promise<void>;
export {};