M5Stack Echo not updating to 2025.8.0

My 2 M5Stack Echo’s will not update to the latest ESPHome Builder version, 2025.8.0.
HA OS
Core 2025.8.2
Supervisor 2025.08.1
Operating Sytem 16.1
I get the error below:
INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/kitchen-voice-311bf8.yaml…
ERROR Unexpected exception while reading configuration:
Traceback (most recent call last):

File "/usr/local/bin/esphome", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/esphome/esphome/__main__.py", line 1194, in main
    return run_esphome(sys.argv)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 1172, in run_esphome
    config = read_config(dict(args.substitution) if args.substitution else {})
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/config.py", line 1184, in read_config
    res = load_config(command_line_substitutions)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/config.py", line 1041, in load_config
    return _load_config(command_line_substitutions)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/config.py", line 1031, in _load_config
    return validate_config(config, command_line_substitutions)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/config.py", line 955, in validate_config
    result.run_validation_steps()
  File "/esphome/esphome/config.py", line 178, in run_validation_steps
    task.step.run(self)
  File "/esphome/esphome/config.py", line 828, in run
    self.comp.final_validate_schema(conf)
  File "/esphome/esphome/voluptuous_schema.py", line 37, in __call__
    res = super().__call__(data)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
           ^^^^^^^^^^^^
  File "/esphome/esphome/components/esp32/__init__.py", line 534, in final_validate
    from esphome.components.psram import DOMAIN as PSRAM_DOMAIN
ImportError: cannot import name 'DOMAIN' from 'esphome.components.psram' (/data/external_components/1da7985b/esphome/components/psram/__init__.py)

I have exactly he same compiling error with my m5stack Atom Echo and esphome 2025.8.0

1 Like

After 3 more updates my M5Stack echoes still won’t update. There seems to be an error in the the ‘substitutions’ section as shown by the screen shot belo

I sat and thought about it and decided to copy the code from Github into my yaml file, keeping the name substitutions, encryption key, ota password and wifi credentials. Validated the file and successfuly updated my M5Stack echos.

1 Like

I had the same Situation.

My external component psram was set to a fixed esphome version because of an bug before.

I changed this:

external_components:

to this

external_components:

  • source: github://esphome/esphome
    components: [psram]

Compilation works flawlessly.

All updates since then have worked. I guess the bug was fixed in one of the later updates.