mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-21 13:44:45 +01:00
changed shutter icon command format (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
11edb0b358
commit
2bb857c7b6
@@ -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