Edit esp-bedside-panel.yaml
This commit is contained in:
@@ -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
|
||||
#:######################################################################################:#
|
||||
|
||||
Reference in New Issue
Block a user