mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 22:47:01 +01:00
fix disable
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@ head = sharedhead + """
|
|||||||
""" + navigation
|
""" + navigation
|
||||||
print(head)
|
print(head)
|
||||||
start = 3
|
start = 3
|
||||||
for i in range(1,6):
|
for i in range(1,5):
|
||||||
idxstart = start + (i-1)*6
|
idxstart = start + (i-1)*6
|
||||||
item = f"""
|
item = f"""
|
||||||
// get Type
|
// get Type
|
||||||
@@ -57,7 +57,7 @@ for i in range(1,6):
|
|||||||
bUp{i}.pco=65535
|
bUp{i}.pco=65535
|
||||||
tsw bUp{i},1
|
tsw bUp{i},1
|
||||||
}}
|
}}
|
||||||
else if(tTmp.txt!="disable")
|
else if(tTmp.txt=="disable")
|
||||||
{{
|
{{
|
||||||
bUp{i}.pco=27501
|
bUp{i}.pco=27501
|
||||||
tsw bUp{i},0
|
tsw bUp{i},0
|
||||||
@@ -70,7 +70,7 @@ for i in range(1,6):
|
|||||||
bStop{i}.txt=tTmp.txt
|
bStop{i}.txt=tTmp.txt
|
||||||
tsw bStop{i},1
|
tsw bStop{i},1
|
||||||
}}
|
}}
|
||||||
else if(tTmp.txt!="disable")
|
else if(tTmp.txt=="disable")
|
||||||
{{
|
{{
|
||||||
bStop{i}.pco=27501
|
bStop{i}.pco=27501
|
||||||
tsw bStop{i},0
|
tsw bStop{i},0
|
||||||
@@ -83,7 +83,7 @@ for i in range(1,6):
|
|||||||
bDown{i}.txt=tTmp.txt
|
bDown{i}.txt=tTmp.txt
|
||||||
tsw bDown{i},1
|
tsw bDown{i},1
|
||||||
}}
|
}}
|
||||||
else if(tTmp.txt!="disable")
|
else if(tTmp.txt=="disable")
|
||||||
{{
|
{{
|
||||||
bDown{i}.pco=27501
|
bDown{i}.pco=27501
|
||||||
tsw bDown{i},0
|
tsw bDown{i},0
|
||||||
|
|||||||
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