dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
12 lines (11 loc) • 482 B
TypeScript
import type { CommonDeviceAttributes, Device, IdentifiableDeviceAttributes, JoinableDeviceAttributes } from './Device.ts';
export interface OpenCloseSensorAttributes extends CommonDeviceAttributes, IdentifiableDeviceAttributes, JoinableDeviceAttributes {
isOpen: boolean;
batteryPercentage: number;
}
export interface OpenCloseSensor extends Device {
type: 'sensor';
deviceType: 'openCloseSensor';
attributes: OpenCloseSensorAttributes;
isHidden: boolean;
}