mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-01-06 14:45:46 +01:00
implement cardPower for US-P and US-L (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
c701c4a4bf
commit
cc6afe7b1d
@@ -54,6 +54,12 @@ Page cardPower
|
||||
b[sys0].bco=defaultBcoColor
|
||||
b[sys0].pco=defaultFontColor
|
||||
}
|
||||
if(b[sys0].type==1)
|
||||
{
|
||||
b[sys0].pic=19
|
||||
b[sys0].pic1=19
|
||||
b[sys0].pic2=15
|
||||
}
|
||||
}
|
||||
|
||||
Variable (string) strCommand
|
||||
@@ -1154,6 +1160,7 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
//save third arg if there's one
|
||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||
udelete payloadLength-1
|
||||
bufferPos=0
|
||||
@@ -1203,6 +1210,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardQR
|
||||
}
|
||||
if(tId.txt=="cardPower")
|
||||
{
|
||||
page cardPower
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="time")
|
||||
{
|
||||
|
||||
@@ -956,6 +956,7 @@ Timer tmSerial
|
||||
spstr strCommand.txt,tTmp.txt,"~",2
|
||||
//save third arg if there's one
|
||||
spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3
|
||||
spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4
|
||||
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
|
||||
udelete payloadLength-1
|
||||
bufferPos=0
|
||||
|
||||
@@ -44,8 +44,8 @@ popupShutter
|
||||
215 Unique line(s) of event code
|
||||
cardQR
|
||||
32 Component(s)
|
||||
408 Line(s) of event code
|
||||
237 Unique line(s) of event code
|
||||
409 Line(s) of event code
|
||||
238 Unique line(s) of event code
|
||||
cardAlarm
|
||||
40 Component(s)
|
||||
426 Line(s) of event code
|
||||
@@ -60,11 +60,11 @@ cardEntities
|
||||
521 Unique line(s) of event code
|
||||
cardPower
|
||||
43 Component(s)
|
||||
409 Line(s) of event code
|
||||
285 Unique line(s) of event code
|
||||
420 Line(s) of event code
|
||||
292 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
15 Page(s)
|
||||
488 Component(s)
|
||||
5770 Line(s) of event code
|
||||
1557 Unique line(s) of event code
|
||||
5782 Line(s) of event code
|
||||
1561 Unique line(s) of event code
|
||||
|
||||
Reference in New Issue
Block a user