Move page constructors to TFT

To reduce comms between ESPHome and Nextion, which could help with some sync issues found with 921600 bps.
This commit is contained in:
Edward Firmo
2023-12-17 12:44:12 +01:00
parent bd99afa14b
commit a2dc5913fa
130 changed files with 665 additions and 701 deletions

View File

@@ -46,7 +46,9 @@ climate:
internal: false
on_state:
- logger.log: Climate state changed - Start
- script.execute: addon_climate_update_page_climate
- script.execute:
id: page_climate
construct_page: false
- script.execute: addon_climate_update_page_home
- logger.log: Climate state changed - End
@@ -100,7 +102,7 @@ script:
- lambda: |-
id(is_addon_climate_visible) = embedded_climate;
- id: !extend addon_climate_update_page_climate
- id: !extend page_climate
then:
- lambda: |-
if (current_page->state == "climate" and id(is_addon_climate_visible))