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