Replace sendme by current_page text sensor

Solves #1900
This commit is contained in:
Edward Firmo
2024-03-14 22:38:22 +01:00
parent ce04dd7b99
commit 79363673d3
95 changed files with 549 additions and 127 deletions

View File

@@ -12,7 +12,12 @@ Page blank
Events
Preinitialize Event
sendme
printh 92
prints "current_page",0
printh 00
prints "blank",0
printh 00
printh FF FF FF
dim=100
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
@@ -83,7 +88,7 @@ Text tft_version
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : TFT: v2024.1.2
Text : TFT: v2024.3.0
Max. Text Size : 20
Events
@@ -189,7 +194,12 @@ Timer tm_esphome
{
rest
}
sendme
printh 92
prints "current_page",0
printh 00
prints "blank",0
printh 00
printh FF FF FF
printh 91
prints "display_mode",0
printh 00

View File

@@ -24,7 +24,12 @@ Page alarm
vis bt_bypass,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "alarm",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -16,7 +16,12 @@ Page boot
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
Page Exit Event
dim=0
@@ -185,7 +190,12 @@ Timer tm_esphome
{
rest
}
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
printh 91
prints "display_mode",0
printh 00

View File

@@ -39,7 +39,12 @@ Page buttonpage01
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage01",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage02
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage02",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage03
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage03",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage04
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage04",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -33,7 +33,12 @@ Page climate
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "climate",0
printh 00
printh FF FF FF
Page Exit Event
covx embedded.val,va2.txt,0,0

View File

@@ -17,7 +17,12 @@ Page confirm
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "confirm",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -17,7 +17,12 @@ Page cover
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "cover",0
printh 00
printh FF FF FF
Variable (string) va1
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage01
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage01",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage02
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage02",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage03
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage03",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage04
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage04",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -18,7 +18,12 @@ Page fan
}
vis unavailable,0
vis bt_oscillate,0
sendme
printh 92
prints "current_page",0
printh 00
prints "fan",0
printh 00
printh FF FF FF
Variable (string) fansetting
Attributes

View File

@@ -12,6 +12,12 @@ Page home
Events
Preinitialize Event
printh 92
prints "current_page",0
printh 00
prints "home",0
printh 00
printh FF FF FF
back_page_id=0
if(qrcode.qrcode_value.txt=="")
{
@@ -31,7 +37,6 @@ Page home
vis right_bt_text,0
}
vis unavailable,0
sendme
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page keyb_num
page page_id.val
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "keyb_num",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -37,7 +37,12 @@ Page light
vis color_button,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "light",0
printh 00
printh FF FF FF
Variable (int32) rgb565
Attributes

View File

@@ -17,7 +17,12 @@ Page media_player
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "media_player",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page notification
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "notification",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -13,7 +13,12 @@ Page qrcode
Events
Preinitialize Event
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "qrcode",0
printh 00
printh FF FF FF
Text qrcode_label
Attributes

View File

@@ -15,7 +15,12 @@ Page screensaver
vis text,0
dim=brightness_sleep
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "screensaver",0
printh 00
printh FF FF FF
Touch Release Event
page back_page_id

View File

@@ -19,7 +19,12 @@ Page settings
vis lbl_sleep,0
vis bt_sleep,0
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "settings",0
printh 00
printh FF FF FF
Text bright_text
Attributes

View File

@@ -20,7 +20,12 @@ Page utilities
vis title_icon,1
vis title,1
vis button_back,1
sendme
printh 92
prints "current_page",0
printh 00
prints "utilities",0
printh 00
printh FF FF FF
Variable (int32) line_main_d
Attributes

View File

@@ -17,7 +17,12 @@ Page weather01
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather01",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather02
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather02",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather03
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather03",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather04
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather04",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather05
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather05",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -24,7 +24,12 @@ Page alarm
vis bt_bypass,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "alarm",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -16,7 +16,12 @@ Page boot
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
Page Exit Event
dim=0
@@ -192,7 +197,12 @@ Timer tm_esphome
{
rest
}
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
printh 91
prints "display_mode",0
printh 00

View File

@@ -39,7 +39,12 @@ Page buttonpage01
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage01",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage02
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage02",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage03
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage03",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage04
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage04",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -33,7 +33,12 @@ Page climate
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "climate",0
printh 00
printh FF FF FF
Page Exit Event
covx embedded.val,va2.txt,0,0

View File

@@ -17,7 +17,12 @@ Page confirm
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "confirm",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -17,7 +17,12 @@ Page cover
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "cover",0
printh 00
printh FF FF FF
Variable (string) va1
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage01
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage01",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage02
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage02",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage03
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage03",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage04
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage04",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -18,7 +18,12 @@ Page fan
}
vis unavailable,0
vis bt_oscillate,0
sendme
printh 92
prints "current_page",0
printh 00
prints "fan",0
printh 00
printh FF FF FF
Variable (string) fansetting
Attributes

View File

@@ -12,6 +12,12 @@ Page home
Events
Preinitialize Event
printh 92
prints "current_page",0
printh 00
prints "home",0
printh 00
printh FF FF FF
back_page_id=0
if(qrcode.qrcode_value.txt=="")
{
@@ -31,7 +37,6 @@ Page home
vis right_bt_text,0
}
vis unavailable,0
sendme
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page keyb_num
page page_id.val
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "keyb_num",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -37,7 +37,12 @@ Page light
vis color_button,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "light",0
printh 00
printh FF FF FF
Variable (int32) rgb565
Attributes

View File

@@ -17,7 +17,12 @@ Page media_player
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "media_player",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page notification
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "notification",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -13,7 +13,12 @@ Page qrcode
Events
Preinitialize Event
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "qrcode",0
printh 00
printh FF FF FF
Text qrcode_label
Attributes

View File

@@ -15,7 +15,12 @@ Page screensaver
vis text,0
dim=brightness_sleep
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "screensaver",0
printh 00
printh FF FF FF
Touch Release Event
page back_page_id

View File

@@ -19,7 +19,12 @@ Page settings
vis lbl_sleep,0
vis bt_sleep,0
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "settings",0
printh 00
printh FF FF FF
Text bright_text
Attributes

View File

@@ -20,7 +20,12 @@ Page utilities
vis title_icon,1
vis title,1
vis button_back,1
sendme
printh 92
prints "current_page",0
printh 00
prints "utilities",0
printh 00
printh FF FF FF
Variable (int32) line_main_d
Attributes

View File

@@ -17,7 +17,12 @@ Page weather01
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather01",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather02
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather02",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather03
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather03",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather04
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather04",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather05
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather05",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -24,7 +24,12 @@ Page alarm
vis bt_bypass,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "alarm",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -16,7 +16,12 @@ Page boot
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
Page Exit Event
dim=0
@@ -185,7 +190,12 @@ Timer tm_esphome
{
rest
}
sendme
printh 92
prints "current_page",0
printh 00
prints "boot",0
printh 00
printh FF FF FF
printh 91
prints "display_mode",0
printh 00

View File

@@ -39,7 +39,12 @@ Page buttonpage01
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage01",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage02
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage02",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage03
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage03",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -39,7 +39,12 @@ Page buttonpage04
vis page_index,1
}
}
sendme
printh 92
prints "current_page",0
printh 00
prints "buttonpage04",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -33,7 +33,12 @@ Page climate
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "climate",0
printh 00
printh FF FF FF
Page Exit Event
covx embedded.val,va2.txt,0,0

View File

@@ -17,7 +17,12 @@ Page confirm
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "confirm",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -17,7 +17,12 @@ Page cover
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "cover",0
printh 00
printh FF FF FF
Variable (string) va1
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage01
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage01",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage02
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage02",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage03
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage03",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -37,7 +37,12 @@ Page entitypage04
{
vis page_index,0
}
sendme
printh 92
prints "current_page",0
printh 00
prints "entitypage04",0
printh 00
printh FF FF FF
Text value01_label
Attributes

View File

@@ -18,7 +18,12 @@ Page fan
}
vis unavailable,0
vis bt_oscillate,0
sendme
printh 92
prints "current_page",0
printh 00
prints "fan",0
printh 00
printh FF FF FF
Variable (string) fansetting
Attributes

View File

@@ -12,6 +12,12 @@ Page home
Events
Preinitialize Event
printh 92
prints "current_page",0
printh 00
prints "home",0
printh 00
printh FF FF FF
back_page_id=0
if(qrcode.qrcode_value.txt=="")
{
@@ -31,7 +37,6 @@ Page home
vis right_bt_text,0
}
vis unavailable,0
sendme
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page keyb_num
page page_id.val
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "keyb_num",0
printh 00
printh FF FF FF
Variable (int32) page_id
Attributes

View File

@@ -37,7 +37,12 @@ Page light
vis color_button,0
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "light",0
printh 00
printh FF FF FF
Variable (int32) rgb565
Attributes

View File

@@ -17,7 +17,12 @@ Page media_player
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "media_player",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -17,7 +17,12 @@ Page notification
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "notification",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes

View File

@@ -13,7 +13,12 @@ Page qrcode
Events
Preinitialize Event
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "qrcode",0
printh 00
printh FF FF FF
Text qrcode_label
Attributes

View File

@@ -15,7 +15,12 @@ Page screensaver
vis text,0
dim=brightness_sleep
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "screensaver",0
printh 00
printh FF FF FF
Touch Release Event
page back_page_id

View File

@@ -19,7 +19,12 @@ Page settings
vis lbl_sleep,0
vis bt_sleep,0
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "settings",0
printh 00
printh FF FF FF
Text bright_text
Attributes

View File

@@ -20,7 +20,12 @@ Page utilities
vis title_icon,1
vis title,1
vis button_back,1
sendme
printh 92
prints "current_page",0
printh 00
prints "utilities",0
printh 00
printh FF FF FF
Variable (int32) line_main_d
Attributes

View File

@@ -17,7 +17,12 @@ Page weather01
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather01",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather02
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather02",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather03
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather03",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather04
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather04",0
printh 00
printh FF FF FF
Text day
Attributes

View File

@@ -17,7 +17,12 @@ Page weather05
page home
}
vis unavailable,0
sendme
printh 92
prints "current_page",0
printh 00
prints "weather05",0
printh 00
printh FF FF FF
Text day
Attributes

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.