From 835b51905764ef6d50a655d0aba1be7481a7463f Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Mon, 18 Apr 2022 11:57:05 +0200 Subject: [PATCH] Update NsPanelTs.ts With the change, the offColor can also be used if, for example, the sockets are to be displayed in red and green --- ioBroker/NsPanelTs.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index 047dfe2e..4f4cd542 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -327,6 +327,8 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean = if (val === true || val === "true") { optVal = "1" iconColor = GetIconColor(pageItem, true, useColors); + } else { + iconColor = GetIconColor(pageItem, false, useColors); } return "~" + type + "~" + pageItem.id + "~" + iconId + "~" + iconColor + "~" + name + "~" + optVal;