From ed77f897b49c502e07d23f90f48d4059fd4934e0 Mon Sep 17 00:00:00 2001 From: MacSchlack <98868655+MacSchlack@users.noreply.github.com> Date: Thu, 14 Apr 2022 16:11:56 +0200 Subject: [PATCH] Added socket as posible device --- ioBroker/NsPanelTs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index ab43a210..afe9f280 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -302,9 +302,10 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = var iconColor = rgb_dec565(config.defaultColor); switch (o.common.role) { + case "socket": case "light": type = "light" - iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lightbulb"); + iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == "socket" ? Icons.GetIcon("power-socket-de") : Icons.GetIcon("lightbulb"); var optVal = "0" if (val === true || val === "true") {