65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
---
|
|
light:
|
|
- platform: esp32_rmt_led_strip
|
|
#rmt_channel: 0
|
|
is_rgbw: ${is_rgbw}
|
|
id: led_lights
|
|
restore_mode: RESTORE_DEFAULT_ON
|
|
name: ${device_name}_leds
|
|
chipset: ${chipset}
|
|
rgb_order: GRB
|
|
num_leds: ${num_leds}
|
|
pin: ${pin_led1}
|
|
effects:
|
|
- flicker:
|
|
name: "Flicker"
|
|
alpha: 95%
|
|
intensity: 1.5%
|
|
- addressable_lambda:
|
|
name: "Wipe In-green"
|
|
update_interval: 25714ms
|
|
lambda: |-
|
|
static int x = 0;
|
|
if (initial_run) {
|
|
x = 0;
|
|
it[x] = Color(0,255,0);
|
|
}
|
|
if (x < it.size()) {
|
|
it.range(1, x) = Color(0,255,0);
|
|
x += 1;
|
|
}
|
|
- addressable_lambda:
|
|
name: star-orange
|
|
update_interval: 12ms
|
|
lambda: |-
|
|
static int x = 0;
|
|
if (initial_run) {
|
|
x = 0;
|
|
it.all() = Color::BLACK;
|
|
}
|
|
if (x < it.size()) {
|
|
it[x] = COLOR_CSS_ORANGE;
|
|
x += 5;
|
|
}
|
|
- addressable_lambda:
|
|
name: star-red
|
|
update_interval: 12ms
|
|
lambda: |-
|
|
static int x = 0;
|
|
if (initial_run) {
|
|
x = 0;
|
|
it.all() = Color::BLACK;
|
|
}
|
|
if (x < it.size()) {
|
|
it[x] = COLOR_CSS_RED;
|
|
x += 5;
|
|
}
|
|
- random:
|
|
name: "Random"
|
|
transition_length: 4s
|
|
update_interval: 5s
|
|
- addressable_rainbow:
|
|
name: Rainbow Effect
|
|
speed: 100
|
|
width: 50
|
|
- addressable_flicker: |