hassio-plejd/plejd/types/DeviceRegistry.d.ts

40 lines
908 B
TypeScript
Raw Normal View History

/* eslint-disable no-use-before-define */
import { OutputSettingColorTemperature } from "./ApiSite";
export type OutputDevices = { [deviceIdAndOutput: string]: OutputDevice };
export interface OutputDevice {
bleOutputAddress: number;
colorTemp: number?;
colorTempSettings?: OutputSettingColorTemperature
deviceId: string;
dim?: number;
dimmable: boolean;
name: string;
output: number;
roomId: string | undefined;
roomName: string | undefined;
state: boolean | undefined;
type: string;
typeDescription: string;
typeName: string;
version: string;
uniqueId: string;
}
export type InputDevices = { [deviceIdAndOutput: string]: InputDevice };
export interface InputDevice {
bleInputAddress: number;
deviceId: string;
name: string;
input: number;
roomId: string;
type: string;
typeDescription: string;
typeName: string;
version: string;
uniqueId: string;
}