Esp8266 Restore from Flash

I am having a problem with a relatively basic ESPHome program for my garage door.
I have a RGB LED to indicate if the door is open/closed based on a reed sensor.
My problem is that after a power interruption, the LED is totally off until I cycle the door to open/closed.
I am trying to use the Restore from flash command, but still not working.
Very grateful for any help.

  name: testy
  platform: ESP8266
  board: nodemcuv2
  esp8266_restore_from_flash : True

  - platform: rgb
    name: "RGB LED"
    red: output_red
    green: output_green
    blue: output_blue
  - platform: esp8266_pwm
    id: output_red
    pin: D5
  - platform: esp8266_pwm
    id: output_green
    pin: D7
    restore_mode: RESTORE_DEFAULT_ON
  - platform: esp8266_pwm
    id: output_blue
    pin: D6
  - platform: gpio
    pin: D1
    inverted: true
    id: relay
    name: "Garage Remote"
    icon: "mdi:gate"
   # - output.turn_off: output_blue
   # - output.turn_off: output_green
    - output.turn_on: output_red
    - delay: 500ms
    - output.turn_off: output_red
    - switch.turn_off: relay

  - platform: gpio
    pin: D2
    name: "Garage Sensor"
    device_class: garage_door
        - output.turn_off: output_red
        - output.turn_off: output_green
        - output.turn_on: output_blue
        - output.turn_off: output_blue
        - output.turn_off: output_red
        - output.turn_on: output_green 

Try an on_boot automation to turn the correct led on.

Thank you.
Do you know how the on_boot command will know which LED is correct after the power interruption?

them inside the on_boot you just need to set the state of that binary_sensor

By looking at the pin that is telling you the state of the door. But you really should set up a garage door as a cover.