After some assistance please with getting my 868-M16-V2.1 board at least connected/visible in HA. Have read through most of this forum and seems a regular issue people had was updates to ESP making the sample YAML file outdated. I can connect my board. Prep for use, and connect all OK ... and have pulled the newest sample YAML file from here, but still errors all over the place when I try to compile/run .... any help with ID'ing/Fixing, or a new up-to-date sample YAML file that works would be appreciated .... cheers.
INFO ESPHome 2025.9.1
INFO Reading configuration /config/esphome/KC868-M16v2-ESPHome.yaml...
WARNING [ethernet] The 'clk_mode' option is deprecated and will be removed in ESPHome 2026.1. Please update your configuration to use 'clk' instead.
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
WARNING Using `sensor.SENSOR_SCHEMA` is deprecated and will be removed in ESPHome 2025.11.0. Please use `sensor.sensor_schema(...)` instead. If you are seeing this, report an issue to the external_component author and ask them to update it.
https://developers.esphome.io/blog/2025/...recations/. Component using this schema: zmpt101b_ns
WARNING Using `sensor.SENSOR_SCHEMA` is deprecated and will be removed in ESPHome 2025.11.0. Please use `sensor.sensor_schema(...)` instead. If you are seeing this, report an issue to the external_component author and ask them to update it.
https://developers.esphome.io/blog/2025/...recations/. Component using this schema: zmpt101b_ns
WARNING Using `sensor.SENSOR_SCHEMA` is deprecated and will be removed in ESPHome 2025.11.0. Please use `sensor.sensor_schema(...)` instead. If you are seeing this, report an issue to the external_component author and ask them to update it.
https://developers.esphome.io/blog/2025/...recations/. Component using this schema: zmpt101b_ns
WARNING `attenuation: 11db` is deprecated, use `attenuation: 12db` instead
INFO Detected timezone 'Australia/Sydney'
INFO Generating C++ source...
INFO Compiling app...
Processing m16v2 (board: esp32dev; framework: arduino; platform:
https://github.com/pioarduino/platform-e...ssif32.zip)
--------------------------------------------------------------------------------
INFO Package configuration completed successfully
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
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/lib/python3.12/site-packages/pip/__main__.py", line 22, in <module>
from pip._internal.cli.main import main as _main
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 11, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 12, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 9, in <module>
from pip._internal.build_env import get_runnable_pip
File "/usr/local/lib/python3.12/site-packages/pip/_internal/build_env.py", line 19, in <module>
from pip._internal.cli.spinners import open_spinner
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/spinners.py", line 22, in <module>
from pip._internal.utils.logging import get_console, get_indentation
File "/usr/local/lib/python3.12/site-packages/pip/_internal/utils/logging.py", line 25, in <module>
from pip._vendor.rich.logging import RichHandler
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap_external>", line 1128, in get_code
File "<frozen importlib._bootstrap_external>", line 757, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Warning! Couldn't extract the list of installed Python packages.
Installing Arduino Python dependencies
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/local/lib/python3.12/site-packages/pip/__main__.py", line 22, in <module>
from pip._internal.cli.main import main as _main
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 11, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 12, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 9, in <module>
from pip._internal.build_env import get_runnable_pip
File "/usr/local/lib/python3.12/site-packages/pip/_internal/build_env.py", line 19, in <module>
from pip._internal.cli.spinners import open_spinner
File "/usr/local/lib/python3.12/site-packages/pip/_internal/cli/spinners.py", line 22, in <module>
from pip._internal.utils.logging import get_console, get_indentation
File "/usr/local/lib/python3.12/site-packages/pip/_internal/utils/logging.py", line 25, in <module>
from pip._vendor.rich.logging import RichHandler
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap_external>", line 1128, in get_code
File "<frozen importlib._bootstrap_external>", line 757, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
*** Error 1
Dependency Graph
|-- Networking @ 3.2.1
|-- AsyncTCP @ 3.4.5
|-- WiFi @ 3.2.1
|-- FS @ 3.2.1
|-- Update @ 3.2.1
|-- ESPAsyncWebServer @ 3.7.10
|-- ESPmDNS @ 3.2.1
|-- noise-c @ 0.1.10
|-- Wire @ 3.2.1
|-- ArduinoJson @ 7.4.2
Compiling .pioenvs/m16v2/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/m16v2/lib4c5/Network/NetworkClient.cpp.o] Error 127
Compiling .pioenvs/m16v2/lib4c5/Network/NetworkEvents.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/m16v2/lib4c5/Network/NetworkEvents.cpp.o] Error 127
========================= [FAILED] Took 20.27 seconds =========================