mirror of
https://github.com/esphome/esphome.git
synced 2025-10-26 20:53:50 +00:00
[light] Replace std::vector with FixedVector in strobe and color_wipe effects
This commit is contained in:
@@ -123,3 +123,43 @@ light:
|
||||
red: 100%
|
||||
green: 50%
|
||||
blue: 50%
|
||||
# Test StrobeLightEffect with multiple colors
|
||||
- platform: monochromatic
|
||||
id: test_strobe_multiple
|
||||
name: Strobe Multiple Colors
|
||||
output: test_ledc_1
|
||||
effects:
|
||||
- strobe:
|
||||
name: Strobe Multi
|
||||
colors:
|
||||
- state: true
|
||||
brightness: 100%
|
||||
duration: 500ms
|
||||
- state: false
|
||||
duration: 250ms
|
||||
- state: true
|
||||
brightness: 50%
|
||||
duration: 500ms
|
||||
# Test StrobeLightEffect with transition
|
||||
- platform: rgb
|
||||
id: test_strobe_transition
|
||||
name: Strobe With Transition
|
||||
red: test_ledc_1
|
||||
green: test_ledc_2
|
||||
blue: test_ledc_3
|
||||
effects:
|
||||
- strobe:
|
||||
name: Strobe Transition
|
||||
colors:
|
||||
- state: true
|
||||
red: 100%
|
||||
green: 0%
|
||||
blue: 0%
|
||||
duration: 1s
|
||||
transition_length: 500ms
|
||||
- state: true
|
||||
red: 0%
|
||||
green: 100%
|
||||
blue: 0%
|
||||
duration: 1s
|
||||
transition_length: 500ms
|
||||
|
||||
Reference in New Issue
Block a user