Skip to content

Unable to update energy 6 meter #63

@sarus3749

Description

@sarus3749

Hi.
I tried to update my energy meter but here is the result. I cleaned the build before. I don't understand the problem.

Thank you very much

config :
substitutions:
name: athom-em-6-029adc
friendly_name: Athom Energy Meter 2
packages:
Athom Technology.Athom Energy Meter(6 Channels): github://athom-tech/esp32-configs/athom-energy-monitor-x6.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key: ajMklTsmw8FMMXikgLjVBqdU7ooF7RemmvJy6Gme68I=

wifi:
ssid: !secret wifi-iot_ssid
password: !secret wifi-iot_password

result of installation :

INFO ESPHome 2025.9.3
INFO Reading configuration /config/esphome/athom-em-6-029adc.yaml...
WARNING GPIO8 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-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO9 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-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing athom-em-6-029adc (board: esp32-c3-devkitm-1; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)

INFO Package configuration completed successfully
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Downloading [####################################] 100%
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
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: libsodium@1.10020.7 has been installed!
INFO libsodium@1.10020.7 has been installed!
Library Manager: Installing bblanchon/ArduinoJson @ 7.4.2
INFO Installing bblanchon/ArduinoJson @ 7.4.2
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: ArduinoJson@7.4.2 has been installed!
INFO ArduinoJson@7.4.2 has been installed!
Library Manager: Installing improv/Improv @ 1.2.4
INFO Installing improv/Improv @ 1.2.4
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: Improv@1.2.4 has been installed!
INFO Improv@1.2.4 has been installed!
INFO Package configuration completed successfully
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash

  • framework-espidf @ 3.50402.0 (5.4.2)
  • tool-cmake @ 3.30.2
  • tool-esp-rom-elfs @ 2024.10.11
  • tool-esptoolpy @ 5.0.2
  • tool-mklittlefs @ 3.2.0
  • tool-ninja @ 1.13.1
  • tool-scons @ 4.40801.0 (4.8.1)
  • toolchain-riscv32-esp @ 14.2.0+20241119
    Reading CMake configuration...
    -- Found Git: /usr/bin/git (found version "2.39.5")
    -- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
    -- The C compiler identification is GNU 14.2.0
    -- The CXX compiler identification is GNU 14.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-g++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Building ESP-IDF components for target esp32c3
    -- Configuring incomplete, errors occurred!

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/build.cmake:620 (message):
Traceback (most recent call last):

File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 112, in _get_module_details
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_manager/__init__.py", line 6, in <module>
  from idf_component_tools.environment import ComponentManagerSettings
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/__init__.py", line 9, in <module>
  if ComponentManagerSettings().DEBUG_MODE:
     ^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic_settings/main.py", line 193, in __init__
  super().__init__(
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/pydantic/main.py", line 250, in __init__
  validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/idf_component_tools/environment.py", line 148, in fallback_to_default
  if field.validation_alias:
     ^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'validation_alias'

Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:718 (idf_build_process)
CMakeLists.txt:3 (project)

========================== [FAILED] Took 9.17 seconds ==========================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions