Remove entity info from pages on TFT

Since v3.4, the info about entity_id shown was going all the way to Nextion and then sent back in the json return, however this requires a long (100-char) global var and the way it was implemented, it was one of those per settings page, as climate should be also recorded at the same time in case the embedded climate was installed.
This was taking too much memory, so I've moved this info to a global variable (string) in ESPHome.
There is now lots of space for code cleaning (and still pending to do the same with climate entity, as it could be only a bool to inform if embedded), but this brings the functionality.

This enabled the return to global for some components, so it probably solves #1031
This commit is contained in:
Edward Firmo
2023-09-13 23:36:24 +02:00
parent a836462df1
commit d1638863a4
31 changed files with 315 additions and 482 deletions

View File

@@ -114,7 +114,7 @@ Text date
Text value01_state
Attributes
ID : 10
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -244,7 +244,7 @@ Text icon_top_10
Text value01_icon
Attributes
ID : 26
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -254,7 +254,7 @@ Text value01_icon
Text value03_state
Attributes
ID : 27
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -264,7 +264,7 @@ Text value03_state
Text value03_icon
Attributes
ID : 28
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -274,7 +274,7 @@ Text value03_icon
Text value02_icon
Attributes
ID : 29
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -284,7 +284,7 @@ Text value02_icon
Text value02_state
Attributes
ID : 30
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -389,7 +389,7 @@ Text meridiem
Text button01
Attributes
ID : 45
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -417,7 +417,7 @@ Text button01
Text button02
Attributes
ID : 46
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -445,7 +445,7 @@ Text button02
Text button03
Attributes
ID : 47
Scope : local
Scope : global
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
@@ -531,7 +531,6 @@ Hotspot jump_climate
printh FF FF FF
}else
{
climate.entity.txt=climate_entity.txt
page climate
}