From b3345cf9f61b44bf948d2ef5d38eaa72d6a13074 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Sun, 16 Aug 2026 00:46:29 +1200 Subject: [PATCH] Edit esp-bedside-panel.yaml --- esphome/esp-bedside-panel.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/esphome/esp-bedside-panel.yaml b/esphome/esp-bedside-panel.yaml index 4d4b259..dd5a286 100644 --- a/esphome/esp-bedside-panel.yaml +++ b/esphome/esp-bedside-panel.yaml @@ -6,6 +6,7 @@ # https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml #:########################################################################################:# # VERSIONS: +# V1.54 2026-08-16 Dimmed Clock time and date palette in Blackout ambient-light mode # V1.53 2026-07-31 Expanded Jobs Summary to nine active jobs in a 3x4 grid with three spare slots # V1.52 2026-07-28 Centralised battery publishing and removed continuously evaluated battery template lambdas # V1.51 2026-07-28 Removed unsupported update_interval from the template USB-power binary sensor @@ -3140,6 +3141,41 @@ script: # The active and clock/idle brightness levels are independently adjustable # and restored after reboot. + # Keep the idle Clock unobtrusive at the minimum usable backlight level. + - id: apply_clock_blackout_palette + mode: restart + then: + - if: + condition: + lambda: |- + const float lux = id(ambient_light_illuminance).state; + float blackout_threshold = + id(display_blackout_lux_threshold).state; + + if (isnan(blackout_threshold)) { + blackout_threshold = 2.0f; + } + + return !isnan(lux) && lux < blackout_threshold; + + then: + - lvgl.label.update: + id: clock_time_label + text_color: 0x4A4742 + + - lvgl.label.update: + id: clock_date_label + text_color: 0x383632 + + else: + - lvgl.label.update: + id: clock_time_label + text_color: 0xE4DDD2 + + - lvgl.label.update: + id: clock_date_label + text_color: 0xA8A198 + - id: apply_active_backlight mode: restart then: @@ -3206,6 +3242,8 @@ script: return brightness_percent / 100.0f; transition_length: 150ms + - script.execute: apply_clock_blackout_palette + - id: apply_dim_backlight mode: restart then: @@ -3272,6 +3310,8 @@ script: return brightness_percent / 100.0f; transition_length: 700ms + - script.execute: apply_clock_blackout_palette + #:######################################################################################:# # BOTTOM NAVIGATION LIVE TIME #:######################################################################################:#