I currently have an automation script to turn on 99 ws2811 leds at sunset, randomly select an effect and palette every 10 seconds then turn off at a set time. I will be adding more leds and would like to set up segments, the script I am using was created using google and guesswork. So if I wanted to split the 99 leds into a 56 and 43 which have different random effects how to I do this.
my current script is
alias: shed_rgb_lights
description: ''
trigger:
- platform: sun
event: sunset
condition: []
action:
- type: turn_on
device_id: 836f5122ea9e3d8db25c264f34453538
entity_id: light.wled
domain: light
brightness_pct: 55
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- repeat:
until:
- condition: time
after: '23:00'
sequence:
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: wled.effect
target:
entity_id: light.wled
data:
effect: '{{ state_attr(''light.wled'', ''effect_list'') | random }}'
palette: '{{ range(0,53) | random }}'
- type: turn_off
device_id: 836f5122ea9e3d8db25c264f34453538
entity_id: light.wled
domain: light
mode: single