HW button bar in all pages
Partially solves #1835 Partially solves #1517 Solves #1507
This commit is contained in:
@@ -105,6 +105,16 @@ globals:
|
||||
nspanel_ha_blueprint_upload_tft:
|
||||
|
||||
script:
|
||||
- id: nextion_status
|
||||
mode: restart
|
||||
then:
|
||||
- lambda: |-
|
||||
static const char *const TAG = "script.nextion_status";
|
||||
ESP_LOGD(TAG, "Nextion status:");
|
||||
ESP_LOGD(TAG, " Is detected: %s", YESNO(disp1->is_detected()));
|
||||
ESP_LOGD(TAG, " Is setup: %s", YESNO(disp1->is_setup()));
|
||||
ESP_LOGD(TAG, " Queue size: %d", disp1->queue_size());
|
||||
|
||||
- id: nextion_upload
|
||||
mode: single
|
||||
parameters:
|
||||
@@ -166,6 +176,11 @@ script:
|
||||
App.feed_wdt();
|
||||
}
|
||||
|
||||
- id: !extend stop_all
|
||||
then:
|
||||
- lambda: |-
|
||||
nextion_status->stop();
|
||||
|
||||
- id: upload_tft
|
||||
mode: single
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user