hassio-plejd/plejd/types/DeviceRegistry.d.ts
faanskit 7ba38d6acf Lights and switches, including roomsAsLighs, is now proposing an area for Home Assistant based on the room name from Plejd.
This by using suggested_area in MQTT config.

In many installations, Plejd units have the same name and are separated by the room they belong to.
Eg. Badrum -> Spottar, Kök->Spottar, Sovrum->Taklampa, Kök->Taklampa

With 8.0.0 devices can have the same name, and therefore it makes sense to now also support areas.
2021-05-07 08:52:57 +02:00

36 lines
797 B
TypeScript

/* eslint-disable no-use-before-define */
export type OutputDevices = { [deviceIdAndOutput: string]: OutputDevice };
export interface OutputDevice {
bleOutputAddress: number;
deviceId: string;
dim?: number;
dimmable: boolean;
hiddenFromRoomList?: boolean;
hiddenFromIntegrations?: boolean;
hiddenFromSceneList?: boolean;
name: string;
output: number;
roomId: string;
roomName: string;
state: boolean | undefined;
type: 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;
typeName: string;
version: string;
uniqueId: string;
}