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.
This commit is contained in:
faanskit 2021-05-07 08:52:57 +02:00
parent 49024f5392
commit 7ba38d6acf
3 changed files with 7 additions and 0 deletions

View file

@ -13,6 +13,7 @@ export interface OutputDevice {
name: string;
output: number;
roomId: string;
roomName: string;
state: boolean | undefined;
type: string;
typeName: string;