1 WS2812 在HA里开灯默认是NONE的,如何设置开灯默认是effect效果? 我查了esphome里面的代码好像是没有例子说明。。高手问回复一下怎么改代码?2 同样在Node Red 里面我只是懂开关灯。 怎么设置效果? JSON 代码怎么设置效果?
light:
- platform: fastled_clockless
chipset: WS2812B
pin: D8
num_leds: 33
rgb_order: GRB
name: "126 FastLED WS2811 Light"
effects:
# Use default parameters:
- random:
# Customize parameters
- random:
name: "My Slow Random Effect"
transition_length: 30s
update_interval: 30s
- random:
name: "My Fast Random Effect"
transition_length: 4s
update_interval: 5s
- addressable_rainbow:
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 8
width: 50
- addressable_scan:
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 1000ms
scan_width: 2
- addressable_twinkle:
- addressable_twinkle:
name: Twinkle Effect With Custom Values
twinkle_probability: 5%
progress_interval: 4ms
- addressable_fireworks:
- addressable_fireworks:
name: Fireworks Effect With Custom Values
update_interval: 32ms
spark_probability: 10%
use_random_color: false
fade_out_rate: 120
|