dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
27 lines (26 loc) • 921 B
TypeScript
import type { CommonDeviceAttributes, Device, IdentifiableDeviceAttributes, JoinableDeviceAttributes, OtaUpdatableDeviceAttributes } from './Device.ts';
export interface OccupancySensorAttributes extends CommonDeviceAttributes, JoinableDeviceAttributes, Partial<OtaUpdatableDeviceAttributes>, Partial<IdentifiableDeviceAttributes> {
batteryPercentage: number;
isDetected: boolean;
sensorConfig: {
scheduleOn: boolean;
onDuration: number;
schedule?: {
onCondition: {
time: string;
offset?: number;
};
offCondition: {
time: string;
offset?: number;
};
};
};
circadianPresets?: any[];
}
export interface OccupancySensor extends Device {
type: 'sensor';
deviceType: 'occupancySensor';
attributes: OccupancySensorAttributes;
isHidden: boolean;
}