From a0dc17e24561a0c8e8f799513c9649b5d28def65 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sat, 19 Mar 2022 21:30:00 +0100 Subject: [PATCH] added light with brightness only --- apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py index 0bf29691..6896c419 100644 --- a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py +++ b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py @@ -371,6 +371,9 @@ class NsPanelLovelaceUI: if "brightness" in entity.attributes: color = rgb_brightness(color, entity.attributes.brightness) icon_color = rgb_dec565(color) + elif "brightness" in entity.attributes: + color = rgb_brightness(color, [253, 216, 53]) + icon_color = rgb_dec565(color) return f",{item_type},{item},1,{icon_color},{name},{switch_val}"