Files
NSPanel_HA_Blueprint/nspanel_us_code/settings.txt
Edward Firmo c211d3f435 Remove settings_entity (#887)
* Remove `settings_entity`

- Bump version to 3.5_dev
- Removed references to pictures removed from TFT
- Removed code related to closing settings pages
- Removed trigger `settings_entity`

* Removed `set_settings_entity` service

- Bump version to 3.5_dev
- Removed `set_settings_entity` service - BREAKING CHANGE
- Removed `settings_entity` text-sensor - BREAKING CHANGE
- Added service `open_entity_settings_page` - BREAKING CHANGE

* Removed `settings_entity`

- Bump version to 3.5_dev
- Removed old climate page (climate_backup)
- Removed pics related to old climate page (ids 16-47, 80-83, 95-96 and 125(US only))
- Enforces brightness on any page change (this allows wake-up on settings page with long press on physical buttons) - Pending removing code from Blueprint
- Added `entity` variable on pages `climate`, `lightsettings` and `coversettings`
- Added `entity` info to `nspanelevent` on pages `climate`, `lightsettings` and `coversettings`
- Added `back_page` variable on pages `climate`, `lightsettings` and `coversettings` (default: home)
- Moving to TFT close page logic on pages `climate`, `lightsettings` and `coversettings` - Pending changes on Blueprint and ESPHome
- Standardized name for `page_label` on pages `climate`, `lightsettings` and `coversettings`
- Standardized settings page names: `climate`, `cover` and `light` (Removed `settings` from page name)

* Removed `settings_entity`

* Removed `settings_entity`

* Removed `settings_entity`
2023-06-22 14:16:47 +02:00

230 lines
6.1 KiB
Plaintext

Page settings
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
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
Touch Press Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Text a03
Attributes
ID : 3
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 80
Max. Text Size : 3
Text a04
Attributes
ID : 4
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 10
Max. Text Size : 3
Text a06
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Reboot
Max. Text Size : 6
Text a07
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Sleep
Max. Text Size : 5
Text a08
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Brightness
Max. Text Size : 10
Text a09
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Dimming
Max. Text Size : 7
Picture settings_exit
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: disabled
Slider brightslider
Attributes
ID : 1
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 80
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
printh 91
prints "brightslider",0
printh 00
prints brightslider.val,0
printh FF FF FF
Slider dimslider
Attributes
ID : 2
Scope : global
Dragging : 0
Send Component ID: on press and release
Position : 20
Upper range limit: 100
Lower range limit: 0
Events
Touch Release Event
printh 91
prints "dimslider",0
printh 00
prints dimslider.val,0
printh FF FF FF
Dual-state Button bt0
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Dual-state Button bt1
Attributes
ID : 14
Scope : global
Dragging : 0
Send Component ID: on press and release
State : unpressed
Text :
Max. Text Size : 0
Hotspot setings_back
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Press Event
page home
Timer swipestore
Attributes
ID : 11
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 12
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
}
}