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.
36 lines
797 B
TypeScript
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;
|
|
}
|