mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-03-03 20:06:53 +01:00
update cardThermo gen script (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
fb27e62033
commit
d906cb03ac
@@ -2249,6 +2249,28 @@ Timer tmSerial
|
||||
vis bText1,0
|
||||
vis hSlider1,0
|
||||
vis nNum1,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp1.bco2=27501
|
||||
tsw bUp1,0
|
||||
}else
|
||||
{
|
||||
bUp1.bco2=14823
|
||||
tsw bUp1,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown1.bco2=27501
|
||||
tsw bDown1,0
|
||||
}else
|
||||
{
|
||||
bDown1.bco2=14823
|
||||
tsw bDown1,1
|
||||
}
|
||||
}
|
||||
if(type1.txt=="light")
|
||||
{
|
||||
@@ -2371,6 +2393,28 @@ Timer tmSerial
|
||||
vis bText2,0
|
||||
vis hSlider2,0
|
||||
vis nNum2,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp2.bco2=27501
|
||||
tsw bUp2,0
|
||||
}else
|
||||
{
|
||||
bUp2.bco2=14823
|
||||
tsw bUp2,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown2.bco2=27501
|
||||
tsw bDown2,0
|
||||
}else
|
||||
{
|
||||
bDown2.bco2=14823
|
||||
tsw bDown2,1
|
||||
}
|
||||
}
|
||||
if(type2.txt=="light")
|
||||
{
|
||||
@@ -2493,6 +2537,28 @@ Timer tmSerial
|
||||
vis bText3,0
|
||||
vis hSlider3,0
|
||||
vis nNum3,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp3.bco2=27501
|
||||
tsw bUp3,0
|
||||
}else
|
||||
{
|
||||
bUp3.bco2=14823
|
||||
tsw bUp3,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown3.bco2=27501
|
||||
tsw bDown3,0
|
||||
}else
|
||||
{
|
||||
bDown3.bco2=14823
|
||||
tsw bDown3,1
|
||||
}
|
||||
}
|
||||
if(type3.txt=="light")
|
||||
{
|
||||
@@ -2615,6 +2681,28 @@ Timer tmSerial
|
||||
vis bText4,0
|
||||
vis hSlider4,0
|
||||
vis nNum4,0
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bUp4.bco2=27501
|
||||
tsw bUp4,0
|
||||
}else
|
||||
{
|
||||
bUp4.bco2=14823
|
||||
tsw bUp4,1
|
||||
}
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
if(tTmp.txt=="0")
|
||||
{
|
||||
bDown4.bco2=27501
|
||||
tsw bDown4,0
|
||||
}else
|
||||
{
|
||||
bDown4.bco2=14823
|
||||
tsw bDown4,1
|
||||
}
|
||||
}
|
||||
if(type4.txt=="light")
|
||||
{
|
||||
@@ -2755,6 +2843,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardAlarm
|
||||
}
|
||||
if(tId.txt=="cardQR")
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user