09-10-2025, 07:08 AM
Thank you. That code is now invalid and will not install.
INFO ESPHome 2025.8.3
INFO Reading configuration /config/esphome/k868-a16.yaml...
Failed config
esphome: [source /config/esphome/k868-a16.yaml:2]
name: a16
Please remove the `platform` key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP32
board: esp32dev
The entry at the top needs to be:
esphome:
name: a16
esp32:
board: esp32dev
However, I still have these errors on install. It has something to do with xtensa-esp32-elf-g++
INFO ESPHome 2025.8.3
INFO Reading configuration /config/esphome/k868-a16.yaml...
WARNING ? IMPORTANT: This device doesn't have a framework specified!
Currently, ESP32 defaults to the Arduino framework.
This will change to ESP-IDF in ESPHome 2026.1.0.
Note: Newer ESP32 variants (C6, H2, P4, etc.) already use ESP-IDF by default.
Why change? ESP-IDF offers:
✨ Up to 40% smaller binaries
? Better performance and optimization
? Custom-built firmware for your exact needs
? Active development and testing by ESPHome developers
Trade-offs:
⏱️ Compile times are ~25% longer
? Some components need migration
What should I do?
Option 1: Migrate to ESP-IDF (recommended)
Add this to your YAML under 'esp32:':
framework:
type: esp-idf
Option 2: Keep using Arduino (still supported)
Add this to your YAML under 'esp32:':
framework:
type: arduino
Need help? Check out the migration guide:
https://esphome.io/guides/esp32_arduino_to_idf.html
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-a...pping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing a16 (board: esp32dev; framework: arduino; platform: https://github.com/pioarduino/platform-e...ssif32.zip)
--------------------------------------------------------------------------------
INFO Package configuration completed successfully
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Unpacking [####################################] 100%
Library Manager: noise-c@0.1.10 has been installed!
INFO noise-c@0.1.10 has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10020.7
INFO Installing esphome/libsodium @ 1.10020.7
Unpacking [####################################] 100%
Library Manager: libsodium@1.10020.7 has been installed!
INFO libsodium@1.10020.7 has been installed!
INFO Package configuration completed successfully
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- framework-arduinoespressif32 @ 3.2.1
- framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Dependency Graph
|-- Networking @ 3.2.1
|-- WiFi @ 3.2.1
|-- ESPmDNS @ 3.2.1
|-- Update @ 3.2.1
|-- noise-c @ 0.1.10
|-- Wire @ 3.2.1
Compiling .pioenvs/a16/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/a16/lib4c5/Network/NetworkClient.cpp.o] Error 127
Compiling .pioenvs/a16/lib4c5/Network/NetworkEvents.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/a16/lib4c5/Network/NetworkEvents.cpp.o] Error 127
========================== [FAILED] Took 2.44 seconds ==========================
k868-a16.yaml.zip (Size: 1.03 KB / Downloads: 153)
INFO ESPHome 2025.8.3
INFO Reading configuration /config/esphome/k868-a16.yaml...
Failed config
esphome: [source /config/esphome/k868-a16.yaml:2]
name: a16
Please remove the `platform` key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: ESP32
board: esp32dev
The entry at the top needs to be:
esphome:
name: a16
esp32:
board: esp32dev
However, I still have these errors on install. It has something to do with xtensa-esp32-elf-g++
INFO ESPHome 2025.8.3
INFO Reading configuration /config/esphome/k868-a16.yaml...
WARNING ? IMPORTANT: This device doesn't have a framework specified!
Currently, ESP32 defaults to the Arduino framework.
This will change to ESP-IDF in ESPHome 2026.1.0.
Note: Newer ESP32 variants (C6, H2, P4, etc.) already use ESP-IDF by default.
Why change? ESP-IDF offers:
✨ Up to 40% smaller binaries
? Better performance and optimization
? Custom-built firmware for your exact needs
? Active development and testing by ESPHome developers
Trade-offs:
⏱️ Compile times are ~25% longer
? Some components need migration
What should I do?
Option 1: Migrate to ESP-IDF (recommended)
Add this to your YAML under 'esp32:':
framework:
type: esp-idf
Option 2: Keep using Arduino (still supported)
Add this to your YAML under 'esp32:':
framework:
type: arduino
Need help? Check out the migration guide:
https://esphome.io/guides/esp32_arduino_to_idf.html
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-a...pping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing a16 (board: esp32dev; framework: arduino; platform: https://github.com/pioarduino/platform-e...ssif32.zip)
--------------------------------------------------------------------------------
INFO Package configuration completed successfully
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Unpacking [####################################] 100%
Library Manager: noise-c@0.1.10 has been installed!
INFO noise-c@0.1.10 has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10020.7
INFO Installing esphome/libsodium @ 1.10020.7
Unpacking [####################################] 100%
Library Manager: libsodium@1.10020.7 has been installed!
INFO libsodium@1.10020.7 has been installed!
INFO Package configuration completed successfully
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- framework-arduinoespressif32 @ 3.2.1
- framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Dependency Graph
|-- Networking @ 3.2.1
|-- WiFi @ 3.2.1
|-- ESPmDNS @ 3.2.1
|-- Update @ 3.2.1
|-- noise-c @ 0.1.10
|-- Wire @ 3.2.1
Compiling .pioenvs/a16/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/a16/lib4c5/Network/NetworkClient.cpp.o] Error 127
Compiling .pioenvs/a16/lib4c5/Network/NetworkEvents.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/a16/lib4c5/Network/NetworkEvents.cpp.o] Error 127
========================== [FAILED] Took 2.44 seconds ==========================
k868-a16.yaml.zip (Size: 1.03 KB / Downloads: 153)

