mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-20 21:24:44 +01:00
changed shutter icon command format (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
11edb0b358
commit
2bb857c7b6
@@ -2673,39 +2673,42 @@ Timer tmSerial
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",8
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bUp1.pco=27501
|
||||
spstr tId.txt,bUp1.txt,"|",0
|
||||
tsw bUp1,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp1.pco=65535
|
||||
bUp1.txt=tTmp.txt
|
||||
spstr tId.txt,bUp1.txt,"|",0
|
||||
tsw bUp1,1
|
||||
}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
spstr tId.txt,tTmp.txt,"|",4
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bStop1.pco=27501
|
||||
spstr tId.txt,bStop1.txt,"|",1
|
||||
tsw bStop1,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop1.pco=65535
|
||||
bStop1.txt=tTmp.txt
|
||||
spstr tId.txt,bStop1.txt,"|",1
|
||||
tsw bStop1,1
|
||||
}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
spstr tId.txt,tTmp.txt,"|",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bDown1.pco=27501
|
||||
spstr tId.txt,bDown1.txt,"|",2
|
||||
tsw bDown1,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown1.pco=65535
|
||||
bDown1.txt=tTmp.txt
|
||||
spstr tId.txt,bDown1.txt,"|",2
|
||||
tsw bDown1,1
|
||||
}
|
||||
}
|
||||
@@ -2833,39 +2836,42 @@ Timer tmSerial
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",14
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bUp2.pco=27501
|
||||
spstr tId.txt,bUp2.txt,"|",0
|
||||
tsw bUp2,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp2.pco=65535
|
||||
bUp2.txt=tTmp.txt
|
||||
spstr tId.txt,bUp2.txt,"|",0
|
||||
tsw bUp2,1
|
||||
}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
spstr tId.txt,tTmp.txt,"|",4
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bStop2.pco=27501
|
||||
spstr tId.txt,bStop2.txt,"|",1
|
||||
tsw bStop2,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop2.pco=65535
|
||||
bStop2.txt=tTmp.txt
|
||||
spstr tId.txt,bStop2.txt,"|",1
|
||||
tsw bStop2,1
|
||||
}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
spstr tId.txt,tTmp.txt,"|",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bDown2.pco=27501
|
||||
spstr tId.txt,bDown2.txt,"|",2
|
||||
tsw bDown2,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown2.pco=65535
|
||||
bDown2.txt=tTmp.txt
|
||||
spstr tId.txt,bDown2.txt,"|",2
|
||||
tsw bDown2,1
|
||||
}
|
||||
}
|
||||
@@ -2993,39 +2999,42 @@ Timer tmSerial
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",20
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bUp3.pco=27501
|
||||
spstr tId.txt,bUp3.txt,"|",0
|
||||
tsw bUp3,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp3.pco=65535
|
||||
bUp3.txt=tTmp.txt
|
||||
spstr tId.txt,bUp3.txt,"|",0
|
||||
tsw bUp3,1
|
||||
}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
spstr tId.txt,tTmp.txt,"|",4
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bStop3.pco=27501
|
||||
spstr tId.txt,bStop3.txt,"|",1
|
||||
tsw bStop3,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop3.pco=65535
|
||||
bStop3.txt=tTmp.txt
|
||||
spstr tId.txt,bStop3.txt,"|",1
|
||||
tsw bStop3,1
|
||||
}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
spstr tId.txt,tTmp.txt,"|",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bDown3.pco=27501
|
||||
spstr tId.txt,bDown3.txt,"|",2
|
||||
tsw bDown3,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown3.pco=65535
|
||||
bDown3.txt=tTmp.txt
|
||||
spstr tId.txt,bDown3.txt,"|",2
|
||||
tsw bDown3,1
|
||||
}
|
||||
}
|
||||
@@ -3153,39 +3162,42 @@ Timer tmSerial
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",26
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bUp4.pco=27501
|
||||
spstr tId.txt,bUp4.txt,"|",0
|
||||
tsw bUp4,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp4.pco=65535
|
||||
bUp4.txt=tTmp.txt
|
||||
spstr tId.txt,bUp4.txt,"|",0
|
||||
tsw bUp4,1
|
||||
}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
spstr tId.txt,tTmp.txt,"|",4
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bStop4.pco=27501
|
||||
spstr tId.txt,bStop4.txt,"|",1
|
||||
tsw bStop4,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop4.pco=65535
|
||||
bStop4.txt=tTmp.txt
|
||||
spstr tId.txt,bStop4.txt,"|",1
|
||||
tsw bStop4,1
|
||||
}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
spstr tId.txt,tTmp.txt,"|",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bDown4.pco=27501
|
||||
spstr tId.txt,bDown4.txt,"|",2
|
||||
tsw bDown4,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown4.pco=65535
|
||||
bDown4.txt=tTmp.txt
|
||||
spstr tId.txt,bDown4.txt,"|",2
|
||||
tsw bDown4,1
|
||||
}
|
||||
}
|
||||
@@ -3313,39 +3325,42 @@ Timer tmSerial
|
||||
// get Button State (optional Value)
|
||||
spstr strCommand.txt,tId.txt,"~",32
|
||||
// up button
|
||||
spstr tId.txt,tTmp.txt,"|",0
|
||||
spstr tId.txt,tTmp.txt,"|",3
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bUp5.pco=27501
|
||||
spstr tId.txt,bUp5.txt,"|",0
|
||||
tsw bUp5,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp5.pco=65535
|
||||
bUp5.txt=tTmp.txt
|
||||
spstr tId.txt,bUp5.txt,"|",0
|
||||
tsw bUp5,1
|
||||
}
|
||||
// stop button
|
||||
spstr tId.txt,tTmp.txt,"|",1
|
||||
spstr tId.txt,tTmp.txt,"|",4
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bStop5.pco=27501
|
||||
spstr tId.txt,bStop5.txt,"|",1
|
||||
tsw bStop5,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop5.pco=65535
|
||||
bStop5.txt=tTmp.txt
|
||||
spstr tId.txt,bStop5.txt,"|",1
|
||||
tsw bStop5,1
|
||||
}
|
||||
// down button
|
||||
spstr tId.txt,tTmp.txt,"|",2
|
||||
spstr tId.txt,tTmp.txt,"|",5
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
bDown5.pco=27501
|
||||
spstr tId.txt,bDown5.txt,"|",2
|
||||
tsw bDown5,0
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown5.pco=65535
|
||||
bDown5.txt=tTmp.txt
|
||||
spstr tId.txt,bDown5.txt,"|",2
|
||||
tsw bDown5,1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,10 +18,6 @@ pageStartup
|
||||
19 Component(s)
|
||||
154 Line(s) of event code
|
||||
115 Unique line(s) of event code
|
||||
popupShutter
|
||||
20 Component(s)
|
||||
241 Line(s) of event code
|
||||
138 Unique line(s) of event code
|
||||
popupLight
|
||||
27 Component(s)
|
||||
345 Line(s) of event code
|
||||
@@ -50,13 +46,17 @@ screensaver
|
||||
35 Component(s)
|
||||
296 Line(s) of event code
|
||||
237 Unique line(s) of event code
|
||||
popupShutter
|
||||
20 Component(s)
|
||||
244 Line(s) of event code
|
||||
138 Unique line(s) of event code
|
||||
cardEntities
|
||||
77 Component(s)
|
||||
1348 Line(s) of event code
|
||||
1363 Line(s) of event code
|
||||
576 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
414 Component(s)
|
||||
4670 Line(s) of event code
|
||||
4688 Line(s) of event code
|
||||
1239 Unique line(s) of event code
|
||||
|
||||
@@ -646,38 +646,41 @@ Timer tmSerial
|
||||
tIcon1.txt=tTmp.txt
|
||||
}
|
||||
// set icon bUp
|
||||
spstr strCommand.txt,tTmp.txt,"~",5
|
||||
spstr strCommand.txt,tTmp.txt,"~",8
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tsw bUp1,0
|
||||
spstr strCommand.txt,bUp1.txt,"~",5
|
||||
bUp1.pco=27501
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bUp1.txt=tTmp.txt
|
||||
spstr strCommand.txt,bUp1.txt,"~",5
|
||||
tsw bUp1,1
|
||||
bUp1.pco=65535
|
||||
}
|
||||
// set icon bStop
|
||||
spstr strCommand.txt,tTmp.txt,"~",6
|
||||
spstr strCommand.txt,tTmp.txt,"~",9
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
tsw bStop1,0
|
||||
spstr strCommand.txt,bStop1.txt,"~",6
|
||||
bStop1.pco=27501
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bStop1.txt=tTmp.txt
|
||||
spstr strCommand.txt,bStop1.txt,"~",6
|
||||
tsw bStop1,1
|
||||
bStop1.pco=65535
|
||||
}
|
||||
// set icon bDown
|
||||
spstr strCommand.txt,tTmp.txt,"~",7
|
||||
spstr strCommand.txt,tTmp.txt,"~",10
|
||||
if(tTmp.txt=="disable")
|
||||
{
|
||||
spstr strCommand.txt,bDown1.txt,"~",7
|
||||
tsw bDown1,0
|
||||
bDown1.pco=27501
|
||||
}else if(tTmp.txt!="")
|
||||
}else if(tTmp.txt=="enable")
|
||||
{
|
||||
bDown1.txt=tTmp.txt
|
||||
spstr strCommand.txt,bDown1.txt,"~",7
|
||||
tsw bDown1,1
|
||||
bDown1.pco=65535
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user