mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
implemented status on cover buttons and cardQR type
This commit is contained in:
@@ -7,7 +7,7 @@ head = sharedhead + """
|
||||
""" + navigation
|
||||
print(head)
|
||||
start = 3
|
||||
for i in range(1,6):
|
||||
for i in range(1,5):
|
||||
idxstart = start + (i-1)*6
|
||||
item = f"""
|
||||
// get Type
|
||||
@@ -48,6 +48,30 @@ for i in range(1,6):
|
||||
vis bText{i},0
|
||||
vis hSlider{i},0
|
||||
vis nNum{i},0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",{idxstart+5}
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{{
|
||||
bUp{i}.bco2=27501
|
||||
tsw bUp{i},0
|
||||
}}
|
||||
else
|
||||
{{
|
||||
bUp{i}.bco2=14823
|
||||
tsw bUp{i},1
|
||||
}}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{{
|
||||
bDown{i}.bco2=27501
|
||||
tsw bDown{i},0
|
||||
}}
|
||||
else
|
||||
{{
|
||||
bDown{i}.bco2=14823
|
||||
tsw bDown{i},1
|
||||
}}
|
||||
}}
|
||||
if(type{i}.txt=="light")
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user