Home buttons new format - Entities
Modernise the button "Entities" flow on page Home to improve performance.
This commit is contained in:
@@ -5,7 +5,7 @@ Program.s
|
||||
int h=0,s=0,v=0
|
||||
int p=0,q=0,t=0,f=0
|
||||
int api=0 // 0 = disconnected from HA, 1 = connected to HA
|
||||
int is_alarm=0
|
||||
int is_alarm=0,is_entities=0
|
||||
bauds=115200//Configure baudrat
|
||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
|
||||
@@ -21,8 +21,7 @@ Page home
|
||||
prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis button06_icon,0
|
||||
vis button06,0
|
||||
vis bt_entities,is_entities
|
||||
vis bt_alarm,is_alarm
|
||||
|
||||
Variable (int32) brightness
|
||||
@@ -51,14 +50,14 @@ Variable (int32) sleepmodus
|
||||
|
||||
Variable (string) lastclick
|
||||
Attributes
|
||||
ID : 53
|
||||
ID : 52
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 54
|
||||
ID : 53
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
@@ -353,7 +352,7 @@ Text button05_icon
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
|
||||
Text button06_icon
|
||||
Text bt_entities
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : global
|
||||
@@ -363,6 +362,13 @@ Text button06_icon
|
||||
Text :
|
||||
Max. Text Size : 10
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
if(api==1)
|
||||
{
|
||||
page entitypage01
|
||||
}
|
||||
|
||||
Text bt_alarm
|
||||
Attributes
|
||||
ID : 44
|
||||
@@ -383,7 +389,7 @@ Text bt_alarm
|
||||
|
||||
Text meridiem
|
||||
Attributes
|
||||
ID : 52
|
||||
ID : 51
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -549,23 +555,9 @@ Hotspot button05
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Hotspot button06
|
||||
Attributes
|
||||
ID : 50
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
if(api==1)
|
||||
{
|
||||
page entitypage01
|
||||
}
|
||||
|
||||
Hotspot settings_click
|
||||
Attributes
|
||||
ID : 51
|
||||
ID : 50
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -621,7 +613,7 @@ Timer sleeptimer
|
||||
|
||||
Timer settings_timer
|
||||
Attributes
|
||||
ID : 55
|
||||
ID : 54
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : no
|
||||
|
||||
Reference in New Issue
Block a user