Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-03-19 23:31:11 +00:00
committed by GitHub Actions
parent a1665075b5
commit 2ad0ad4c35
2 changed files with 12 additions and 12 deletions

View File

@@ -880,12 +880,12 @@ Timer tmSerial
}
if(tInstruction.txt=="entityUpd")
{
// command format: entityUpd[,type,internalName,iconId,displayName,optionalValue]x4
// command format: entityUpd[,type,internalName,iconId,iconColor,displayName,optionalValue]x6
// get Type
spstr strCommand.txt,type1.txt,",",1
// get internal name
spstr strCommand.txt,entn1.txt,",",2
if(type1.txt=="delete")
if(type1.txt=="delete"||type1.txt=="")
{
vis tEntity1,0
vis bEntity1,0
@@ -908,7 +908,7 @@ Timer tmSerial
spstr strCommand.txt,type2.txt,",",7
// get internal name
spstr strCommand.txt,entn2.txt,",",8
if(type1.txt=="delete")
if(type2.txt=="delete"||type2.txt=="")
{
vis tEntity2,0
vis bEntity2,0
@@ -931,7 +931,7 @@ Timer tmSerial
spstr strCommand.txt,type3.txt,",",13
// get internal name
spstr strCommand.txt,entn3.txt,",",14
if(type1.txt=="delete")
if(type3.txt=="delete"||type3.txt=="")
{
vis tEntity3,0
vis bEntity3,0
@@ -954,7 +954,7 @@ Timer tmSerial
spstr strCommand.txt,type4.txt,",",19
// get internal name
spstr strCommand.txt,entn4.txt,",",20
if(type1.txt=="delete")
if(type4.txt=="delete"||type4.txt=="")
{
vis tEntity4,0
vis bEntity4,0
@@ -977,7 +977,7 @@ Timer tmSerial
spstr strCommand.txt,type5.txt,",",25
// get internal name
spstr strCommand.txt,entn5.txt,",",26
if(type1.txt=="delete")
if(type5.txt=="delete"||type5.txt=="")
{
vis tEntity5,0
vis bEntity5,0
@@ -1000,7 +1000,7 @@ Timer tmSerial
spstr strCommand.txt,type6.txt,",",31
// get internal name
spstr strCommand.txt,entn6.txt,",",32
if(type1.txt=="delete")
if(type6.txt=="delete"||type6.txt=="")
{
vis tEntity6,0
vis bEntity6,0

View File

@@ -30,14 +30,14 @@ pageSwipeTest
18 Component(s)
62 Line(s) of event code
44 Unique line(s) of event code
cardGrid
38 Component(s)
275 Line(s) of event code
186 Unique line(s) of event code
pageTest
14 Component(s)
14 Line(s) of event code
14 Unique line(s) of event code
cardGrid
38 Component(s)
275 Line(s) of event code
181 Unique line(s) of event code
cardAlarm
28 Component(s)
159 Line(s) of event code
@@ -63,4 +63,4 @@ Total
14 Page(s)
341 Component(s)
2963 Line(s) of event code
742 Unique line(s) of event code
748 Unique line(s) of event code