mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-29 02:44:20 +01:00
migrated thero page to new button cmd format (add nextion2text)
This commit is contained in:
@@ -613,13 +613,11 @@ Button bDown
|
||||
{
|
||||
xTempDest.val=xTempDest.val-xTempStep.val
|
||||
}
|
||||
// temp chane event
|
||||
// event,tempUpd,pageNumber,entityName,temperature
|
||||
// event,buttonPress2,entn,tempUpd,X
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,tempUpd,"+tTmp.txt+","
|
||||
tSend.txt="event,buttonPress2,"
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="tempUpd,"
|
||||
//convert temperature
|
||||
covx xTempDest.val,tTmp.txt,0,0
|
||||
tSend.txt+=tTmp.txt
|
||||
@@ -669,11 +667,11 @@ Button bUp
|
||||
{
|
||||
xTempDest.val=xTempDest.val+xTempStep.val
|
||||
}
|
||||
// temp chane event
|
||||
// event,tempUpd,pageNumber,entityName,temperature
|
||||
// event,buttonPress2,entn,tempUpd,X
|
||||
//craft command
|
||||
tSend.txt="event,tempUpd,"+tTmp.txt+","
|
||||
tSend.txt="event,buttonPress2,"
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="tempUpd,"
|
||||
//convert temperature
|
||||
covx xTempDest.val,tTmp.txt,0,0
|
||||
tSend.txt+=tTmp.txt
|
||||
@@ -778,12 +776,8 @@ Dual-state Button bt0
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va0.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va0.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -831,12 +825,8 @@ Dual-state Button bt1
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va1.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va1.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -884,12 +874,8 @@ Dual-state Button bt2
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va2.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va2.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -937,12 +923,8 @@ Dual-state Button bt3
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va3.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va3.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -990,12 +972,8 @@ Dual-state Button bt4
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va4.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va4.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1043,12 +1021,8 @@ Dual-state Button bt5
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va5.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va5.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1096,12 +1070,8 @@ Dual-state Button bt6
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va6.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va6.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1149,12 +1119,8 @@ Dual-state Button bt7
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va7.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va7.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
@@ -1202,12 +1168,8 @@ Dual-state Button bt8
|
||||
Events
|
||||
Touch Press Event
|
||||
//craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,buttonPress,"+tTmp.txt+","
|
||||
tSend.txt+=tHeading.txt+","
|
||||
tSend.txt+=entn.txt+","
|
||||
tSend.txt+="1,hvac_action,"+va8.txt
|
||||
tSend.txt="event,buttonPress2,"+entn.txt
|
||||
tSend.txt+=",hvac_action,"+va8.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -48,7 +48,7 @@ cardGrid
|
||||
224 Unique line(s) of event code
|
||||
cardThermo
|
||||
42 Component(s)
|
||||
438 Line(s) of event code
|
||||
412 Line(s) of event code
|
||||
221 Unique line(s) of event code
|
||||
cardEntities
|
||||
54 Component(s)
|
||||
@@ -62,5 +62,5 @@ cardAlarm
|
||||
Total
|
||||
14 Page(s)
|
||||
350 Component(s)
|
||||
3282 Line(s) of event code
|
||||
842 Unique line(s) of event code
|
||||
3256 Line(s) of event code
|
||||
843 Unique line(s) of event code
|
||||
|
||||
Reference in New Issue
Block a user