Flashing segment WS2812B

This code works and will flash a string of leds. Now I’m wondering how to flash only one in the row.

#light:    # Flashing
  - platform: fastled_clockless 
    on_turn_on:
      then:
        - light.turn_on: 
            id: flashlite
            brightness: 50%
            effect: Flashing
    chipset : WS2812B
    rgb_order: GRB
    id: flashlite
    internal: False
    pin: GPIO3
    num_leds: 7
    name: "offstr Flash"      # Name   seven segments
    effects:
      - strobe:
          name: Flashing
          colors:
            - state: True
              red: 0%
              green: 100%
              blue: 0%
              duration: 500ms 
            - state: False
              duration: 500ms

I use the partition platform to just turn them on and off. How do I combine flashing code with partition code to flash one segment?

light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO3          #RX pin 
    num_leds: 27
    name: "off-str"
    internal: true
    id: offstr
   

  - platform: partition
    name: "offstr0"       # Name   Just Seg 0
    segments:
      - id: offstr
        from: 0
        to: 2  

The Light Partition Link does not help.

This does not work.

  - platform: partition
    name: "offstr8"     
    segments:
      - id: offstr
        from: 24
        to: 26     
    effects:
      - strobe:
          name: Flashing1
          colors:
            - state: True
              red: 0%
              green: 100%
              blue: 0%
              duration: 500ms #1000ms
            - state: False
              duration: 500ms

This code disables the other segments.

You only have 3 leds defined, 24, 25 & 26.

Define the other leds as partitions.

This is more of the code
They are all defined and the Turn on all partition makes a double partition.
weird.



light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO3          #RX pin 
    num_leds: 27
    name: "off-str"
    internal: true
    id: offstr
   
# Start Segments # Start Segments # Start Segments  
# Start Segments # Start Segments # Start Segments  

  - platform: partition
    name: "offstrAll"     # All
    segments:
      - id: offstr
        from: 0
        to: 26        


  - platform: partition
    name: "offstr0"    
    segments:
      - id: offstr
        from: 0
        to: 2       

  - platform: partition
    name: "offstr1"     
    segments:
      - id: offstr
        from: 3
        to: 5       

  - platform: partition
    name: "offstr2"     
    segments:
      - id: offstr
        from: 6
        to: 8       

  - platform: partition
    name: "offstr3"     
    segments:
      - id: offstr
        from: 9
        to: 11       

  - platform: partition
    name: "offstr4"     
    segments:
      - id: offstr
        from: 12
        to: 14       


  - platform: partition
    name: "offstr5"     
    segments:
      - id: offstr
        from: 15
        to: 17       


  - platform: partition
    name: "offstr6"     
    segments:
      - id: offstr
        from: 18
        to: 20      

  - platform: partition
    name: "offstr7"     
    segments:
      - id: offstr
        from: 21
        to: 23      

  - platform: partition
    name: "offstr8"     
    segments:
      - id: offstr
        from: 24
        to: 26     
    effects:
      - strobe:
          name: Flashing1
          colors:
            - state: True
              red: 0%
              green: 100%
              blue: 0%
              duration: 500ms #1000ms
            - state: False
              duration: 500ms