Esphome - fastled clockless fails now with latest esphome

According to the manual my yaml should be fine:

But since latest esphome I get an error:

My YAML:

esphome:

  name: ledstrip

esp8266:

  framework:

    version: 2.7.4

  board: d1_mini

## https://esphome.io/components/light/fastled.html

substitutions:

  esp_name: ledstrip

wifi:

  ssid: "ssid"

  password: !secret ssid_wifi_key

  domain: !secret domain

  # Enable fallback hotspot (captive portal) in case wifi connection fails

  ap:

    ssid: "${esp_name} Fallback Hotspot"

    password: !secret Fallback_Hotspot

captive_portal:

# Enable logging

logger:

# Enable Home Assistant API

api:

ota:

light:

  - platform: fastled_clockless

    chipset: WS2812B

    pin: D3

    num_leds: 240

    rgb_order: GRB

    name: "LEDstrip"

    effects:

      - addressable_rainbow:

      - addressable_rainbow:

          name: Rainbow Effect With Custom Values

          speed: 10

          width: 50

      - addressable_color_wipe:

      - addressable_color_wipe:

          name: Color Wipe Effect With Custom Values

          colors:

            - red: 100%

              green: 100%

              blue: 100%

              num_leds: 1

            - red: 0%

              green: 0%

              blue: 0%

              num_leds: 1

          add_led_interval: 100ms

          reverse: False

      - 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

         

text_sensor:

  - platform: version

    name: "${esp_name} - ESPHome Version"

Whats wrong? What do I need to change here now?

1 Like

Oh before recommending to remove the verison. Then I get:

INFO Reading configuration /config/esphome/ledstrip.yaml...
Failed config

light.fastled_clockless: [source /config/esphome/ledstrip.yaml:34]
  
  This feature requires framework version 2.7.4 or lower. Please see note on documentation for FastLED.
  platform: fastled_clockless
  chipset: WS2812B
  pin: D3
  num_leds: 240
  rgb_order: GRB
  name: LEDstrip
  effects: 
    - addressable_rainbow: {}
    - addressable_rainbow: 
        name: Rainbow Effect With Custom Values
        speed: 10
        width: 50
    - addressable_color_wipe: {}
    - addressable_color_wipe: 
        name: Color Wipe Effect With Custom Values
        colors: 
          - red: 100%
            green: 100%
            blue: 100%
            num_leds: 1
          - red: 0%
            green: 0%
            blue: 0%
            num_leds: 1
        add_led_interval: 100ms
        reverse: False
    - 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

Changed to this and solved:

light:

  - platform: neopixelbus

    variant: WS2812

    pin: D3

    num_leds: 240

    type: GRB
4 Likes

This is not actually a “Solution” . It’s more a workaround. You are using neopixelbus instead of fastled. So there is an issue with fastled clockles integration at some point.

I have the same issue with sk6812.