Fix fan.turn_off call

Removed timer call from fan stop button.
This solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/791#discussioncomment-6494535
This commit is contained in:
Edward Firmo
2023-08-02 10:27:39 +02:00
parent dc787c5b0d
commit 669ead9e79
18 changed files with 1819 additions and 20 deletions

Binary file not shown.

Binary file not shown.

394
nspanel_eu_code/alarm.txt Normal file
View File

@@ -0,0 +1,394 @@
Page alarm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=home.brightness.val
if(api==0)
{
page home
}else
{
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "nspanelevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
}
Touch Press Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "touchevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
Touch Release Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "touchevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
Page Exit Event
home.entity.txt=""
Variable (string) alarmsetting
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 255
Variable (string) back_page
Attributes
ID : 8
Scope : local
Text : home
Max. Text Size: 15
Variable (string) va0
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 10
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Alarm Control Panel
Max. Text Size : 25
Text icon_state
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_home_text
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 10
Text bt_home_bri
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_away_text
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 10
Text bt_away_bri
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_away_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_night_text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 10
Text bt_night_bri
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_night_icon
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Picture alarm_exit
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_home_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_away_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_night_pic
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: disabled
Dual-state Button bt_disarm
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Disarm
Max. Text Size : 10
Dual-state Button bt_vacations
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Vacations
Max. Text Size : 10
Dual-state Button bt_bypass
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Bypass
Max. Text Size : 10
Hotspot alarm_back
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
if(back_page.txt=="buttonpage01")
{
page buttonpage01
}else if(back_page.txt=="buttonpage02")
{
page buttonpage02
}else if(back_page.txt=="buttonpage03")
{
page buttonpage03
}else if(back_page.txt=="buttonpage04")
{
page buttonpage04
}else
{
page home
}
Hotspot bt_home
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Hotspot bt_away
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Hotspot bt_night
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 3
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 2
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -12,14 +12,21 @@ Page buttonpage02
Events
Preinitialize Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
vis 255,0
vis button_back,1
dim=home.brightness.val
if(api==0)
{
page home
}else
{
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
vis 255,0
vis button_back,1
}
Touch Press Event
printh 92

View File

@@ -12,12 +12,19 @@ Page entitypage02
Events
Preinitialize Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
dim=home.brightness.val
if(api==0)
{
page home
}else
{
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
}
Touch Press Event
printh 92

View File

@@ -13,7 +13,7 @@ Page weather02
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else

View File

@@ -13,7 +13,7 @@ Page weather03
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else

View File

@@ -13,7 +13,7 @@ Page weather04
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,394 @@
Page alarm
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=home.brightness.val
if(api==0)
{
page home
}else
{
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "nspanelevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
}
Touch Press Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "touchevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
Touch Release Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "touchevent",0
printh 00
prints alarmsetting.txt,0
printh 00
printh FF FF FF
Page Exit Event
home.entity.txt=""
Variable (string) alarmsetting
Attributes
ID : 7
Scope : local
Text :
Max. Text Size: 255
Variable (string) back_page
Attributes
ID : 8
Scope : local
Text : home
Max. Text Size: 15
Variable (string) va0
Attributes
ID : 9
Scope : local
Text :
Max. Text Size: 10
Text page_label
Attributes
ID : 1
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Alarm Control Panel
Max. Text Size : 25
Text icon_state
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_home_text
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Home
Max. Text Size : 10
Text bt_home_bri
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_away_text
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Away
Max. Text Size : 10
Text bt_away_bri
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_away_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_night_text
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Night
Max. Text Size : 10
Text bt_night_bri
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_night_icon
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Picture alarm_exit
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_home_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_away_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: disabled
Picture bt_night_pic
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID: disabled
Dual-state Button bt_disarm
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Disarm
Max. Text Size : 10
Dual-state Button bt_vacations
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Vacations
Max. Text Size : 10
Dual-state Button bt_bypass
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
State : unpressed
Text : Bypass
Max. Text Size : 10
Hotspot alarm_back
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
if(back_page.txt=="buttonpage01")
{
page buttonpage01
}else if(back_page.txt=="buttonpage02")
{
page buttonpage02
}else if(back_page.txt=="buttonpage03")
{
page buttonpage03
}else if(back_page.txt=="buttonpage04")
{
page buttonpage04
}else
{
page home
}
Hotspot bt_home
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Hotspot bt_away
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Hotspot bt_night
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 3
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 2
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
//page
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
//page
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -0,0 +1,635 @@
Page buttonpage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=home.brightness.val
if(api==0)
{
page home
}else
{
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
vis 255,0
vis button_back,1
}
Touch Press Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes
ID : 45
Scope : local
Text :
Max. Text Size: 100
Text button01text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button01bri
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button02text
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02bri
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button03text
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03bri
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button04text
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04bri
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button05text
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05bri
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button06text
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06bri
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button07text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07bri
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text button08text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08bri
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bpage02_label
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 30
Text button01icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button02icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button03icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button04icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button05icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button06icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button07icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text button08icon
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Picture button01pic
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button02pic
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button03pic
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button04pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button05pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button06pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button07pic
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID: disabled
Picture button08pic
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: disabled
Hotspot button_back
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button02
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button03
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button04
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button05
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button06
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button07
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button08
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page buttonpage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
page home
}
}

View File

@@ -0,0 +1,362 @@
Page entitypage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Locked : no
Swide up page ID : disabled
Swide down page ID : disabled
Swide left page ID : disabled
Swide right page ID: disabled
Events
Preinitialize Event
dim=home.brightness.val
if(api==0)
{
page home
}else
{
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"entitypage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
}
Touch Press Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"entitypage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Text value01_label
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value05_label
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value04_label
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value02_label
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value03_label
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text entity02_label
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 30
Text value06_label
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value07_label
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value08_label
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 20
Text value01_pic
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value02_pic
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value03_pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value04_pic
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value05_pic
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value06_pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value07_pic
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value08_pic
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 5
Text value01
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value02
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value03
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value04
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value05
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value06
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value07
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text value08
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Hotspot entity02_back
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 1
Scope: local
Value: 0
Events
Touch Press Event
swipestore.en=1 // Start swipestore timer
Touch Release Event
swipestore.en=0
// Touch has ended, x
if(tch0==0)
{
swipec=swipex-tch2
// From Left to Right
if(swipec>swipedx)
{
page entitypage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page entitypage03
}
}
// Touch has ended, y
if(tch1==0)
{
swipec=swipey-tch3
// From Up to Down
if(swipec>100)
{
//page
}
// Down to Up
swipec2=0-swipedy
if(swipec<-100)
{
//page
}
}

View File

@@ -13,7 +13,7 @@ Page weather02
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else

View File

@@ -13,7 +13,7 @@ Page weather03
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else

View File

@@ -13,7 +13,7 @@ Page weather04
Events
Preinitialize Event
dim=home.brightness.val
if(home.api.val==0)
if(api==0)
{
page home
}else