Flag display as disconnected during upload
To prevent Blueprint sending data
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user