mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
72 lines
2 KiB
YAML
72 lines
2 KiB
YAML
|
light:
|
||
|
- platform: fastled_clockless
|
||
|
id: addr1
|
||
|
chipset: WS2811
|
||
|
pin: 13
|
||
|
num_leds: 100
|
||
|
rgb_order: BRG
|
||
|
max_refresh_rate: 20ms
|
||
|
color_correct: [75%, 100%, 50%]
|
||
|
name: FastLED WS2811 Light
|
||
|
effects:
|
||
|
- addressable_color_wipe:
|
||
|
- addressable_color_wipe:
|
||
|
name: Color Wipe Effect With Custom Values
|
||
|
colors:
|
||
|
- red: 100%
|
||
|
green: 100%
|
||
|
blue: 100%
|
||
|
num_leds: 1
|
||
|
- red: 0%
|
||
|
green: 0%
|
||
|
blue: 0%
|
||
|
num_leds: 1
|
||
|
add_led_interval: 100ms
|
||
|
reverse: false
|
||
|
- addressable_scan:
|
||
|
- addressable_scan:
|
||
|
name: Scan Effect With Custom Values
|
||
|
move_interval: 100ms
|
||
|
- addressable_twinkle:
|
||
|
- addressable_twinkle:
|
||
|
name: Twinkle Effect With Custom Values
|
||
|
twinkle_probability: 5%
|
||
|
progress_interval: 4ms
|
||
|
- addressable_random_twinkle:
|
||
|
- addressable_random_twinkle:
|
||
|
name: Random Twinkle Effect With Custom Values
|
||
|
twinkle_probability: 5%
|
||
|
progress_interval: 32ms
|
||
|
- addressable_fireworks:
|
||
|
- addressable_fireworks:
|
||
|
name: Fireworks Effect With Custom Values
|
||
|
update_interval: 32ms
|
||
|
spark_probability: 10%
|
||
|
use_random_color: false
|
||
|
fade_out_rate: 120
|
||
|
- addressable_flicker:
|
||
|
- addressable_flicker:
|
||
|
name: Flicker Effect With Custom Values
|
||
|
update_interval: 16ms
|
||
|
intensity: 5%
|
||
|
- addressable_lambda:
|
||
|
name: Test For Custom Lambda Effect
|
||
|
lambda: |-
|
||
|
if (initial_run) {
|
||
|
it[0] = current_color;
|
||
|
}
|
||
|
- automation:
|
||
|
name: Custom Effect
|
||
|
sequence:
|
||
|
- light.addressable_set:
|
||
|
id: addr1
|
||
|
red: 100%
|
||
|
green: 100%
|
||
|
blue: 0%
|
||
|
- delay: 100ms
|
||
|
- light.addressable_set:
|
||
|
id: addr1
|
||
|
red: 0%
|
||
|
green: 100%
|
||
|
blue: 0%
|