Extract base light effect configuration so it can be customized per model.

This commit is contained in:
Morghus
2025-07-29 20:51:32 +12:00
parent ffdb3a22b5
commit 1190802ccd

View File

@@ -54,20 +54,15 @@ light:
type: GRB type: GRB
variant: WS2811 variant: WS2811
# Those lights are available based on the model selections # Those lights contain common effects for both models
- &light_partition_with_effects - &light_partition_with_effects_common
id: light_eu id: light_base
name: Light EU name: Light Base
platform: partition platform: partition
default_transition_length: ${default_transition_length} default_transition_length: ${default_transition_length}
internal: true internal: true
restore_mode: ${LIGHT_SIDES_RESTORE_MODE} restore_mode: ${LIGHT_SIDES_RESTORE_MODE}
effects: effects:
- addressable_rainbow:
name: "Rainbow"
- addressable_rainbow:
name: "Rainbow - Fast"
speed: 50
- pulse: - pulse:
name: "Pulse" name: "Pulse"
transition_length: 1s transition_length: 1s
@@ -105,9 +100,31 @@ light:
from: 0 from: 0
to: 27 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 - id: light_us
name: 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: segments:
- id: light_full - id: light_full
from: 0 from: 0