UNPKG

dirigera

Version:

A TypeScript client for IKEA's DIRIGERA smart home hub

22 lines (19 loc) 481 B
import type { CommonDeviceAttributes, Device, IdentifiableDeviceAttributes, JoinableDeviceAttributes, } from './Device' export interface OpenCloseSensorAttributes extends CommonDeviceAttributes, IdentifiableDeviceAttributes, JoinableDeviceAttributes { isOpen: boolean batteryPercentage: number } export interface OpenCloseSensor extends Device { type: 'sensor' deviceType: 'openCloseSensor' attributes: OpenCloseSensorAttributes isHidden: boolean }