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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user