From 857cda05520177227510fb667c9ce2d5d5538792 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:43:14 +0100 Subject: [PATCH] Jump to wakeup page if blueprint isn't responding Solves #1432 --- advanced/esphome/nspanel_esphome_core.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/advanced/esphome/nspanel_esphome_core.yaml b/advanced/esphome/nspanel_esphome_core.yaml index ea6940d..601b7d7 100644 --- a/advanced/esphome/nspanel_esphome_core.yaml +++ b/advanced/esphome/nspanel_esphome_core.yaml @@ -2584,6 +2584,16 @@ script: timer_reset_all->execute("boot"); notification_clear->execute(); id(boot_sequence_completed) = true; + - wait_until: + condition: + - not: + - text_sensor.state: # Is boot page visible? + id: current_page + state: 'boot' + timeout: 15s + - lambda: |- + static const char *const TAG = "script.boot_sequence"; + if (current_page->state == "boot") disp1->goto_page(wakeup_page_name->state.c_str()); ESP_LOGD(TAG, "Boot sequence finished!"); - id: notification_clear