mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
fixed thermo page
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -3,28 +3,28 @@ text = sharedhead + """
|
|||||||
if(tInstruction.txt=="entityUpd")
|
if(tInstruction.txt=="entityUpd")
|
||||||
{
|
{
|
||||||
//heading
|
//heading
|
||||||
spstr strCommand.txt,tHeading.txt,",",1
|
spstr strCommand.txt,tHeading.txt,"~",1
|
||||||
""" + navigation
|
""" + navigation
|
||||||
|
|
||||||
text += """
|
text += """
|
||||||
//entity name
|
//entity name
|
||||||
spstr strCommand.txt,entn.txt,",",3
|
spstr strCommand.txt,entn.txt,"~",3
|
||||||
//currentTemp
|
//currentTemp
|
||||||
spstr strCommand.txt,tTmp.txt,",",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,xTempCurr.val,0,0
|
covx tTmp.txt,xTempCurr.val,0,0
|
||||||
//dstTemp
|
//dstTemp
|
||||||
spstr strCommand.txt,tTmp.txt,",",4
|
spstr strCommand.txt,tTmp.txt,"~",4
|
||||||
covx tTmp.txt,xTempDest.val,0,0
|
covx tTmp.txt,xTempDest.val,0,0
|
||||||
//status
|
//status
|
||||||
spstr strCommand.txt,tStatus.txt,",",6
|
spstr strCommand.txt,tStatus.txt,"~",6
|
||||||
//minTemp
|
//minTemp
|
||||||
spstr strCommand.txt,tTmp.txt,",",7
|
spstr strCommand.txt,tTmp.txt,"~",7
|
||||||
covx tTmp.txt,xTempMin.val,0,0
|
covx tTmp.txt,xTempMin.val,0,0
|
||||||
//maxTemp
|
//maxTemp
|
||||||
spstr strCommand.txt,tTmp.txt,",",8
|
spstr strCommand.txt,tTmp.txt,"~",8
|
||||||
covx tTmp.txt,xTempMax.val,0,0
|
covx tTmp.txt,xTempMax.val,0,0
|
||||||
//tempStep
|
//tempStep
|
||||||
spstr strCommand.txt,tTmp.txt,",",9
|
spstr strCommand.txt,tTmp.txt,"~",9
|
||||||
covx tTmp.txt,xTempStep.val,0,0
|
covx tTmp.txt,xTempStep.val,0,0
|
||||||
// disable all buttons
|
// disable all buttons
|
||||||
vis bt0,0
|
vis bt0,0
|
||||||
@@ -41,20 +41,19 @@ text += """
|
|||||||
start = 10
|
start = 10
|
||||||
for i in range(0,9):
|
for i in range(0,9):
|
||||||
idxstart = start + i*4
|
idxstart = start + i*4
|
||||||
text += f""" //bt{i}
|
text += f"""
|
||||||
spstr strCommand.txt,tTmp.txt,",",{idxstart}
|
//bt{i}
|
||||||
if(tTmp.txt!="")
|
spstr strCommand.txt,bt{i}.txt,"~",{idxstart}
|
||||||
|
if(bt{i}.txt!="")
|
||||||
{{
|
{{
|
||||||
// set icon
|
|
||||||
bt{i}.txt=tTmp.txt
|
|
||||||
// set text color on active state
|
// set text color on active state
|
||||||
spstr strCommand.txt,tTmp.txt,",",{idxstart+1}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+1}
|
||||||
covx tTmp.txt,bt{i}.pco2,0,0
|
covx tTmp.txt,bt{i}.pco2,0,0
|
||||||
// set state
|
// set state
|
||||||
spstr strCommand.txt,tTmp.txt,",",{idxstart+2}
|
spstr strCommand.txt,tTmp.txt,"~",{idxstart+2}
|
||||||
covx tTmp.txt,bt{i}.val,0,0
|
covx tTmp.txt,bt{i}.val,0,0
|
||||||
// save action
|
// save action
|
||||||
spstr strCommand.txt,va{i}.txt,",",{idxstart+3}
|
spstr strCommand.txt,va{i}.txt,"~",{idxstart+3}
|
||||||
//enable
|
//enable
|
||||||
vis bt{i},1
|
vis bt{i},1
|
||||||
}}"""
|
}}"""
|
||||||
|
|||||||
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