From 1190802ccdb0be3567fad59c480496c57a5d4374 Mon Sep 17 00:00:00 2001 From: Morghus Date: Tue, 29 Jul 2025 20:51:32 +1200 Subject: [PATCH] Extract base light effect configuration so it can be customized per model. --- ...TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml | 37 ++++++++++++++----- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml index 48c8f34..dc553a6 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml @@ -54,20 +54,15 @@ light: type: GRB variant: WS2811 - # Those lights are available based on the model selections - - &light_partition_with_effects - id: light_eu - name: Light EU + # Those lights contain common effects for both models + - &light_partition_with_effects_common + id: light_base + name: Light Base platform: partition default_transition_length: ${default_transition_length} internal: true restore_mode: ${LIGHT_SIDES_RESTORE_MODE} effects: - - addressable_rainbow: - name: "Rainbow" - - addressable_rainbow: - name: "Rainbow - Fast" - speed: 50 - pulse: name: "Pulse" transition_length: 1s @@ -105,9 +100,31 @@ light: from: 0 to: 27 + # Those lights are available based on the model selections + - &light_partition_with_effects + <<: *light_partition_with_effects_common + id: light_eu + name: Light EU + effects: + - addressable_rainbow: + name: "Rainbow" + width: 28 + - addressable_rainbow: + name: "Rainbow - Fast" + width: 28 + speed: 50 + - id: light_us name: Light US - <<: *light_partition_with_effects + <<: *light_partition_with_effects_common + effects: + - addressable_rainbow: + name: "Rainbow" + width: 32 + - addressable_rainbow: + name: "Rainbow - Fast" + width: 32 + speed: 50 segments: - id: light_full from: 0