From 4b5c10a68e5374b6f199bf312c58ef761da2532f Mon Sep 17 00:00:00 2001 From: deejaybeam Date: Wed, 1 Feb 2023 18:52:33 +0100 Subject: [PATCH] fix: exclude screensaver --- nspanel_esphome.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 643695e..6f7fa76 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -918,7 +918,7 @@ script: - lambda: ESP_LOGD("nspanel", "start page-timer delay %i", int(id(page_timeout).state)); - delay: !lambda return delay *1000; - lambda: |- - if (id(disp1_currentpage).state == "home" or id(disp1_currentpage).state == "boot" or int(id(page_timeout).state) == 0) { + if (id(disp1_currentpage).state == "home" or id(disp1_currentpage).state == "screensaver" or id(disp1_currentpage).state == "boot" or int(id(page_timeout).state) == 0) { ESP_LOGD("nspanel", "no page-jump"); } else { ESP_LOGD("nspanel", "timer->home");