diff --git a/HMI/nspanel.HMI b/HMI/nspanel.HMI index c569a8f2..7c954d69 100644 Binary files a/HMI/nspanel.HMI and b/HMI/nspanel.HMI differ diff --git a/HMI/nspanel.tft b/HMI/nspanel.tft index 58f185c2..838122ee 100644 Binary files a/HMI/nspanel.tft and b/HMI/nspanel.tft differ diff --git a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py index 68734496..bdf4f19a 100644 --- a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py +++ b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py @@ -510,7 +510,7 @@ class NsPanelLovelaceUI: # scale ha color temp range to 0-100 color_temp = int(self.scale(entity.attributes.color_temp,(entity.attributes.min_mireds, entity.attributes.max_mireds),(0,100))) else: - color_temp = 0 + color_temp = "unknown" else: color_temp = "disable" @@ -530,7 +530,7 @@ class NsPanelLovelaceUI: hsv = colorsys.hsv_to_rgb(h,s,v) return tuple(round(i * 255) for i in hsv) def pos_to_color(self, x, y): - r = 213/2 + r = 160/2 x = round((x - r) / r * 100) / 100 y = round((r - y) / r * 100) / 100