dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
33 lines (30 loc) • 789 B
text/typescript
import type {
CommonDeviceAttributes,
Device,
IdentifiableDeviceAttributes,
JoinableDeviceAttributes,
OtaUpdatableDeviceAttributes,
} from './Device.ts'
export interface AirPurifierAttributes
extends
CommonDeviceAttributes,
IdentifiableDeviceAttributes,
JoinableDeviceAttributes,
OtaUpdatableDeviceAttributes {
fanMode: 'auto' | 'low' | 'medium' | 'high' | 'on' | 'off'
fanModeSequence: 'lowMediumHighAuto'
motorState: number
motorRuntime: number
filterElapsedTime: number
filterAlarmStatus: boolean
filterLifetime: number
childLock: boolean
statusLight: boolean
currentPM25: number
}
export interface AirPurifier extends Device {
type: 'airPurifier'
deviceType: 'airPurifier'
attributes: AirPurifierAttributes
isHidden: boolean
}