Skip to content

Commit efd44fa

Browse files
authored
Merge pull request #115 from MorghusDragon/correctly-looping-rainbow-effect
Fix rainbow effect loop by setting correct width per model.
2 parents 754ad9c + 8422168 commit efd44fa

File tree

1 file changed

+61
-12
lines changed

1 file changed

+61
-12
lines changed

ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ light:
5555
variant: WS2811
5656

5757
# Those lights are available based on the model selections
58-
- &light_partition_with_effects
58+
- &light_partition_with_effects_eu
5959
id: light_eu
6060
name: Light EU
6161
platform: partition
@@ -65,8 +65,10 @@ light:
6565
effects:
6666
- addressable_rainbow:
6767
name: "Rainbow"
68+
width: 28
6869
- addressable_rainbow:
6970
name: "Rainbow - Fast"
71+
width: 28
7072
speed: 50
7173
- pulse:
7274
name: "Pulse"
@@ -105,35 +107,82 @@ light:
105107
from: 0
106108
to: 27
107109

108-
- id: light_us
110+
- &light_partition_with_effects_us
111+
id: light_us
109112
name: Light US
110-
<<: *light_partition_with_effects
113+
platform: partition
114+
default_transition_length: ${default_transition_length}
115+
internal: true
116+
restore_mode: ${LIGHT_SIDES_RESTORE_MODE}
117+
effects:
118+
- addressable_rainbow:
119+
name: "Rainbow"
120+
width: 32
121+
- addressable_rainbow:
122+
name: "Rainbow - Fast"
123+
width: 32
124+
speed: 50
125+
- pulse:
126+
name: "Pulse"
127+
transition_length: 1s
128+
update_interval: 1s
129+
- pulse:
130+
name: "Pulse - Slow"
131+
transition_length: 2s
132+
update_interval: 2s
133+
- addressable_scan:
134+
name: "Scan"
135+
move_interval: 100ms
136+
scan_width: 3
137+
- addressable_twinkle:
138+
name: "Twinkle"
139+
twinkle_probability: 5%
140+
progress_interval: 4ms
141+
- addressable_random_twinkle:
142+
name: "Random Twinkle"
143+
twinkle_probability: 20%
144+
progress_interval: 32ms
145+
- addressable_fireworks:
146+
name: "Fireworks"
147+
update_interval: 32ms
148+
spark_probability: 10%
149+
use_random_color: false
150+
fade_out_rate: 120
151+
- addressable_flicker:
152+
name: "Flicker"
153+
update_interval: 16ms
154+
intensity: 5%
155+
- random:
156+
name: "Random"
111157
segments:
112158
- id: light_full
113159
from: 0
114160
to: 31
115161

116-
- &light_partition_with_effects_disabled
162+
- &light_partition_no_effects_disabled
117163
id: light_eu_bottom
118164
name: Light - Bottom EU
165+
platform: partition
119166
disabled_by_default: true
120-
<<: *light_partition_with_effects
167+
default_transition_length: ${default_transition_length}
168+
restore_mode: ${LIGHT_SIDES_RESTORE_MODE}
169+
internal: true
121170
segments:
122171
- id: light_full
123172
from: 6
124173
to: 12
125174
reversed: true
126175
- id: light_eu_left
127176
name: Light - Left EU
128-
<<: *light_partition_with_effects_disabled
177+
<<: *light_partition_no_effects_disabled
129178
segments:
130179
- id: light_full
131180
from: 13
132181
to: 19
133182
reversed: true
134183
- id: light_eu_right
135184
name: Light - Right EU
136-
<<: *light_partition_with_effects_disabled
185+
<<: *light_partition_no_effects_disabled
137186
segments:
138187
- id: light_full
139188
from: 27
@@ -145,31 +194,31 @@ light:
145194
reversed: false
146195
- id: light_eu_top
147196
name: Light - Top EU
148-
<<: *light_partition_with_effects_disabled
197+
<<: *light_partition_no_effects_disabled
149198
segments:
150199
- id: light_full
151200
from: 20
152201
to: 26
153202
reversed: false
154203
- id: light_us_bottom
155204
name: Light - Bottom US
156-
<<: *light_partition_with_effects_disabled
205+
<<: *light_partition_no_effects_disabled
157206
segments:
158207
- id: light_full
159208
from: 9
160209
to: 14
161210
reversed: true
162211
- id: light_us_left
163212
name: Light - Left US
164-
<<: *light_partition_with_effects_disabled
213+
<<: *light_partition_no_effects_disabled
165214
segments:
166215
- id: light_full
167216
from: 15
168217
to: 24
169218
reversed: true
170219
- id: light_us_right
171220
name: Light - Right US
172-
<<: *light_partition_with_effects_disabled
221+
<<: *light_partition_no_effects_disabled
173222
segments:
174223
- id: light_full
175224
from: 31
@@ -181,7 +230,7 @@ light:
181230
reversed: false
182231
- id: light_us_top
183232
name: Light - Top US
184-
<<: *light_partition_with_effects_disabled
233+
<<: *light_partition_no_effects_disabled
185234
segments:
186235
- id: light_full
187236
from: 25

0 commit comments

Comments
 (0)