Error when trying to do an OTA firmware update

So I have a switchthat I built to control the light and ceiling fan in my dining room. It runs on a Xiao ESP32-C3 MCU and has 4 buttons (2 on/off paddles). I initially set up the 4 buttons in the wrong order and the only thing I am trying to do is reorder the configuration of the buttons as to which one does what. The switch is mounted in a wall and I am pushing the firmware OTA. When I try to install the firmware with the new changes, I get this error:

ERROR Error Update end: Error: Finishing update failed. See the MQTT/USB logs for more information.

FIrst, is this error telling me that I should hard wire it to USB to see the error log? I have another switch that is an 8 button version that uses the same MCU with the only difference being the additional 4 buttons. For that one I can install the same firmware on it OTA with no trouble. I tried to clean the build files for the device and that didn’t help. I am trying to avoid having to pull the switch out of the wall to plug it in and push the firmware over USB. How can I see the logs to know what the issue is?

Any help is appreciated.

Can you move it? I have some devices that get the same error when there are wifi issues.

Your yaml and your complete log from the attempted update would help.

If there were WiFi issues, wouldn’t you think that it would fail to even upload OTA? When I run the install, it compiles, connects and uploads fine, or at least it appears to. It is after that that I see the error. As for moving it, if you read the original post, I am trying to avoid having to remove the light switch from the wall.

As I mentioned in the original post, I have an 8 button version of this same switch that I am able to install basically the same code, with the only differences being the name and the static IP of the device, and that uploads and works fine.

This is the complete yaml for the switch.

substitutions:
  name: dining-room-fan-light-switch
  friendly_name: Dining room fan-light switch

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  min_version: 2024.6.0
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: dev

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "61CokBJmkAPmaCs7t3J5etTqjJk14ldOVv3nCZJPjdI="

ota:
  - platform: esphome
    password: "efd7a5ab0ccffe9aecea73693045f9f7"

http_request:
  useragent: esphome/dining-room-fan-light-switch
  verify_ssl: false
  timeout: 10s

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  manual_ip:
    static_ip: 192.168.1.58
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "dining-room-fan-light-switch"
    password: "crSMupbq6w5R"

captive_portal:

i2c:
  sda: GPIO6
  scl: GPIO7
  scan: False

pcf8574:
  - id: 'pcf8574_hub'
    address: 0x20
    pcf8575: False

matrix_keypad:
  id: mykeypad
  rows:
    - pin:
        pcf8574: pcf8574_hub
        number: 0
        mode: OUTPUT
        inverted: False
    - pin:
        pcf8574: pcf8574_hub
        number: 1
        mode: OUTPUT
        inverted: False        
    - pin:
        pcf8574: pcf8574_hub
        number: 2
        mode: OUTPUT
        inverted: False
    - pin:
        pcf8574: pcf8574_hub
        number: 3
        mode: OUTPUT
        inverted: False
  columns:
    - pin:
        pcf8574: pcf8574_hub
        number: 4
        mode: INPUT
        inverted: False
    - pin:
        pcf8574: pcf8574_hub
        number: 5
        mode: INPUT
        inverted: False
    - pin:
        pcf8574: pcf8574_hub
        number: 6
        mode: INPUT
        inverted: False
    - pin:
        pcf8574: pcf8574_hub
        number: 7
        mode: INPUT
        inverted: False
  keys: "123A456B789C*0#D"

binary_sensor:
  - platform: matrix_keypad
    id: key1
    key: 1
    name: light_on
    on_press:
      then:
        - if:
            condition:
              wifi.connected:
            then:
              - http_request.get: http://192.168.1.30/control?cmd=gpio,14,1 #switch/fan/turn_off
            else:
              - logger.log: 
                  format: "Error sending http_request: Wifi not connected"
                  level: WARN
  - platform: matrix_keypad
    id: key2
    key: 2
    name: light_off
    on_press:
      then:
        - if:
            condition:
              wifi.connected:
            then:
              - http_request.get: http://192.168.1.30/control?cmd=gpio,14,0 #switch/fan/turn_on
            else:
              - logger.log: 
                  format: "Error sending http_request: Wifi not connected"
                  level: WARN
  - platform: matrix_keypad
    id: key4
    key: 4
    name: fan_on
    on_press:
      then:
        - if:
            condition:
              wifi.connected:
            then:
              - http_request.get: http://192.168.1.30/control?cmd=gpio,27,1 #switch/light/turn_off
            else:
              - logger.log: 
                  format: "Error sending http_request: Wifi not connected"
                  level: WARN
  - platform: matrix_keypad
    id: key5
    key: 5
    name: fan_off
    on_press:
      then:
        - if:
            condition:
              wifi.connected:
            then:
              - http_request.get: http://192.168.1.30/control?cmd=gpio,27,0 #switch/light/turn_on
            else:
              - logger.log: 
                  format: "Error sending http_request: Wifi not connected"
                  level: WARN

And this is the install log.

INFO ESPHome 2024.8.3
INFO Reading configuration /config/esphome/dining-room-fan-light-switch.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing dining-room-fan-light-switch (board: esp32-c3-devkitm-1; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
Removing unused dependencies...
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.3
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.6
|-- Wire @ 2.0.0
|-- ArduinoJson @ 6.18.5
|-- WiFiClientSecure @ 2.0.0
|-- HTTPClient @ 2.0.0
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/binary_sensor/automation.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/binary_sensor/binary_sensor.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/binary_sensor/filter.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/esphome/ota/ota_esphome.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/http_request/http_request.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/http_request/http_request_arduino.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/http_request/http_request_idf.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/i2c/i2c.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/i2c/i2c_bus_arduino.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/i2c/i2c_bus_esp_idf.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/json/json_util.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/key_provider/key_provider.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger_esp32.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger_esp8266.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger_host.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger_libretiny.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/logger/logger_rp2040.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/matrix_keypad/matrix_keypad.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_host.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_libretiny.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/network/util.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend_arduino_libretiny.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/pcf8574/pcf8574.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/safe_mode/safe_mode.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/socket/lwip_sockets_impl.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/socket/socket.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/watchdog/watchdog.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component_libretiny.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/application.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/bytebuffer.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/color.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/component.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/component_iterator.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/controller.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/log.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/ring_buffer.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/time.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/string_ref.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/esphome/core/util.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/src/main.cpp.o
Building .pioenvs/dining-room-fan-light-switch/bootloader.bin
Creating esp32c3 image...
Successfully created esp32c3 image.
Generating partitions .pioenvs/dining-room-fan-light-switch/partitions.bin
Compiling .pioenvs/dining-room-fan-light-switch/libef6/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFi.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiClient.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/libef6/libAsyncTCP-esphome.a
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib64d/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib01c/FS/FS.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib01c/FS/vfs_api.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/libbc6/Update/HttpsOTAUpdate.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/lib64d/libWiFi.a
Compiling .pioenvs/dining-room-fan-light-switch/libbc6/Update/Updater.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/lib01c/libFS.a
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/libbc6/libUpdate.a
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib3f8/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib333/DNSServer/DNSServer.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/lib333/libDNSServer.a
Compiling .pioenvs/dining-room-fan-light-switch/lib915/ESPmDNS/ESPmDNS.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_core/ed25519/core_ed25519.c.o
Archiving .pioenvs/dining-room-fan-light-switch/lib3f8/libESPAsyncWebServer-esphome.a
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_core/ed25519/core_ristretto255.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_core/salsa/ref/core_salsa_ref.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/generichash_blake2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-avx2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ref.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-sse41.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/blake2b-compress-ssse3.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/blake2b-ref.c.o
Archiving .pioenvs/dining-room-fan-light-switch/lib915/libESPmDNS.a
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_hash/crypto_hash.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_hash/sha256/hash_sha256.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_hash/sha512/cp/hash_sha512_cp.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_hash/sha512/hash_sha512.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-core.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-encoding.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/argon2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/blake2b-long.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/pwhash_argon2i.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_pwhash/argon2/pwhash_argon2id.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/crypto_sign.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/ed25519/ref10/keypair.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/ed25519/ref10/obsolete.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/ed25519/ref10/open.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/ed25519/ref10/sign.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_sign/ed25519/sign_ed25519.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/crypto_stream.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/ref/salsa20_ref.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/stream_salsa20.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/xmm6/salsa20_xmm6.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/crypto_verify/sodium/verify.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/randombytes/internal/randombytes_internal_random.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/randombytes/randombytes.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/randombytes/sysrandom/randombytes_sysrandom.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/sodium/codecs.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/sodium/core.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/sodium/runtime.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libaa5/libsodium/sodium/utils.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/openssl/cipher-aesgcm.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/cipher-aesgcm.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/cipher-chachapoly.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/dh-curve25519.c.o
Archiving .pioenvs/dining-room-fan-light-switch/libaa5/libsodium.a
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/hash-blake2b.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/hash-blake2s.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/ref/hash-sha256.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/sodium/cipher-aesgcm.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/sodium/cipher-chachapoly.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/sodium/dh-curve25519.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/sodium/hash-blake2b.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/backend/sodium/hash-sha256.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/aes/rijndael-alg-fst.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/blake2/blake2b.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/blake2/blake2s.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/chacha/chacha.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/donna/curve25519-donna-c64.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/donna/curve25519-donna.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/donna/poly1305-donna.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/sha2/sha256.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/sha2/sha512.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/crypto/x25519/x25519.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/cipherstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/dhstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/errors.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/handshakestate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/hashstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/internal.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/names.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/patterns.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/rand_os.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/rand_sodium.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/randstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/signstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/symmetricstate.c.o
Compiling .pioenvs/dining-room-fan-light-switch/liba63/noise-c/protocol/util.c.o
Compiling .pioenvs/dining-room-fan-light-switch/lib4fc/Wire/Wire.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/liba63/libnoise-c.a
Compiling .pioenvs/dining-room-fan-light-switch/libb0f/WiFiClientSecure/WiFiClientSecure.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/libb0f/WiFiClientSecure/esp_crt_bundle.c.o
Compiling .pioenvs/dining-room-fan-light-switch/libb0f/WiFiClientSecure/ssl_client.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/lib2f0/HTTPClient/HTTPClient.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/lib4fc/libWire.a
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/FunctionalInterrupt.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/libb0f/libWiFiClientSecure.a
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/HWCDC.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/IPv6Address.cpp.o
Archiving .pioenvs/dining-room-fan-light-switch/lib2f0/libHTTPClient.a
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/USB.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/USBCDC.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/USBMSC.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/main.cpp.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/dining-room-fan-light-switch/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/dining-room-fan-light-switch/libFrameworkArduino.a
Linking .pioenvs/dining-room-fan-light-switch/firmware.elf
RAM:   [=         ]  11.6% (used 38028 bytes from 327680 bytes)
Flash: [======    ]  60.3% (used 1107122 bytes from 1835008 bytes)
Building .pioenvs/dining-room-fan-light-switch/firmware.bin
Creating esp32c3 image...
Successfully created esp32c3 image.
esp32_create_combined_bin([".pioenvs/dining-room-fan-light-switch/firmware.bin"], [".pioenvs/dining-room-fan-light-switch/firmware.elf"])
Wrote 0x121da0 bytes to file /data/build/dining-room-fan-light-switch/.pioenvs/dining-room-fan-light-switch/firmware.factory.bin, ready to flash to offset 0x0
esp32_copy_ota_bin([".pioenvs/dining-room-fan-light-switch/firmware.bin"], [".pioenvs/dining-room-fan-light-switch/firmware.elf"])
========================= [SUCCESS] Took 39.94 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.1.58
INFO Uploading /data/build/dining-room-fan-light-switch/.pioenvs/dining-room-fan-light-switch/firmware.bin (1121696 bytes)
Uploading: [============================================================] 100% Done...

INFO Upload took 10.83 seconds, waiting for result...
ERROR Error Update end: Error: Finishing update failed. See the MQTT/USB logs for more information.