mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-17 18:36:59 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui
This commit is contained in:
@@ -636,6 +636,38 @@ Button bEntity1
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity1.txt
|
||||||
|
pageIcons.tTmp2.txt=entn1.txt
|
||||||
|
if(type1.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type1.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn1.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Button bEntity2
|
Button bEntity2
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 24
|
||||||
@@ -668,6 +700,38 @@ Button bEntity2
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity2.txt
|
||||||
|
pageIcons.tTmp2.txt=entn2.txt
|
||||||
|
if(type2.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type2.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn2.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Button bEntity3
|
Button bEntity3
|
||||||
Attributes
|
Attributes
|
||||||
ID : 26
|
ID : 26
|
||||||
@@ -700,6 +764,38 @@ Button bEntity3
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity3.txt
|
||||||
|
pageIcons.tTmp2.txt=entn3.txt
|
||||||
|
if(type3.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type3.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn3.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Button bEntity4
|
Button bEntity4
|
||||||
Attributes
|
Attributes
|
||||||
ID : 28
|
ID : 28
|
||||||
@@ -732,6 +828,38 @@ Button bEntity4
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity4.txt
|
||||||
|
pageIcons.tTmp2.txt=entn4.txt
|
||||||
|
if(type4.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type4.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn4.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Button bEntity5
|
Button bEntity5
|
||||||
Attributes
|
Attributes
|
||||||
ID : 31
|
ID : 31
|
||||||
@@ -764,6 +892,38 @@ Button bEntity5
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity5.txt
|
||||||
|
pageIcons.tTmp2.txt=entn5.txt
|
||||||
|
if(type5.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type5.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn5.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Button bEntity6
|
Button bEntity6
|
||||||
Attributes
|
Attributes
|
||||||
ID : 32
|
ID : 32
|
||||||
@@ -796,6 +956,38 @@ Button bEntity6
|
|||||||
Horizontal Spacing : 0
|
Horizontal Spacing : 0
|
||||||
Vertical Spacing : 0
|
Vertical Spacing : 0
|
||||||
|
|
||||||
|
Events
|
||||||
|
Touch Press Event
|
||||||
|
pageIcons.tTmp1.txt=tEntity6.txt
|
||||||
|
pageIcons.tTmp2.txt=entn6.txt
|
||||||
|
if(type6.txt=="shutter")
|
||||||
|
{
|
||||||
|
page popupShutter
|
||||||
|
}
|
||||||
|
if(type6.txt=="light")
|
||||||
|
{
|
||||||
|
page popupLight
|
||||||
|
}
|
||||||
|
// event,1,tHeading,tEntityName,1,up
|
||||||
|
//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+=entn6.txt+","
|
||||||
|
tSend.txt+="1,button"
|
||||||
|
//send calc crc
|
||||||
|
btlen tSend.txt,sys0
|
||||||
|
crcrest 1,0xffff // reset CRC
|
||||||
|
crcputh 55 bb
|
||||||
|
crcputs sys0,1
|
||||||
|
crcputs tSend.txt,0
|
||||||
|
//send cmd
|
||||||
|
printh 55 bb
|
||||||
|
prints sys0,2
|
||||||
|
prints tSend.txt,0
|
||||||
|
prints crcval,2
|
||||||
|
|
||||||
Hotspot mSpecial
|
Hotspot mSpecial
|
||||||
Attributes
|
Attributes
|
||||||
ID : 12
|
ID : 12
|
||||||
|
|||||||
@@ -30,10 +30,6 @@ pageSwipeTest
|
|||||||
18 Component(s)
|
18 Component(s)
|
||||||
62 Line(s) of event code
|
62 Line(s) of event code
|
||||||
44 Unique 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
|
pageTest
|
||||||
14 Component(s)
|
14 Component(s)
|
||||||
14 Line(s) of event code
|
14 Line(s) of event code
|
||||||
@@ -58,9 +54,13 @@ cardThermo
|
|||||||
42 Component(s)
|
42 Component(s)
|
||||||
450 Line(s) of event code
|
450 Line(s) of event code
|
||||||
221 Unique line(s) of event code
|
221 Unique line(s) of event code
|
||||||
|
cardGrid
|
||||||
|
38 Component(s)
|
||||||
|
419 Line(s) of event code
|
||||||
|
221 Unique line(s) of event code
|
||||||
|
|
||||||
Total
|
Total
|
||||||
14 Page(s)
|
14 Page(s)
|
||||||
341 Component(s)
|
341 Component(s)
|
||||||
2963 Line(s) of event code
|
3107 Line(s) of event code
|
||||||
748 Unique line(s) of event code
|
758 Unique line(s) of event code
|
||||||
|
|||||||
Reference in New Issue
Block a user