Adressable LEDs flickering on low brightness

Hi
I think I’m going insane. I want to have a static light with my WS2801 where only the last section of the strip is on. Since I use it as a Night light, I want to use it in the lowest possible settings where a warm white light is still possible. That seemed to worked with a Lambda effect, but it is constantly flickering. I even set the code up so that it only set the LEDs when initializing, but it’s still flickering. I checked with a logic analyser and the values are in fact toggeling between values, sending a 0x04 and after the time defined in “update_interval” it’s 0x05, which is a very noticable difference. Has anyone experienced that as well?

Here’s my code:

light:
  - platform: fastled_spi
    chipset: WS2801
    data_pin: GPIO23
    clock_pin: GPIO18
    num_leds: 78
    rgb_order: RGB
    data_rate: 1MHz
    name: "FastLED SPI Light"
    id: LED_Strip
    effects:
      - addressable_lambda:
          name: "Night Light"
          update_interval: 100ms
          lambda: |-
            if (initial_run) {
              for (int i = it.size() - 1; i > 0; i--) {
                if((i>=56)){
                  it[i] = Color(60, 60, 40);
                }
                else{
                  it[i] = Color(0, 0, 0);
                }
              }
            }

I also find it mysterious that the color value is not the one sent by the ESP, is there a way where I could set the value sent by the SPI bus myself, or is it always abstracted?

Thanks in advance for the help!

Doesn’t address your root issue, but I’d highly recommend using WLED over ESPHome for lighting. While I use LEDs in a number of my ESPHome projects where the lighting is a minor part of things, at best it still just works ‘okay’.

Thanks for the reply. I use WLED for other projects and it works quite nice, but I will be using some sensors in the future, that work at the same time, so it would be nice to have a solution with ESPHome. But it might be a solution for the mean time.