dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
34 lines (31 loc) • 784 B
text/typescript
import type {
CommonDeviceAttributes,
Device,
IdentifiableDeviceAttributes,
JoinableDeviceAttributes,
OtaUpdatableDeviceAttributes,
} from './Device.ts'
export interface EnvironmentSensorAttributes
extends
CommonDeviceAttributes,
IdentifiableDeviceAttributes,
JoinableDeviceAttributes,
OtaUpdatableDeviceAttributes {
currentTemperature?: number
currentRH?: number
currentPM25?: number
maxMeasuredPM25?: number
minMeasuredPM25?: number
vocIndex?: number
isOn?: boolean
currentCO2?: number
maxMeasuredCO2?: number
minMeasuredCO2?: number
batteryPercentage?: number
}
export interface EnvironmentSensor extends Device {
type: 'sensor'
deviceType: 'environmentSensor'
attributes: EnvironmentSensorAttributes
isHidden: boolean
}