dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
36 lines (33 loc) • 868 B
text/typescript
import type {
CommonDeviceAttributes,
Device,
IdentifiableDeviceAttributes,
JoinableDeviceAttributes,
OtaUpdatableDeviceAttributes,
} from './Device.ts'
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
}