@@ -11,6 +11,7 @@ Program.s
|
||||
int display_mode=2 // 1 = EU, 2 = US, 3 = US landscape
|
||||
bauds=115200//Configure baudrate
|
||||
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
|
||||
//randset 0,65535//used for touchevent sensor
|
||||
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
||||
if(display_mode==1)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ Page alarm
|
||||
page home
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -33,7 +33,7 @@ Page alarm
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -42,7 +42,7 @@ Page alarm
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -50,9 +50,6 @@ Page alarm
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Page Exit Event
|
||||
home.entity.txt=""
|
||||
|
||||
Variable (string) lastclick
|
||||
Attributes
|
||||
ID : 3
|
||||
@@ -315,7 +312,7 @@ Hotspot bt_home
|
||||
bt_home_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -339,7 +336,7 @@ Hotspot bt_away
|
||||
bt_away_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -363,7 +360,7 @@ Hotspot bt_night
|
||||
bt_night_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -387,7 +384,7 @@ Hotspot bt_vacat
|
||||
bt_vacat_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -411,7 +408,7 @@ Hotspot bt_bypass
|
||||
bt_bypass_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -435,7 +432,7 @@ Hotspot bt_disarm
|
||||
bt_disarm_icon.pco=0
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"entity\": \""+entity.txt+"\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
@@ -12,16 +12,16 @@ Page boot
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
vis bt_reboot,0
|
||||
dim=100
|
||||
covx display_mode,aux2.txt,0,0
|
||||
nspanelevent.txt="{\"page\": \"boot\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"pagechanged\", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints nspanelevent.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis bt_reboot,0
|
||||
|
||||
Variable (int32) counter
|
||||
Attributes
|
||||
@@ -162,7 +162,7 @@ Timer timer
|
||||
counter.val++
|
||||
covx counter.val,aux1.txt,0,0
|
||||
covx display_mode,aux2.txt,0,0
|
||||
nspanelevent.txt="{\"page\": \"boot\", \"component\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||
nspanelevent.txt="{\"page\": \"boot\", \"event\": \"timeout\", \"value\": "+aux1.txt+", \"version\": \""+tft_version.txt+"\", \"display_mode\": \""+aux2.txt+"\"}"
|
||||
bluep_version.txt="Retry: "+aux1.txt
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
|
||||
@@ -13,9 +13,9 @@ Page climate
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
if(api==1||home.entity.txt=="embedded_climate")
|
||||
if(api==1||entity.txt=="embedded_climate")
|
||||
{
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -34,14 +34,13 @@ Page climate
|
||||
vis button05,0
|
||||
vis button06,0
|
||||
vis button07,0
|
||||
page_label.txt=home.entity.txt
|
||||
}else
|
||||
{
|
||||
page home
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -50,7 +49,7 @@ Page climate
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -63,7 +62,7 @@ Page climate
|
||||
{
|
||||
timer01.en=0
|
||||
covx temp_number.val,va1.txt,0,0
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -71,7 +70,6 @@ Page climate
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
home.entity.txt=""
|
||||
|
||||
Variable (string) va1
|
||||
Attributes
|
||||
@@ -138,6 +136,13 @@ Variable (string) va2
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 49
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Text current_temp
|
||||
Attributes
|
||||
ID : 3
|
||||
@@ -370,7 +375,7 @@ Slider climateslider
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -387,7 +392,7 @@ Slider climateslider
|
||||
covx va0.val,va1.txt,0,0
|
||||
target_temp.txt+="."+va1.txt
|
||||
timer01.en=1
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -482,7 +487,7 @@ Hotspot button01
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -500,7 +505,7 @@ Hotspot button02
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -518,7 +523,7 @@ Hotspot button03
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -536,7 +541,7 @@ Hotspot button04
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -554,7 +559,7 @@ Hotspot button05
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -572,7 +577,7 @@ Hotspot button06
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -590,7 +595,7 @@ Hotspot button07
|
||||
Events
|
||||
Touch Release Event
|
||||
covx embedded.val,va2.txt,0,0
|
||||
lastclick.txt="{\"domain\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -607,7 +612,7 @@ Hotspot button08
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button08\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button08\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -616,7 +621,7 @@ Hotspot button08
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button08\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button08\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -633,7 +638,7 @@ Hotspot button09
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button09\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button09\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -642,7 +647,7 @@ Hotspot button09
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button09\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lastclick.txt="{\"page\": \"climate\", \"component\": \"button09\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -674,7 +679,7 @@ Timer timer01
|
||||
timer01.en=0
|
||||
covx embedded.val,va2.txt,0,0
|
||||
covx temp_number.val,va1.txt,0,0
|
||||
climatesetting.txt="{\"domain\": \"climate\", \"key\": \"set_temperature\", \"value\": "+va1.txt+", \"entity\": \""+home.entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
climatesetting.txt="{\"page\": \"climate\", \"key\": \"set_temperature\", \"value\": "+va1.txt+", \"entity\": \""+entity.txt+"\", \"embedded\": "+va2.txt+"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
@@ -18,18 +18,17 @@ Page cover
|
||||
page home
|
||||
}else
|
||||
{
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints coversetting.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
page_label.txt=home.entity.txt
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -38,7 +37,7 @@ Page cover
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -46,9 +45,6 @@ Page cover
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Page Exit Event
|
||||
home.entity.txt=""
|
||||
|
||||
Variable (string) va1
|
||||
Attributes
|
||||
ID : 7
|
||||
@@ -70,6 +66,13 @@ Variable (string) back_page
|
||||
Text : home
|
||||
Max. Text Size: 15
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 14
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Text battery_value
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -134,7 +137,7 @@ Slider coverslider
|
||||
Touch Release Event
|
||||
covx coverslider.val,va1.txt,0,0
|
||||
cover_value.txt=va1.txt+"%"
|
||||
coversetting.txt="{\"domain\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -154,7 +157,7 @@ Button cover_open
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
coversetting.txt="{\"domain\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -174,7 +177,7 @@ Button cover_close
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
coversetting.txt="{\"domain\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -194,7 +197,7 @@ Button cover_stop
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
coversetting.txt="{\"domain\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
coversetting.txt="{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
@@ -18,18 +18,17 @@ Page fan
|
||||
page home
|
||||
}else
|
||||
{
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints fansetting.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
page_label.txt=home.entity.txt
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -38,7 +37,7 @@ Page fan
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
fansetting.txt="{\"page\": \"fan\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -46,9 +45,6 @@ Page fan
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Page Exit Event
|
||||
home.entity.txt=""
|
||||
|
||||
Variable (string) fansetting
|
||||
Attributes
|
||||
ID : 7
|
||||
@@ -70,6 +66,13 @@ Variable (string) va0
|
||||
Text :
|
||||
Max. Text Size: 10
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 16
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Text fan_value
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -269,7 +272,7 @@ Button button_off
|
||||
sys0=100*fanslider.val/fanslider.maxval
|
||||
covx sys0,va0.txt,0,0
|
||||
fan_value.txt=va0.txt+"%"
|
||||
fansetting.txt="{\"domain\": \"fan\", \"key\": \"stop\", \"value\": "+va0.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
fansetting.txt="{\"page\": \"fan\", \"key\": \"stop\", \"value\": "+va0.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -350,7 +353,7 @@ Timer timer0
|
||||
sys0=100*fanslider.val/fanslider.maxval
|
||||
covx sys0,va0.txt,0,0
|
||||
fan_value.txt=va0.txt+"%"
|
||||
fansetting.txt="{\"domain\": \"fan\", \"key\": \"percentage\", \"value\": "+va0.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
fansetting.txt="{\"page\": \"fan\", \"key\": \"percentage\", \"value\": "+va0.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
@@ -44,7 +44,7 @@ Variable (string) lastclick
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) entity
|
||||
Variable (string) climate_entity
|
||||
Attributes
|
||||
ID : 46
|
||||
Scope : global
|
||||
@@ -383,7 +383,6 @@ Text bt_alarm
|
||||
Touch Release Event
|
||||
if(api==1)
|
||||
{
|
||||
entity.txt=""
|
||||
page alarm
|
||||
}
|
||||
|
||||
@@ -447,7 +446,7 @@ Hotspot jump_climate
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
if(entity.txt=="")
|
||||
if(climate_entity.txt=="")
|
||||
{
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
@@ -458,11 +457,12 @@ Hotspot jump_climate
|
||||
printh FF FF FF
|
||||
}else
|
||||
{
|
||||
climate.entity.txt=climate_entity.txt
|
||||
page climate
|
||||
}
|
||||
|
||||
Touch Release Event
|
||||
if(entity.txt=="")
|
||||
if(climate_entity.txt=="")
|
||||
{
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
|
||||
@@ -296,7 +296,7 @@ Button benter
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
aux.txt="{\"domain\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"entity\": \""+entity.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
||||
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"entity\": \""+entity.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
@@ -18,7 +18,7 @@ Page light
|
||||
page home
|
||||
}else
|
||||
{
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -43,11 +43,10 @@ Page light
|
||||
vis temp_button,0
|
||||
vis color_touch,0
|
||||
vis color_button,0
|
||||
page_label.txt=home.entity.txt
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -56,7 +55,7 @@ Page light
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
@@ -64,9 +63,6 @@ Page light
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Page Exit Event
|
||||
home.entity.txt=""
|
||||
|
||||
Variable (int32) rgb565
|
||||
Attributes
|
||||
ID : 22
|
||||
@@ -114,6 +110,13 @@ Variable (string) back_page
|
||||
Text : home
|
||||
Max. Text Size: 15
|
||||
|
||||
Variable (string) entity
|
||||
Attributes
|
||||
ID : 33
|
||||
Scope : global
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Number ring
|
||||
Attributes
|
||||
ID : 4
|
||||
@@ -387,7 +390,7 @@ Picture colorwheel
|
||||
covx r,va1.txt,0,0
|
||||
covx g,va2.txt,0,0
|
||||
covx b,va3.txt,0,0
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+", "+va2.txt+", "+va3.txt+"], \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"component\": \"rgb_color\", \"value\": ["+va1.txt+", "+va2.txt+", "+va3.txt+"], \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
@@ -413,7 +416,7 @@ Slider lightslider
|
||||
covx lightslider.val,va1.txt,0,0
|
||||
light_value.txt=va1.txt+"%"
|
||||
light_value_2.txt=va1.txt+"%"
|
||||
lightsetting.txt="{\"domain\": \"light\", \"key\": \"brightness_pct\", \"value\": "+va1.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"key\": \"brightness_pct\", \"value\": "+va1.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
@@ -436,7 +439,7 @@ Slider tempslider
|
||||
covx tempslider.val,va1.txt,0,0
|
||||
temp_value.txt=va1.txt
|
||||
temp_value_2.txt=va1.txt
|
||||
lightsetting.txt="{\"domain\": \"light\", \"key\": \"color_temp\", \"value\": "+va1.txt+", \"entity\": \""+home.entity.txt+"\"}"
|
||||
lightsetting.txt="{\"page\": \"light\", \"key\": \"color_temp\", \"value\": "+va1.txt+", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
|
||||
Reference in New Issue
Block a user