Skip to content

Commit 0b7f83e

Browse files
committed
Add anchor per model
1 parent 1190802 commit 0b7f83e

File tree

1 file changed

+77
-30
lines changed

1 file changed

+77
-30
lines changed

ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml

Lines changed: 77 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,69 +54,74 @@ light:
5454
type: GRB
5555
variant: WS2811
5656

57-
# Those lights contain common effects for both models
58-
- &light_partition_with_effects_common
59-
id: light_base
60-
name: Light Base
57+
# Those lights are available based on the model selections
58+
- &light_partition_with_effects_eu
59+
id: light_eu
60+
name: Light EU
6161
platform: partition
6262
default_transition_length: ${default_transition_length}
6363
internal: true
6464
restore_mode: ${LIGHT_SIDES_RESTORE_MODE}
6565
effects:
66+
- addressable_rainbow:
67+
name: "Rainbow"
68+
width: 28
69+
- addressable_rainbow:
70+
name: "Rainbow - Fast"
71+
width: 28
72+
speed: 50
6673
- pulse:
6774
name: "Pulse"
6875
transition_length: 1s
6976
update_interval: 1s
77+
width: 28
7078
- pulse:
7179
name: "Pulse - Slow"
7280
transition_length: 2s
7381
update_interval: 2s
82+
width: 28
7483
- addressable_scan:
7584
name: "Scan"
7685
move_interval: 100ms
7786
scan_width: 3
87+
width: 28
7888
- addressable_twinkle:
7989
name: "Twinkle"
8090
twinkle_probability: 5%
8191
progress_interval: 4ms
92+
width: 28
8293
- addressable_random_twinkle:
8394
name: "Random Twinkle"
8495
twinkle_probability: 20%
8596
progress_interval: 32ms
97+
width: 28
8698
- addressable_fireworks:
8799
name: "Fireworks"
88100
update_interval: 32ms
89101
spark_probability: 10%
90102
use_random_color: false
91103
fade_out_rate: 120
104+
width: 28
92105
- addressable_flicker:
93106
name: "Flicker"
94107
update_interval: 16ms
95108
intensity: 5%
109+
width: 28
96110
- random:
97111
name: "Random"
112+
width: 28
98113
segments:
99114
- id: light_full
100115
from: 0
101116
to: 27
102117

103-
# Those lights are available based on the model selections
104-
- &light_partition_with_effects
105-
<<: *light_partition_with_effects_common
106-
id: light_eu
107-
name: Light EU
108-
effects:
109-
- addressable_rainbow:
110-
name: "Rainbow"
111-
width: 28
112-
- addressable_rainbow:
113-
name: "Rainbow - Fast"
114-
width: 28
115-
speed: 50
116-
117-
- id: light_us
118+
- &light_partition_with_effects_us
119+
id: light_us
118120
name: Light US
119-
<<: *light_partition_with_effects_common
121+
platform: partition
122+
default_transition_length: ${default_transition_length}
123+
internal: true
124+
restore_mode: ${LIGHT_SIDES_RESTORE_MODE}
120125
effects:
121126
- addressable_rainbow:
122127
name: "Rainbow"
@@ -125,32 +130,72 @@ light:
125130
name: "Rainbow - Fast"
126131
width: 32
127132
speed: 50
133+
- pulse:
134+
name: "Pulse"
135+
transition_length: 1s
136+
update_interval: 1s
137+
width: 32
138+
- pulse:
139+
name: "Pulse - Slow"
140+
transition_length: 2s
141+
update_interval: 2s
142+
width: 32
143+
- addressable_scan:
144+
name: "Scan"
145+
move_interval: 100ms
146+
scan_width: 3
147+
width: 32
148+
- addressable_twinkle:
149+
name: "Twinkle"
150+
twinkle_probability: 5%
151+
progress_interval: 4ms
152+
width: 32
153+
- addressable_random_twinkle:
154+
name: "Random Twinkle"
155+
twinkle_probability: 20%
156+
progress_interval: 32ms
157+
width: 32
158+
- addressable_fireworks:
159+
name: "Fireworks"
160+
update_interval: 32ms
161+
spark_probability: 10%
162+
use_random_color: false
163+
fade_out_rate: 120
164+
width: 32
165+
- addressable_flicker:
166+
name: "Flicker"
167+
update_interval: 16ms
168+
intensity: 5%
169+
width: 32
170+
- random:
171+
name: "Random"
172+
width: 32
128173
segments:
129174
- id: light_full
130175
from: 0
131176
to: 31
132177

133-
- &light_partition_with_effects_disabled
178+
- &light_partition_with_effects_eu_disabled
134179
id: light_eu_bottom
135180
name: Light - Bottom EU
136181
disabled_by_default: true
137-
<<: *light_partition_with_effects
182+
<<: *light_partition_with_effects_eu
138183
segments:
139184
- id: light_full
140185
from: 6
141186
to: 12
142187
reversed: true
143188
- id: light_eu_left
144189
name: Light - Left EU
145-
<<: *light_partition_with_effects_disabled
190+
<<: *light_partition_with_effects_eu_disabled
146191
segments:
147192
- id: light_full
148193
from: 13
149194
to: 19
150195
reversed: true
151196
- id: light_eu_right
152197
name: Light - Right EU
153-
<<: *light_partition_with_effects_disabled
198+
<<: *light_partition_with_effects_eu_disabled
154199
segments:
155200
- id: light_full
156201
from: 27
@@ -162,31 +207,33 @@ light:
162207
reversed: false
163208
- id: light_eu_top
164209
name: Light - Top EU
165-
<<: *light_partition_with_effects_disabled
210+
<<: *light_partition_with_effects_eu_disabled
166211
segments:
167212
- id: light_full
168213
from: 20
169214
to: 26
170215
reversed: false
171216
- id: light_us_bottom
172217
name: Light - Bottom US
173-
<<: *light_partition_with_effects_disabled
218+
<<: *light_partition_with_effects_eu_disabled
174219
segments:
175220
- id: light_full
176221
from: 9
177222
to: 14
178223
reversed: true
179-
- id: light_us_left
224+
- &light_partition_with_effects_us_disabled
225+
id: light_us_left
180226
name: Light - Left US
181-
<<: *light_partition_with_effects_disabled
227+
disabled_by_default: true
228+
<<: *light_partition_with_effects_us
182229
segments:
183230
- id: light_full
184231
from: 15
185232
to: 24
186233
reversed: true
187234
- id: light_us_right
188235
name: Light - Right US
189-
<<: *light_partition_with_effects_disabled
236+
<<: *light_partition_with_effects_us_disabled
190237
segments:
191238
- id: light_full
192239
from: 31
@@ -198,7 +245,7 @@ light:
198245
reversed: false
199246
- id: light_us_top
200247
name: Light - Top US
201-
<<: *light_partition_with_effects_disabled
248+
<<: *light_partition_with_effects_us_disabled
202249
segments:
203250
- id: light_full
204251
from: 25

0 commit comments

Comments
 (0)