mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-13 00:27:12 +01:00
changed shutter icon command format (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
11edb0b358
commit
2bb857c7b6
@@ -2252,39 +2252,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
|
||||
}
|
||||
}
|
||||
@@ -2412,39 +2415,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
|
||||
}
|
||||
}
|
||||
@@ -2572,39 +2578,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
|
||||
}
|
||||
}
|
||||
@@ -2732,39 +2741,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,10 +22,6 @@ popupNotify
|
||||
17 Component(s)
|
||||
200 Line(s) of event code
|
||||
125 Unique line(s) of event code
|
||||
popupShutter
|
||||
20 Component(s)
|
||||
241 Line(s) of event code
|
||||
138 Unique line(s) of event code
|
||||
screensaver
|
||||
35 Component(s)
|
||||
296 Line(s) of event code
|
||||
@@ -38,6 +34,10 @@ cardQR
|
||||
30 Component(s)
|
||||
363 Line(s) of event code
|
||||
205 Unique line(s) of event code
|
||||
popupShutter
|
||||
20 Component(s)
|
||||
244 Line(s) of event code
|
||||
138 Unique line(s) of event code
|
||||
cardGrid
|
||||
42 Component(s)
|
||||
439 Line(s) of event code
|
||||
@@ -52,11 +52,11 @@ cardThermo
|
||||
290 Unique line(s) of event code
|
||||
cardEntities
|
||||
65 Component(s)
|
||||
1121 Line(s) of event code
|
||||
1133 Line(s) of event code
|
||||
491 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
402 Component(s)
|
||||
4444 Line(s) of event code
|
||||
4459 Line(s) of event code
|
||||
1168 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