ESPHome light state remember and brightness range

Hi, I want to ask how to make my ESP8266 remember its last state after rebooting, my ESP32 with the same code after reboot remembers the last state and the brightness of monochromatic is the same.

Also, I would like to ask how to make the light turn on and set on some brightness I would set for monochromatic light or set some brightness range. I got working restore_mode but I can’t let my lights run on 100% like it sets when turning on by rebooting :confused:

output:
  - platform: esp8266_pwm
    pin: D1
    frequency: 1000 Hz
    id: pwm_output
light:
  - platform: monochromatic
    output: pwm_output
    name: "Pracovna Light"
  - platform: fastled_clockless
    chipset: WS2812
    pin: GPIO12
    num_leds: 80
    rgb_order: RGB
    name: "FastLED WS2811 Light"

check the “esp8266_restore_from_flash” under the below link

just read it well and be aware of the limited number of write cycles

I tried that before, but it makes a really weird effect. when I change the brightness or color of my WS2812 everything flickers like crazy for a second, It is really weird.
And the state of WS2812 does not recover.

esphome:
name: pracovnasvetla
platform: ESP8266
board: nodemcuv2
esp8266_restore_from_flash: true
wifi:
ssid:
password: 
output:
- platform: esp8266_pwm
  pin: D1
  frequency: 1000 Hz
  id: pwm_output
light:
- platform: monochromatic
  output: pwm_output
  name: "Pracovna Light"
- platform: fastled_clockless
  chipset: WS2812
  pin: GPIO12
  num_leds: 80
  rgb_order: RGB
  name: "FastLED WS2811 Light"
  

it works perfectly with me, i am attaching my configuration it may help you, i am not actually using fastled i am using neopixel instead

esphome:
  name: desklamp
  platform: ESP8266
  board: d1_mini
  esp8266_restore_from_flash: true

wifi:
  manual_ip:
    static_ip: x.x.x.x
    gateway: x.x.x.x
    subnet: x.x.x.x
    dns1: x.x.x.x
  networks:
  - password: 
    ssid: 
  use_address: x.x.x.x

logger:
  baud_rate: 115200
  hardware_uart: UART0
  tx_buffer_size: 512

api:
  password: ''
  port: 6053

ota:
  safe_mode: true

light:
- platform: neopixelbus
  type: GRB
  pin: 3
  num_leds: 51
  name: Desk-Lamp
  gamma_correct: 1.0
  method: ESP8266_DMA
  variant: 800KBPS
  restore_mode: RESTORE_DEFAULT_ON

Oh, so I changed my code to yours

esphome:
  name: pracovnasvetla
  platform: ESP8266
  board: nodemcuv2
  esp8266_restore_from_flash: true
light:
- platform: neopixelbus
  type: RGB
  pin: 3
  num_leds: 80
  name: "FastLED WS2811 Light"
  gamma_correct: 1.0
  method: ESP8266_DMA
  variant: 800KBPS
  restore_mode: RESTORE_DEFAULT_ON

And it does not restore the WS2811. weird