Fix empty page climate
This commit is contained in:
@@ -49,16 +49,9 @@ Variable (string) lastclick
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) climate_entity
|
||||
Attributes
|
||||
ID : 37
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) click_comp
|
||||
Attributes
|
||||
ID : 45
|
||||
ID : 44
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 8
|
||||
@@ -380,7 +373,7 @@ Text meridiem
|
||||
|
||||
Text button01
|
||||
Attributes
|
||||
ID : 42
|
||||
ID : 41
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -408,7 +401,7 @@ Text button01
|
||||
|
||||
Text button02
|
||||
Attributes
|
||||
ID : 43
|
||||
ID : 42
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -436,7 +429,7 @@ Text button02
|
||||
|
||||
Text button03
|
||||
Attributes
|
||||
ID : 44
|
||||
ID : 43
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID : disabled
|
||||
@@ -471,7 +464,7 @@ Picture weather
|
||||
|
||||
Dual-state Button left_bt_pic
|
||||
Attributes
|
||||
ID : 39
|
||||
ID : 38
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -481,7 +474,7 @@ Dual-state Button left_bt_pic
|
||||
|
||||
Dual-state Button right_bt_pic
|
||||
Attributes
|
||||
ID : 40
|
||||
ID : 39
|
||||
Scope : global
|
||||
Dragging : 0
|
||||
Send Component ID: disabled
|
||||
@@ -508,38 +501,16 @@ Hotspot jump_climate
|
||||
ID : 10
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
if(climate_entity.txt=="")
|
||||
{
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}else
|
||||
{
|
||||
page climate
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
if(climate_entity.txt=="")
|
||||
{
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}else
|
||||
{
|
||||
page climate
|
||||
}
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Hotspot settings_click
|
||||
Attributes
|
||||
@@ -569,7 +540,7 @@ Timer swipestore
|
||||
|
||||
Timer settings_timer
|
||||
Attributes
|
||||
ID : 38
|
||||
ID : 37
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : no
|
||||
@@ -580,7 +551,7 @@ Timer settings_timer
|
||||
|
||||
Timer wakeup_timer
|
||||
Attributes
|
||||
ID : 41
|
||||
ID : 40
|
||||
Scope : local
|
||||
Period (ms): 50
|
||||
Enabled : yes
|
||||
@@ -603,7 +574,7 @@ Timer wakeup_timer
|
||||
|
||||
Timer click_timer
|
||||
Attributes
|
||||
ID : 46
|
||||
ID : 45
|
||||
Scope : local
|
||||
Period (ms): 800
|
||||
Enabled : no
|
||||
|
||||
Reference in New Issue
Block a user