Use of on_boot and an effect

I have a light which i wanted to ensure that when it boots it runs an effect. I managed to get it to turn on ok but doesnt seem to want to switch to the effect. I tried this but failed to run the effect:

esphome:
  name: ledstrip03
  platform: ESP8266
  board: nodemcuv2
  on_boot:
    priority: 30
    then:
      - light.turn_on:
          id: ledstrip03
          brightness: 100%
          red: 100%
          green: 50%
          blue: 1%
          effect: "fireplace"
      
wifi:
  ssid: 'MYSSID'
  password: 'MYPASS'

# Example configuration entry
mqtt:
  broker: 192.168.1.101
  username: myuser
  password: mypass

# Enable logging
logger:

# Enable Home Assistant API
#api:

ota:

light:
  - platform: fastled_clockless
    chipset: WS2811
    pin: D5
    num_leds: 50
    rgb_order: RGB
    name: "ledstrip03"
    id: "ledstrip03"
    effects:
      - addressable_flicker:
          name: fireplace
          update_interval: 50ms
          intensity: 5%

Any ideas ?

Try removing the brightness/red/green/blue parameters

1 Like

I tried that and as it wasn’t switched on it wouldnt light up.

This works though

then:
  - light.turn_on:
      id: ledstrip03
      brightness: 100%
      red: 100%
      green: 50%
      blue: 1%
  - delay: 1s
  - light.turn_on:
      id: ledstrip03
      effect: "fireplace"
1 Like