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