Add touchevents to page climate

Possibly solves #995
This commit is contained in:
Edward Firmo
2023-09-17 20:20:19 +02:00
parent 60c47ff82c
commit 8362447dac
9 changed files with 524 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -147,6 +147,14 @@ Text current_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text page_label
Attributes
ID : 6
@@ -157,6 +165,14 @@ Text page_label
Text :
Max. Text Size : 100
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text current_icon
Attributes
ID : 8
@@ -167,6 +183,14 @@ Text current_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text target_icon
Attributes
ID : 9
@@ -177,6 +201,14 @@ Text target_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01_icon
Attributes
ID : 10
@@ -187,6 +219,14 @@ Text value01_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01
Attributes
ID : 11
@@ -197,6 +237,14 @@ Text value01
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02_icon
Attributes
ID : 12
@@ -207,6 +255,14 @@ Text value02_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02
Attributes
ID : 13
@@ -217,6 +273,14 @@ Text value02
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03_icon
Attributes
ID : 14
@@ -227,6 +291,14 @@ Text value03_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03
Attributes
ID : 15
@@ -237,6 +309,14 @@ Text value03
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04_icon
Attributes
ID : 16
@@ -247,6 +327,14 @@ Text value04_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04
Attributes
ID : 17
@@ -257,6 +345,14 @@ Text value04
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text button01_icon
Attributes
ID : 18
@@ -357,6 +453,14 @@ Text target_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Slider climateslider
Attributes
ID : 7
@@ -428,6 +532,11 @@ Hotspot decrease_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val>0)
{
climateslider.val--
@@ -452,6 +561,11 @@ Hotspot increase_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
@@ -475,6 +589,13 @@ Hotspot button01
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
@@ -493,6 +614,13 @@ Hotspot button02
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
@@ -511,6 +639,13 @@ Hotspot button03
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
@@ -529,6 +664,13 @@ Hotspot button04
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
@@ -547,6 +689,13 @@ Hotspot button05
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
@@ -565,6 +714,13 @@ Hotspot button06
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
@@ -583,6 +739,13 @@ Hotspot button07
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
@@ -602,6 +765,11 @@ Hotspot button08
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
click_comp.txt="button08"
click_timer.en=1
@@ -627,6 +795,11 @@ Hotspot button09
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
click_comp.txt="button09"
click_timer.en=1

Binary file not shown.

Binary file not shown.

View File

@@ -147,6 +147,14 @@ Text current_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text page_label
Attributes
ID : 6
@@ -157,6 +165,14 @@ Text page_label
Text :
Max. Text Size : 100
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text current_icon
Attributes
ID : 8
@@ -167,6 +183,14 @@ Text current_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text target_icon
Attributes
ID : 9
@@ -177,6 +201,14 @@ Text target_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01_icon
Attributes
ID : 10
@@ -187,6 +219,14 @@ Text value01_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01
Attributes
ID : 11
@@ -197,6 +237,14 @@ Text value01
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02_icon
Attributes
ID : 12
@@ -207,6 +255,14 @@ Text value02_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02
Attributes
ID : 13
@@ -217,6 +273,14 @@ Text value02
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03_icon
Attributes
ID : 14
@@ -227,6 +291,14 @@ Text value03_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03
Attributes
ID : 15
@@ -237,6 +309,14 @@ Text value03
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04_icon
Attributes
ID : 16
@@ -247,6 +327,14 @@ Text value04_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04
Attributes
ID : 17
@@ -257,6 +345,14 @@ Text value04
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text button01_icon
Attributes
ID : 18
@@ -357,6 +453,14 @@ Text target_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Slider climateslider
Attributes
ID : 7
@@ -402,6 +506,11 @@ Button button_back
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(back_page.txt=="buttonpage01")
{
page buttonpage01
@@ -428,6 +537,11 @@ Hotspot decrease_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val>0)
{
climateslider.val--
@@ -452,6 +566,11 @@ Hotspot increase_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
@@ -475,6 +594,13 @@ Hotspot button01
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
@@ -493,6 +619,13 @@ Hotspot button02
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
@@ -511,6 +644,13 @@ Hotspot button03
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
@@ -529,6 +669,13 @@ Hotspot button04
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
@@ -547,6 +694,13 @@ Hotspot button05
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
@@ -565,6 +719,13 @@ Hotspot button06
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
@@ -583,6 +744,13 @@ Hotspot button07
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
@@ -606,6 +774,11 @@ Hotspot button08
click_timer.en=1
Touch Release Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(click_timer.en==1)
{
click_timer.en=0
@@ -631,6 +804,11 @@ Hotspot button09
click_timer.en=1
Touch Release Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(click_timer.en==1)
{
click_timer.en=0

Binary file not shown.

Binary file not shown.

View File

@@ -147,6 +147,14 @@ Text current_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text page_label
Attributes
ID : 6
@@ -157,6 +165,14 @@ Text page_label
Text :
Max. Text Size : 100
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text current_icon
Attributes
ID : 8
@@ -167,6 +183,14 @@ Text current_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text target_icon
Attributes
ID : 9
@@ -177,6 +201,14 @@ Text target_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01_icon
Attributes
ID : 10
@@ -187,6 +219,14 @@ Text value01_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value01
Attributes
ID : 11
@@ -197,6 +237,14 @@ Text value01
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02_icon
Attributes
ID : 12
@@ -207,6 +255,14 @@ Text value02_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value02
Attributes
ID : 13
@@ -217,6 +273,14 @@ Text value02
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03_icon
Attributes
ID : 14
@@ -227,6 +291,14 @@ Text value03_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value03
Attributes
ID : 15
@@ -237,6 +309,14 @@ Text value03
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04_icon
Attributes
ID : 16
@@ -247,6 +327,14 @@ Text value04_icon
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text value04
Attributes
ID : 17
@@ -257,6 +345,14 @@ Text value04
Text :
Max. Text Size : 6
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Text button01_icon
Attributes
ID : 18
@@ -357,6 +453,14 @@ Text target_temp
Text :
Max. Text Size : 10
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Slider climateslider
Attributes
ID : 7
@@ -428,6 +532,11 @@ Hotspot decrease_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val>0)
{
climateslider.val--
@@ -452,6 +561,11 @@ Hotspot increase_temp
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
if(climateslider.val<climateslider.maxval)
{
climateslider.val++
@@ -475,6 +589,13 @@ Hotspot button01
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}"
@@ -493,6 +614,13 @@ Hotspot button02
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}"
@@ -511,6 +639,13 @@ Hotspot button03
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}"
@@ -529,6 +664,13 @@ Hotspot button04
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}"
@@ -547,6 +689,13 @@ Hotspot button05
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}"
@@ -565,6 +714,13 @@ Hotspot button06
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}"
@@ -583,6 +739,13 @@ Hotspot button07
Send Component ID: disabled
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
covx embedded.val,va2.txt,0,0
lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}"
@@ -602,6 +765,11 @@ Hotspot button08
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
click_comp.txt="button08"
click_timer.en=1
@@ -627,6 +795,11 @@ Hotspot button09
Events
Touch Press Event
printh 91
prints "touchevent",0
printh 00
prints rand,0
printh FF FF FF
click_comp.txt="button09"
click_timer.en=1