How to create a partition switching effect?
by example
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
my code:
light:
- platform: neopixelbus
id: light1
name: "siren"
internal: False
pin: GPIO4
num_leds: 28
variant: WS2812
type: GRB
effects:
.....
- platform: partition
name: "segment1"
segments:
- id: light1
from: 0
to: 6
- platform: partition
name: "segment2"
segments:
- id: light1
from: 7
to: 13
- platform: partition
name: "segment3"
segments:
- id: light1
from: 14
to: 20
- platform: partition
name: "segment4"
segments:
- id: light1
from: 21
to: 27