From 7295048c32c65d4c9c94d68a86d4bd2a276a8f6e Mon Sep 17 00:00:00 2001 From: Christopher Wiebe Date: Sun, 10 May 2026 18:52:34 -0700 Subject: [PATCH] Bump partial refresh to 80ms, add retry to catch HA state syncs display_partial() drops calls when the e-paper is still busy, which silently lost HA-triggered widget updates (e.g. fan speed) that landed during the previous refresh's busy window. The retry fires once the busy window has cleared so the state-synced state makes it to the panel. Co-Authored-By: Claude Opus 4.7 --- waveshare-test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/waveshare-test.yaml b/waveshare-test.yaml index 708353d..e53677f 100644 --- a/waveshare-test.yaml +++ b/waveshare-test.yaml @@ -159,7 +159,12 @@ script: - id: refresh_display mode: restart then: - - delay: 60ms + - delay: 80ms + - lambda: 'id(display0).display_partial();' + # Retry once the e-paper's busy window has cleared, to catch HA-synced + # widget updates that landed while the first partial refresh was in flight + # (display_partial drops calls when busy). + - delay: 350ms - lambda: 'id(display0).display_partial();' - id: full_refresh_display mode: restart