UNPKG

homebridge-raspberry-pi-sensehat

Version:
25 lines (24 loc) 970 B
import type { CharacteristicValue, PlatformAccessory } from 'homebridge'; import type { SensehatPlatform } from './sensehatPlatform.js'; /** * Platform Accessory "Sensehat Light" */ export declare class SensehatLightAccessory { private readonly platform; private readonly accessory; private lightService; private lightState; private prevLightState; constructor(platform: SensehatPlatform, accessory: PlatformAccessory); getOn(): Promise<boolean>; getBrightness(): Promise<number>; getHue(): Promise<number>; getSaturation(): Promise<number>; setOn(value: CharacteristicValue): Promise<void>; setBrightness(value: CharacteristicValue): Promise<void>; setHue(value: CharacteristicValue): Promise<void>; setSaturation(value: CharacteristicValue): Promise<void>; getLight: () => Promise<void>; setLight: () => Promise<void>; isStateEqual(a: typeof this.lightState, b: typeof this.lightState): boolean; }