UNPKG

dirigera

Version:

A TypeScript client for IKEA's DIRIGERA smart home hub

23 lines (22 loc) 886 B
import type { CommonDeviceAttributes, Device, IdentifiableDeviceAttributes, JoinableDeviceAttributes, OtaUpdatableDeviceAttributes } from './Device'; export interface OutletAttributes extends CommonDeviceAttributes, IdentifiableDeviceAttributes, JoinableDeviceAttributes, OtaUpdatableDeviceAttributes { isOn: boolean; startupOnOff: 'startOn' | 'startPrevious' | 'startToggle'; lightLevel: number; startUpCurrentLevel?: number; currentActivePower?: number; energyConsumedAtLastReset?: number; currentAmps?: number; currentVoltage?: number; timeOfLastEnergyReset?: string; totalEnergyConsumed?: number; totalEnergyConsumedLastUpdated?: string; childLock?: boolean; statusLight?: boolean; } export interface Outlet extends Device { type: 'outlet'; deviceType: 'outlet'; attributes: OutletAttributes; isHidden: boolean; }