Skip to content

UPDATE ALL from dashboard fails on openthread devices #770

@fracarvic

Description

@fracarvic

Version

2025.7.3

What type of installation are you using?

Home Assistant Add-on

Browser

Chrome

What happened?

I have 4 wifi devices, and 6 openthread devices and when I press UPDATE ALL from dashboard, the wifi devices are flashed succesfully, but all the openthread devices fails with error attached .

If I flash directly openthread devices with "Install" dashboard option in each device, device is flashed perfectly. This is the log when I press "Install".

INFO ESPHome 2025.7.3
INFO Reading configuration /config/esphome/esp-calefactor-2c3d70.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing esp-calefactor-2c3d70 (board: esp32-c6-devkitm-1; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip)
--------------------------------------------------------------------------------
HARDWARE: ESP32C6 160MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.50302.0 (5.3.2) 
 - tool-cmake @ 3.30.2 
 - tool-esptoolpy @ 4.8.6 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.7.1 
 - tool-riscv32-esp-elf-gdb @ 14.2.0+20240403 
 - tool-xtensa-esp-elf-gdb @ 14.2.0+20240403 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-riscv32-esp @ 13.2.0+20240530
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.10
RAM:   [=         ]  13.3% (used 43592 bytes from 327680 bytes)
Flash: [=====     ]  50.0% (used 917957 bytes from 1835008 bytes)
========================= [SUCCESS] Took 5.03 seconds =========================
INFO Successfully compiled program.
INFO Connecting to fd0d:482a:ed70:1:7659:19e:92c8:818a port 3232...
INFO Connected to fd0d:482a:ed70:1:7659:19e:92c8:818a
INFO Uploading /data/build/esp-calefactor-2c3d70/.pioenvs/esp-calefactor-2c3d70/firmware.bin (918320 bytes)
Uploading: [============================================================] 100% Done...

INFO Upload took 220.46 seconds, waiting for result...
INFO OTA successful

How to reproduce

  1. Press "UPDATE ALL" from dashboard
  2. Wait and result shows fail on openthread devices.

Expected behavior

When press "UPDATE ALL" all devices should flash correctly.

Relevant log output

Updating /config/esphome/esp-calefactor-2c3d70.yaml
------------------------------------------------------------

INFO ESPHome 2025.7.3
INFO Reading configuration /config/esphome/esp-calefactor-2c3d70.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing esp-calefactor-2c3d70 (board: esp32-c6-devkitm-1; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip)
--------------------------------------------------------------------------------
HARDWARE: ESP32C6 160MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.50302.0 (5.3.2) 
 - tool-cmake @ 3.30.2 
 - tool-esptoolpy @ 4.8.6 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.7.1 
 - tool-riscv32-esp-elf-gdb @ 14.2.0+20240403 
 - tool-xtensa-esp-elf-gdb @ 14.2.0+20240403 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-riscv32-esp @ 13.2.0+20240530
Reading CMake configuration...
Dependency Graph
|-- noise-c @ 0.1.10
RAM:   [=         ]  13.3% (used 43592 bytes from 327680 bytes)
Flash: [=====     ]  50.0% (used 917957 bytes from 1835008 bytes)
========================= [SUCCESS] Took 4.24 seconds =========================
INFO Successfully compiled program.
Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/esphome/esphome/__main__.py", line 1087, in main
    return run_esphome(sys.argv)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 1074, in run_esphome
    rc = POST_CONFIG_ACTIONS[args.command](args, config)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 536, in command_run
    exit_code = upload_program(config, args, port)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 346, in upload_program
    if get_port_type(host) == "SERIAL":
       ^^^^^^^^^^^^^^^^^^^
  File "/esphome/esphome/__main__.py", line 127, in get_port_type
    if port.startswith("/") or port.startswith("COM"):
       ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
==== [ERROR] /config/esphome/esp-calefactor-2c3d70.yaml

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions