UNPKG

@chazepps/homebridge-hejhome

Version:

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

30 lines (29 loc) 962 B
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 ZigbeeSwitch1 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; setPower(value: CharacteristicValue): Promise<void>; getPower(): Promise<boolean>; updateCharacteristics(): void; }