mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c93ad3ce13 |
@@ -165,7 +165,7 @@ Text tVersion
|
||||
Disable release event after dragging: 0
|
||||
Send Component ID : disabled
|
||||
Associated Keyboard : none
|
||||
Text : 2
|
||||
Text : 3
|
||||
Max. Text Size : 10
|
||||
|
||||
Picture p0
|
||||
|
||||
@@ -529,6 +529,8 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,",",1
|
||||
covx tTmp.txt,sys0,0,0
|
||||
btOnOff1.val=sys0
|
||||
if(mode.val==0)
|
||||
{
|
||||
// get Brightness value
|
||||
spstr strCommand.txt,tTmp.txt,",",2
|
||||
if(tTmp.txt=="disable")
|
||||
@@ -563,6 +565,7 @@ Timer tmSerial
|
||||
covx tTmp.txt,sys0,0,0
|
||||
hTempSlider.val=sys0
|
||||
}
|
||||
}
|
||||
// get ColorWheel value
|
||||
spstr strCommand.txt,tTmp.txt,",",4
|
||||
if(tTmp.txt!="disable")
|
||||
|
||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -451,10 +451,7 @@ class NsPanelLovelanceUI:
|
||||
if "color_temp" in entity.attributes:
|
||||
# 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
|
||||
else:
|
||||
color_temp = "disable"
|
||||
|
||||
if "xy" in entity.attributes.supported_color_modes:
|
||||
color = "enable"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user