* upd: hmi2txt export * upd: sync latest dev * upd: currentpage * upd: lightsettings * upd: coversettings * upd: touchevent * Fix error preventing long click on button pages * upd: climate * upd: lastclick w.o. blueprint * Upd: Long_press - Lights * Update: Everything else (#688) Still a bug with confirmation message and long press button. * Fix: Notifications * Fix: Button long press * Fix: Climate page * Fix: Indoor temp when no sensor defined * fix: open climate from homepage triggers mulitple --------- Co-authored-by: Edward Firmo <94725493+edwardtfn@users.noreply.github.com>
456 lines
15 KiB
Plaintext
456 lines
15 KiB
Plaintext
Page coversettings
|
|
Attributes
|
|
ID : 0
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
Width : 480
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Locked : no
|
|
Swide up page ID : disabled
|
|
Swide down page ID : disabled
|
|
Swide left page ID : disabled
|
|
Swide right page ID: disabled
|
|
Fill : solid color
|
|
Back. Color : 0
|
|
|
|
Events
|
|
Preinitialize Event
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints "{\"page\": \"coversettings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Press Event
|
|
printh 92
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Release Event
|
|
printh 92
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints "{\"page\": \"coversettings\", \"component\": \"touchevent\", \"value\": \"release\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Variable (string) va1
|
|
Attributes
|
|
ID : 9
|
|
Scope : local
|
|
Text : newtxt
|
|
Max. Text Size: 10
|
|
|
|
Variable (string) coversetting
|
|
Attributes
|
|
ID : 15
|
|
Scope : local
|
|
Text :
|
|
Max. Text Size: 100
|
|
|
|
Text battery_value
|
|
Attributes
|
|
ID : 1
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 326
|
|
y coordinate : 69
|
|
Width : 60
|
|
Height : 30
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : solid color
|
|
Style : flat
|
|
Associated Keyboard : none
|
|
Font ID : 2
|
|
Back. Color : 0
|
|
Font Color : 65535
|
|
Horizontal Alignment: left
|
|
Vertical Alignment : center
|
|
Input Type : character
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Text cover_value
|
|
Attributes
|
|
ID : 2
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 183
|
|
y coordinate : 43
|
|
Width : 83
|
|
Height : 20
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : solid color
|
|
Style : flat
|
|
Associated Keyboard : none
|
|
Font ID : 2
|
|
Back. Color : 0
|
|
Font Color : 65535
|
|
Horizontal Alignment: center
|
|
Vertical Alignment : center
|
|
Input Type : character
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Text cover_name
|
|
Attributes
|
|
ID : 3
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 48
|
|
y coordinate : 8
|
|
Width : 300
|
|
Height : 30
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : solid color
|
|
Style : flat
|
|
Associated Keyboard : none
|
|
Font ID : 2
|
|
Back. Color : 0
|
|
Font Color : 65535
|
|
Horizontal Alignment: left
|
|
Vertical Alignment : center
|
|
Input Type : character
|
|
Text :
|
|
Max. Text Size : 25
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Text icon_state
|
|
Attributes
|
|
ID : 13
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 12
|
|
y coordinate : 8
|
|
Width : 35
|
|
Height : 35
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : solid color
|
|
Style : flat
|
|
Associated Keyboard : none
|
|
Font ID : 8
|
|
Back. Color : 0
|
|
Font Color : 65535
|
|
Horizontal Alignment: center
|
|
Vertical Alignment : center
|
|
Input Type : character
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Text battery_icon
|
|
Attributes
|
|
ID : 14
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 291
|
|
y coordinate : 66
|
|
Width : 35
|
|
Height : 35
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : crop image
|
|
Associated Keyboard : none
|
|
Font ID : 8
|
|
Cropped Back. Picture ID: 0
|
|
Horizontal Alignment : center
|
|
Vertical Alignment : center
|
|
Input Type : character
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Picture cover_exit
|
|
Attributes
|
|
ID : 11
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
Opacity : 127
|
|
x coordinate : 415
|
|
y coordinate : 10
|
|
Width : 25
|
|
Height : 25
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Picture ID : 56
|
|
|
|
Slider coverslider
|
|
Attributes
|
|
ID : 6
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 183
|
|
y coordinate : 67
|
|
Width : 83
|
|
Height : 233
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Direction : vertical
|
|
Fill : image
|
|
Cursor width : auto
|
|
Cursor height : 255
|
|
Back. Picture ID : 63
|
|
Slided Back. Picture ID: 62
|
|
Position : 0
|
|
Upper range limit : 100
|
|
Lower range limit : 0
|
|
|
|
Events
|
|
Touch Release Event
|
|
covx coverslider.val,va1.txt,0,0
|
|
cover_value.txt=va1.txt+"%"
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"cover_position\", \"value\": "+va1.txt+"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Button cover_open
|
|
Attributes
|
|
ID : 4
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 295
|
|
y coordinate : 186
|
|
Width : 50
|
|
Height : 50
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : image
|
|
Font ID : 1
|
|
Background Picture ID (Unpressed): 57
|
|
Back. Picture ID (Pressed) : 58
|
|
Horizontal Alignment : center
|
|
Vertical Alignment : center
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Events
|
|
Touch Press Event
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"open_cover\", \"value\": \"press\"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Button cover_close
|
|
Attributes
|
|
ID : 5
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 295
|
|
y coordinate : 250
|
|
Width : 50
|
|
Height : 50
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : image
|
|
Font ID : 1
|
|
Background Picture ID (Unpressed): 59
|
|
Back. Picture ID (Pressed) : 60
|
|
Horizontal Alignment : center
|
|
Vertical Alignment : center
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Events
|
|
Touch Press Event
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close_cover\", \"value\": \"press\"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Button cover_stop
|
|
Attributes
|
|
ID : 10
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Opacity : 127
|
|
x coordinate : 104
|
|
y coordinate : 250
|
|
Width : 50
|
|
Height : 50
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
Fill : image
|
|
Font ID : 1
|
|
Background Picture ID (Unpressed): 65
|
|
Back. Picture ID (Pressed) : 66
|
|
Horizontal Alignment : center
|
|
Vertical Alignment : center
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 10
|
|
Word wrap : disabled
|
|
Horizontal Spacing : 0
|
|
Vertical Spacing : 0
|
|
|
|
Events
|
|
Touch Press Event
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"stop_cover\", \"value\": \"press\"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Hotspot cover_back
|
|
Attributes
|
|
ID : 12
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
Opacity : 127
|
|
x coordinate : 387
|
|
y coordinate : 0
|
|
Width : 60
|
|
Height : 60
|
|
Effect : load
|
|
Effect Priority : 0
|
|
Effect Time : 300
|
|
|
|
Events
|
|
Touch Press Event
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"press\"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Release Event
|
|
coversetting.txt="{\"page\": \"coversettings\", \"component\": \"close\", \"value\": \"release\"}"
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints coversetting.txt,0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Timer swipestore
|
|
Attributes
|
|
ID : 8
|
|
Scope : local
|
|
Period (ms): 50
|
|
Enabled : no
|
|
|
|
Events
|
|
Timer Event
|
|
swipex=tch0
|
|
swipey=tch1
|
|
|
|
TouchCap swipe
|
|
Attributes
|
|
ID : 7
|
|
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
|
|
}
|
|
}
|
|
|