mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-21 21:54:46 +01:00
send screensaver on sleepReached (add nextion2text)
This commit is contained in:
@@ -1203,7 +1203,7 @@ Timer tmSleep
|
||||
{
|
||||
sleepValue=0
|
||||
dim=dimValue
|
||||
tSend.txt="event,buttonPress2,cardAlarm,sleepReached"
|
||||
tSend.txt="event,sleepReached,cardAlarm"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -2667,7 +2667,7 @@ Timer tmSleep
|
||||
{
|
||||
sleepValue=0
|
||||
dim=dimValue
|
||||
tSend.txt="event,buttonPress2,cardEntities,sleepReached"
|
||||
tSend.txt="event,sleepReached,cardEntities"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -1249,7 +1249,7 @@ Timer tmSleep
|
||||
{
|
||||
sleepValue=0
|
||||
dim=dimValue
|
||||
tSend.txt="event,buttonPress2,cardGrid,sleepReached"
|
||||
tSend.txt="event,sleepReached,cardGrid"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -1072,7 +1072,7 @@ Timer tmSleep
|
||||
{
|
||||
sleepValue=0
|
||||
dim=dimValue
|
||||
tSend.txt="event,buttonPress2,cardMedia,sleepReached"
|
||||
tSend.txt="event,sleepReached,cardMedia"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -1477,7 +1477,7 @@ Timer tmSleep
|
||||
{
|
||||
sleepValue=0
|
||||
dim=dimValue
|
||||
tSend.txt="event,buttonPress2,cardThermo,sleepReached"
|
||||
tSend.txt="event,sleepReached,cardThermo"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
|
||||
@@ -22,30 +22,26 @@ popupShutter
|
||||
19 Component(s)
|
||||
178 Line(s) of event code
|
||||
101 Unique line(s) of event code
|
||||
cardMedia
|
||||
30 Component(s)
|
||||
287 Line(s) of event code
|
||||
148 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
150 Line(s) of event code
|
||||
113 Unique line(s) of event code
|
||||
screensaver
|
||||
28 Component(s)
|
||||
182 Line(s) of event code
|
||||
132 Unique line(s) of event code
|
||||
popupLight
|
||||
27 Component(s)
|
||||
322 Line(s) of event code
|
||||
173 Unique line(s) of event code
|
||||
cardAlarm
|
||||
35 Component(s)
|
||||
285 Line(s) of event code
|
||||
181 Unique line(s) of event code
|
||||
cardThermo
|
||||
41 Component(s)
|
||||
414 Line(s) of event code
|
||||
226 Unique line(s) of event code
|
||||
pageStartup
|
||||
19 Component(s)
|
||||
150 Line(s) of event code
|
||||
113 Unique line(s) of event code
|
||||
popupLight
|
||||
27 Component(s)
|
||||
322 Line(s) of event code
|
||||
173 Unique line(s) of event code
|
||||
cardMedia
|
||||
30 Component(s)
|
||||
287 Line(s) of event code
|
||||
148 Unique line(s) of event code
|
||||
screensaver
|
||||
28 Component(s)
|
||||
172 Line(s) of event code
|
||||
131 Unique line(s) of event code
|
||||
cardGrid
|
||||
39 Component(s)
|
||||
397 Line(s) of event code
|
||||
@@ -54,9 +50,13 @@ cardEntities
|
||||
62 Component(s)
|
||||
939 Line(s) of event code
|
||||
397 Unique line(s) of event code
|
||||
cardThermo
|
||||
41 Component(s)
|
||||
414 Line(s) of event code
|
||||
226 Unique line(s) of event code
|
||||
|
||||
Total
|
||||
13 Page(s)
|
||||
350 Component(s)
|
||||
3404 Line(s) of event code
|
||||
921 Unique line(s) of event code
|
||||
3394 Line(s) of event code
|
||||
920 Unique line(s) of event code
|
||||
|
||||
@@ -46,18 +46,18 @@ Page screensaver
|
||||
tForecast2.txt=""
|
||||
tF2Icon.txt=""
|
||||
tForecast2Val.txt=""
|
||||
tSend.txt="event,screensaverOpen"
|
||||
//tSend.txt="event,screensaverOpen"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,1
|
||||
crcputs tSend.txt,0
|
||||
//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
|
||||
//printh 55 bb
|
||||
//prints sys0,2
|
||||
//prints tSend.txt,0
|
||||
//prints crcval,2
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
|
||||
Reference in New Issue
Block a user