dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
23 lines (22 loc) • 869 B
TypeScript
import type { CommonDeviceAttributes, Device, IdentifiableDeviceAttributes, JoinableDeviceAttributes, OtaUpdatableDeviceAttributes } from './Device';
export interface LightAttributes extends CommonDeviceAttributes, IdentifiableDeviceAttributes, JoinableDeviceAttributes, OtaUpdatableDeviceAttributes {
isOn: boolean;
startupOnOff: 'startOn' | 'startPrevious' | 'startToggle';
lightLevel: number;
colorHue?: number;
colorSaturation?: number;
colorTemperature?: number;
colorTemperatureMin?: number;
colorTemperatureMax?: number;
startupTemperature?: number;
colorMode?: 'temperature' | 'color';
identifyStarted: string;
identifyPeriod: number;
circadianRhythmMode?: string;
}
export interface Light extends Device {
type: 'light';
deviceType: 'light';
attributes: LightAttributes;
isHidden: boolean;
}