Platform: fastled_clockless Reboot esp32

good afternoon… I’m having difficulties in esphome with an esp32 with the platform: fastled_clockless.

I have an esp32 with platform: bme280 and platform: gpio that works fine, but when I add a led strip with platform: fastled_clockless, the esp32 starts to restart. i have other led strips added to other esp2866 boards and it works fine without any resistor… the error is as follows:


WARNING keychain.local: Unexpected error while reading incoming messages: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 535, in run_forever
    await self._run_once()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 510, in _run_once
    pkt = await self._frame_helper.read_packet()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 243, in read_packet
    return await self._read_packet_plaintext()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 219, in _read_packet_plaintext
    preamble = await self._reader.readexactly(1)
  File "/usr/lib/python3.9/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.9/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 856, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
INFO Disconnected from ESPHome API for keychain.local
WARNING Disconnected from API
ERROR Task exception was never retrieved
future: <Task finished name='Task-21' coro=<APIConnection._start_ping.<locals>.func() done, defined at /usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py :268> exception=ConnectionResetError(104, 'Connection reset by peer')>
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/tasks.py", line 468, in wait_for
    await waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 273, in func
    await self.ping()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 571, in ping
    await self.send_message_await_response(PingRequest(), PingResponse)
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 500, in send_message_await_response
    res = await self.send_message_await_response_complex(
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 481, in send_message_await_response_complex
    await asyncio.wait_for(fut, timeout)
  File "/usr/lib/python3.9/asyncio/tasks.py", line 471, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 535, in run_forever
    await self._run_once()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 510, in _run_once
    pkt = await self._frame_helper.read_packet()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 243, in read_packet
    return await self._read_packet_plaintext()
  File "/usr/local/lib/python3.9/dist-packages/aioesphomeapi/connection.py", line 219, in _read_packet_plaintext
    preamble = await self._reader.readexactly(1)
  File "/usr/lib/python3.9/asyncio/streams.py", line 723, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.9/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 856, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer

post your config file

What pin are you using for the fastled. Check the guide for which pins affect boot.

Here is the config file

esphome:
  name: chaveiro
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "45b22a4c2ef658bfa2f651779364174d"

wifi:
  ssid: "Wifi2.4GHz"
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Chaveiro Fallback Hotspot"
    password: "HXmkXDsWfBTZ"

captive_portal:


  
#Sensor BME280
i2c:
  sda: 21
  scl: 22
  scan: true
  
sensor:
  - platform: bme280
    temperature:
      name: "temperature_"
      oversampling: 16x
      filters:
        - offset: 0.0
    humidity:
      name: "humidade_"
      accuracy_decimals: 0
      filters:
        - offset: -0.5
    address: 0x76
    update_interval: 300s

#Botao escritorio    
binary_sensor:
  - platform: gpio
    pin:
      number: 15
      mode: INPUT_PULLUP
      inverted: true
    name: "Botão"

#Fita led
light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: 23
    num_leds: 22
    rgb_order: GRB
    name: "Fita led"
    id: fita_led

It was a power supply problem.