From 8a77884538f06f3eb3725f2ae55ea0c10762e144 Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Wed, 26 Aug 2026 19:50:42 -0500 Subject: [PATCH] Lower gamma_correct so the LEDs dim below 28/255 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gamma_correct defaults to 2.8, and calculate_gamma_table() computes round((i/255)^gamma * 255), so indices 0 through 27 all map to 0. Below 28/255 the LEDs were driven fully off rather than dim, while the entity still reported on. 1.5 brings the first lit value down to 4/255 and keeps a perceptual curve rather than going fully linear. Set on the partitions because that is the correction that applies: light_partition.h get_view_internal() calls raw_set_color_correction() with the partition's own correction for every pixel it writes, so the parent chain's value would be inert. Version 26.8.26.4 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- Integrations/ESPHome/Core.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index eb35445..f77efe0 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -1,5 +1,5 @@ substitutions: - version: "26.8.26.3" + version: "26.8.26.4" run_duration_default: "90s" run_duration_gpio: "90s" @@ -767,6 +767,7 @@ light: - platform: partition id: all_lights name: "All Lights" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 0, to: 36 } @@ -776,6 +777,7 @@ light: - platform: partition id: body_light name: "Body Light" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 0, to: 23 } @@ -785,6 +787,7 @@ light: - platform: partition id: mouth_light name: "Mouth Light" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 24, to: 28 } @@ -794,6 +797,7 @@ light: - platform: partition id: nose_light name: "Nose Light" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 29, to: 29 } @@ -803,6 +807,7 @@ light: - platform: partition id: eyes_light name: "Eyes Light" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 30, to: 31 } @@ -812,6 +817,7 @@ light: - platform: partition id: hat_light name: "Hat Light" + gamma_correct: 1.5 default_transition_length: 0s segments: - { id: led_chain, from: 32, to: 36 }