dirigera
Version:
A TypeScript client for IKEA's DIRIGERA smart home hub
23 lines (20 loc) • 488 B
text/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
}