Having trouble with 'on_boot' any help?

hi all,

i have a rgb light pannel using leds, i have a magic light rgb wifi controller reflashed to use esphome.

what I want to do is have the light cycle through red,green and blue, then settle on a custom colour every time the 12v power supply is plugged in. this would give me a visual indicator that the leds are still opperational, and that the controller is powering up…

the ideal option would be that the panel lights up red on power up, blue on searching for wifi, green on connecting to wifi and settles on a custom set colour after a few seconds, but in my mind this is a whole lot harder.

any help would be greatly accepted… this is what i have so far…

Copy to clipboard

esphome:
  name: emergency_light
  platform: ESP8266
  board: esp01_1m
  on_boot:
    priority: 550.0
    switch.turn_on: emergency_light
    colors:
    - state: true
      brightness: 100%
      red: 100%
      green: 0%
      blue: 0%

yet when i try to validate i get this message

Copy to clipboard

INFO Reading configuration...
Failed config

esphome: [source /config/esphome/emergency_light.yaml:2]
  name: emergency_light
  platform: ESP8266
  board: esp01_1m
  on_boot:  [source /config/esphome/emergency_light.yaml:6]
    
    Unable to find action with the name 'priority'.
    priority: 550.0 [source /config/esphome/emergency_light.yaml:6]
    switch.turn_on: emergency_light
    colors: 
      - state: True
        brightness: 100%
        red: 100%
        green: 0%
        blue: 0%

ive checked my spelling and as far as i can see its all correct… obviously i’m missing something though and I was hoping that a fresh set of eyes may be able to spot it

thank you for all and any help

I think you’re missing a ‘then:’ in there somewhere.

1 Like

solved in a cross-post:

my appologies, i had issues with posting this question and thought I was starting over each time, guess I was reposting…

the full post is here