mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-18 19:06:58 +01:00
icons for shutters are now configurable
This commit is contained in:
@@ -89,7 +89,7 @@ The following message can be used to update the content on the cardEntities Page
|
||||
|
||||
`~light~light.entityName~1~17299~Light1~0`
|
||||
|
||||
`~shutter~cover.entityName~0~17299~Shutter2~`
|
||||
`~shutter~cover.entityName~0~17299~Shutter2~iconUp|iconStop|iconDown`
|
||||
|
||||
`~delete~~~~~`
|
||||
|
||||
@@ -111,7 +111,7 @@ The following message can be used to update the content on the cardEntities Page
|
||||
|
||||
### popupShutter Page
|
||||
|
||||
`entityUpdateDetail~*ignored*~*sliderPos*~2ndrow~textPosition`
|
||||
`entityUpdateDetail~*ignored*~*sliderPos*~2ndrow~textPosition~icon1~iconUp~iconStop~iconDown`
|
||||
|
||||
`entityUpdateDetail~1~77`
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@ head = sharedhead + """
|
||||
""" + navigation
|
||||
print(head)
|
||||
start = 3
|
||||
for i in range(1,5):
|
||||
for i in range(1,6):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
// get Type
|
||||
@@ -50,28 +50,44 @@ for i in range(1,5):
|
||||
vis nNum{i},0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",{idxstart+5}
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{{
|
||||
bUp{i}.pco=27501
|
||||
tsw bUp{i},0
|
||||
}}
|
||||
else
|
||||
if(tTmp.txt!="")
|
||||
{{
|
||||
bUp{i}.pco=65535
|
||||
tsw bUp{i},1
|
||||
}}
|
||||
else if(tTmp.txt!="disable")
|
||||
{{
|
||||
bUp{i}.pco=27501
|
||||
tsw bUp{i},0
|
||||
}}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
if(tTmp.txt!="")
|
||||
{{
|
||||
bStop{i}.pco=65535
|
||||
bStop{i}.txt=tTmp.txt
|
||||
tsw bStop{i},1
|
||||
}}
|
||||
else if(tTmp.txt!="disable")
|
||||
{{
|
||||
bStop{i}.pco=27501
|
||||
tsw bStop{i},0
|
||||
}}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
if(tTmp.txt!="")
|
||||
{{
|
||||
bDown{i}.pco=65535
|
||||
bDown{i}.txt=tTmp.txt
|
||||
tsw bDown{i},1
|
||||
}}
|
||||
else if(tTmp.txt!="disable")
|
||||
{{
|
||||
bDown{i}.pco=27501
|
||||
tsw bDown{i},0
|
||||
}}
|
||||
else
|
||||
{{
|
||||
bDown{i}.pco=65535
|
||||
tsw bDown{i},1
|
||||
}}
|
||||
}}
|
||||
if(type{i}.txt=="light")
|
||||
{{
|
||||
|
||||
1014
HMI/code_gen/pages/out.txt
Normal file
1014
HMI/code_gen/pages/out.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
Reference in New Issue
Block a user