From ccace5d9460d663559fa560f57d14eb00c09d24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Koco=C5=84?= Date: Wed, 8 Apr 2026 23:12:31 +0200 Subject: [PATCH] modified: packages/devices_v0_7/display.yaml --- packages/devices_v0_7/display.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/devices_v0_7/display.yaml b/packages/devices_v0_7/display.yaml index a9944b3..3280925 100644 --- a/packages/devices_v0_7/display.yaml +++ b/packages/devices_v0_7/display.yaml @@ -67,10 +67,11 @@ binary_sensor: inverted: true on_press: then: - # woke up when on the screensaver, as well do not include the logo page and screensaver in a loop when pushing a button + # cycle through pages: first_page -> second_page -> third_page -> last_page -> first_page + # screensaver is excluded from the cycle — button press wakes it to first_page - if: condition: - # on the last page go to the first page skipping the screensaver and logo page + # on the last page wrap around to the first page (skip screensaver) display.is_displaying_page: last_page then: - display.page.show: first_page @@ -78,13 +79,13 @@ binary_sensor: else: - if: condition: - # on the screensaver, show the logo for a while and display the first page + # button wakes screensaver — jump to first page display.is_displaying_page: screensaver then: - display.page.show: first_page - component.update: oled_display else: - # not the last page and screensaver go to the next page + # advance to the next page (first -> second -> third -> last) - display.page.show_next: oled_display - component.update: oled_display # restart screensaver script