Move brightness control to global var
Clean up page Home
This commit is contained in:
@@ -12,7 +12,7 @@ Page home
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness.val
|
||||
dim=brightness
|
||||
dimtimer.en=1
|
||||
sleeptimer.en=1
|
||||
printh 92
|
||||
@@ -26,47 +26,35 @@ Page home
|
||||
vis bt_entities,is_entities
|
||||
vis bt_alarm,is_alarm
|
||||
|
||||
Variable (int32) brightness
|
||||
Attributes
|
||||
ID : 2
|
||||
Scope: global
|
||||
Value: 100
|
||||
|
||||
Variable (int32) brightdd
|
||||
Attributes
|
||||
ID : 3
|
||||
Scope: global
|
||||
Value: 40
|
||||
|
||||
Variable (int32) disdim
|
||||
Attributes
|
||||
ID : 4
|
||||
ID : 2
|
||||
Scope: global
|
||||
Value: 0
|
||||
|
||||
Variable (int32) sleepmodus
|
||||
Attributes
|
||||
ID : 16
|
||||
ID : 14
|
||||
Scope: global
|
||||
Value: 0
|
||||
|
||||
Variable (string) lastclick
|
||||
Attributes
|
||||
ID : 50
|
||||
ID : 48
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 51
|
||||
ID : 49
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Text time
|
||||
Attributes
|
||||
ID : 7
|
||||
ID : 5
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -76,7 +64,7 @@ Text time
|
||||
|
||||
Text current_temp
|
||||
Attributes
|
||||
ID : 8
|
||||
ID : 6
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -86,7 +74,7 @@ Text current_temp
|
||||
|
||||
Text outdoor_temp
|
||||
Attributes
|
||||
ID : 9
|
||||
ID : 7
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -96,7 +84,7 @@ Text outdoor_temp
|
||||
|
||||
Text date
|
||||
Attributes
|
||||
ID : 10
|
||||
ID : 8
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -106,7 +94,7 @@ Text date
|
||||
|
||||
Text value01_state
|
||||
Attributes
|
||||
ID : 12
|
||||
ID : 10
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -116,7 +104,7 @@ Text value01_state
|
||||
|
||||
Text left_bt_text
|
||||
Attributes
|
||||
ID : 17
|
||||
ID : 15
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -126,7 +114,7 @@ Text left_bt_text
|
||||
|
||||
Text right_bt_text
|
||||
Attributes
|
||||
ID : 18
|
||||
ID : 16
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -136,7 +124,7 @@ Text right_bt_text
|
||||
|
||||
Text icon_top_01
|
||||
Attributes
|
||||
ID : 21
|
||||
ID : 19
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -146,7 +134,7 @@ Text icon_top_01
|
||||
|
||||
Text icon_top_02
|
||||
Attributes
|
||||
ID : 22
|
||||
ID : 20
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -156,7 +144,7 @@ Text icon_top_02
|
||||
|
||||
Text icon_top_03
|
||||
Attributes
|
||||
ID : 23
|
||||
ID : 21
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -166,7 +154,7 @@ Text icon_top_03
|
||||
|
||||
Text icon_top_04
|
||||
Attributes
|
||||
ID : 24
|
||||
ID : 22
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -176,7 +164,7 @@ Text icon_top_04
|
||||
|
||||
Text icon_top_05
|
||||
Attributes
|
||||
ID : 25
|
||||
ID : 23
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -186,7 +174,7 @@ Text icon_top_05
|
||||
|
||||
Text icon_top_06
|
||||
Attributes
|
||||
ID : 26
|
||||
ID : 24
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -196,7 +184,7 @@ Text icon_top_06
|
||||
|
||||
Text icon_top_07
|
||||
Attributes
|
||||
ID : 27
|
||||
ID : 25
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -206,7 +194,7 @@ Text icon_top_07
|
||||
|
||||
Text icon_top_08
|
||||
Attributes
|
||||
ID : 28
|
||||
ID : 26
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -216,7 +204,7 @@ Text icon_top_08
|
||||
|
||||
Text icon_top_09
|
||||
Attributes
|
||||
ID : 29
|
||||
ID : 27
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -226,7 +214,7 @@ Text icon_top_09
|
||||
|
||||
Text icon_top_10
|
||||
Attributes
|
||||
ID : 30
|
||||
ID : 28
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -236,7 +224,7 @@ Text icon_top_10
|
||||
|
||||
Text value01_icon
|
||||
Attributes
|
||||
ID : 31
|
||||
ID : 29
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -246,7 +234,7 @@ Text value01_icon
|
||||
|
||||
Text value03_state
|
||||
Attributes
|
||||
ID : 32
|
||||
ID : 30
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -256,7 +244,7 @@ Text value03_state
|
||||
|
||||
Text value03_icon
|
||||
Attributes
|
||||
ID : 33
|
||||
ID : 31
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -266,7 +254,7 @@ Text value03_icon
|
||||
|
||||
Text value02_icon
|
||||
Attributes
|
||||
ID : 34
|
||||
ID : 32
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -276,7 +264,7 @@ Text value02_icon
|
||||
|
||||
Text value02_state
|
||||
Attributes
|
||||
ID : 35
|
||||
ID : 33
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -286,7 +274,7 @@ Text value02_state
|
||||
|
||||
Text wifi_icon
|
||||
Attributes
|
||||
ID : 36
|
||||
ID : 34
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -296,7 +284,7 @@ Text wifi_icon
|
||||
|
||||
Text indoortempicon
|
||||
Attributes
|
||||
ID : 37
|
||||
ID : 35
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -306,7 +294,7 @@ Text indoortempicon
|
||||
|
||||
Text button01_icon
|
||||
Attributes
|
||||
ID : 38
|
||||
ID : 36
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -316,7 +304,7 @@ Text button01_icon
|
||||
|
||||
Text button02_icon
|
||||
Attributes
|
||||
ID : 39
|
||||
ID : 37
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -326,7 +314,7 @@ Text button02_icon
|
||||
|
||||
Text button03_icon
|
||||
Attributes
|
||||
ID : 40
|
||||
ID : 38
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -336,7 +324,7 @@ Text button03_icon
|
||||
|
||||
Text bt_notific
|
||||
Attributes
|
||||
ID : 41
|
||||
ID : 39
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -353,7 +341,7 @@ Text bt_notific
|
||||
|
||||
Text bt_qrcode
|
||||
Attributes
|
||||
ID : 42
|
||||
ID : 40
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -367,7 +355,7 @@ Text bt_qrcode
|
||||
|
||||
Text bt_entities
|
||||
Attributes
|
||||
ID : 43
|
||||
ID : 41
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -384,7 +372,7 @@ Text bt_entities
|
||||
|
||||
Text bt_alarm
|
||||
Attributes
|
||||
ID : 44
|
||||
ID : 42
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -402,7 +390,7 @@ Text bt_alarm
|
||||
|
||||
Text meridiem
|
||||
Attributes
|
||||
ID : 49
|
||||
ID : 47
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -412,28 +400,28 @@ Text meridiem
|
||||
|
||||
Picture weather
|
||||
Attributes
|
||||
ID : 11
|
||||
ID : 9
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
|
||||
Picture left_bt_pic
|
||||
Attributes
|
||||
ID : 19
|
||||
ID : 17
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
|
||||
Picture right_bt_pic
|
||||
Attributes
|
||||
ID : 20
|
||||
ID : 18
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
|
||||
Hotspot fc_weather
|
||||
Attributes
|
||||
ID : 13
|
||||
ID : 11
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -447,7 +435,7 @@ Hotspot fc_weather
|
||||
|
||||
Hotspot jump_climate
|
||||
Attributes
|
||||
ID : 14
|
||||
ID : 12
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
@@ -485,7 +473,7 @@ Hotspot jump_climate
|
||||
|
||||
Hotspot button01
|
||||
Attributes
|
||||
ID : 45
|
||||
ID : 43
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -502,7 +490,7 @@ Hotspot button01
|
||||
|
||||
Hotspot button02
|
||||
Attributes
|
||||
ID : 46
|
||||
ID : 44
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -519,7 +507,7 @@ Hotspot button02
|
||||
|
||||
Hotspot button03
|
||||
Attributes
|
||||
ID : 47
|
||||
ID : 45
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -536,7 +524,7 @@ Hotspot button03
|
||||
|
||||
Hotspot settings_click
|
||||
Attributes
|
||||
ID : 48
|
||||
ID : 46
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -559,12 +547,12 @@ Timer dimtimer
|
||||
Timer Event
|
||||
if(disdim.val==0)
|
||||
{
|
||||
dim=brightdd.val // Dim down screen to val set from HA
|
||||
dim=brightness_dim // Dim down screen to val set from HA
|
||||
}
|
||||
|
||||
Timer swipestore
|
||||
Attributes
|
||||
ID : 6
|
||||
ID : 4
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : no
|
||||
@@ -576,7 +564,7 @@ Timer swipestore
|
||||
|
||||
Timer sleeptimer
|
||||
Attributes
|
||||
ID : 15
|
||||
ID : 13
|
||||
Scope : local
|
||||
Period (ms): 65000
|
||||
Enabled : no
|
||||
@@ -592,7 +580,7 @@ Timer sleeptimer
|
||||
|
||||
Timer settings_timer
|
||||
Attributes
|
||||
ID : 52
|
||||
ID : 50
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : no
|
||||
@@ -603,14 +591,14 @@ Timer settings_timer
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 5
|
||||
ID : 3
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
swipestore.en=1 // Start swipestore timer
|
||||
dim=brightness.val // Set brightness to saved value (from HA)
|
||||
dim=brightness // Set brightness to saved value (from HA)
|
||||
dimtimer.en=1 // Enable timer to calc down for dimming screen
|
||||
sleeptimer.en=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user