Flag display as disconnected during upload

To prevent Blueprint sending data
This commit is contained in:
Edward Firmo
2024-04-17 10:06:29 +02:00
parent 6c2c9ab5bd
commit 85d6abae93
3 changed files with 32 additions and 17 deletions

View File

@@ -187,6 +187,17 @@ script:
condition:
- lambda: return (current_page->state == "confirm");
timeout: 2s
- script.execute:
id: report_upload_progress
message: "Set Nextion unavailable for blueprint calls"
- script.wait: report_upload_progress
- binary_sensor.template.publish:
id: nextion_init
state: false
- script.execute:
id: report_upload_progress
message: "Preparing for upload..."
- script.wait: report_upload_progress
# Then start the upload
- lambda: |-
static const char *const TAG = "addon_upload_tft.script.upload_tft";
@@ -235,13 +246,6 @@ script:
condition:
- lambda: return (current_page->state == "confirm");
timeout: 2s
- script.execute:
id: report_upload_progress
message: "Set Nextion unavailable for blueprint calls"
- script.wait: report_upload_progress
- binary_sensor.template.publish:
id: nextion_init
state: false
- script.execute:
id: report_upload_progress
message: "Stopping other scripts"