Skip to content

ESPHome dashboard doesn't automatically re-connect log output to the device after flashing, if use_address set to ipv6 link-local address fe80:: #878

@vit5041

Description

@vit5041

Version

2026.2.2

What type of installation are you using?

Docker

Browser

Chrome

What happened?

I tried to set ipv6 link-local address as use_address and seems faced a bug. Every time Isee the following:

Image

after this error the device log is not being connected anymore, but the device itself works well.
if I close log window and press log button -- it get connected.

How to reproduce

it can be reproduced with any device if set use_address to ipv6 link-local, as follows:

wifi: ssid: !secret wifi1_ssid password: !secret wifi1_password use_address: fe80::aa46:74ff:fe40:7bf4%bond0

Expected behavior

I guess it should be able to properly reconnect to the device after flashing

Relevant log output

HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
 - contrib-piohome @ 3.4.4 
 - framework-espidf @ 3.50502.0 (5.5.2) 
 - tool-cmake @ 4.0.3 
 - tool-esp-rom-elfs @ 2024.10.11 
 - tool-esptoolpy @ 5.1.2 
 - tool-ninja @ 1.13.1 
 - tool-scons @ 4.40801.0 (4.8.1) 
 - toolchain-riscv32-esp @ 14.2.0+20251107
Reading CMake configuration...
No dependencies
RAM:   [=         ]  13.3% (used 43648 bytes from 327680 bytes)
Flash: [=======   ]  68.5% (used 1256502 bytes from 1835008 bytes)
========================= [SUCCESS] Took 6.95 seconds =========================
INFO Build Info: config_hash=0x7d313a1b build_time_str=2026-03-01 22:07:01 +0100
INFO Successfully compiled program.
INFO Connecting to fe80::aa46:74ff:fe40:7bf4 port 3232...
INFO Connected to fe80::aa46:74ff:fe40:7bf4
INFO Uploading /config/.esphome/build/ble-proxy-1/.pioenvs/ble-proxy-1/firmware.bin (1256912 bytes)
Uploading: [============================================================] 100% Done...

INFO Upload took 8.37 seconds, waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from fe80::aa46:74ff:fe40:7bf4 using esphome API
INFO Successfully resolved ble-proxy-1 @ fe80::aa46:74ff:fe40:7bf4 in 0.000s
WARNING Can't connect to ESPHome API for ble-proxy-1 @ fe80::aa46:74ff:fe40:7bf4: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET6: 10>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv6Sockaddr(address='fe80::aa46:74ff:fe40:7bf4', port=6053, flowinfo=0, scope_id=0))]: [Errno 22] Invalid argument (SocketAPIError)
INFO Trying to connect to ble-proxy-1 @ fe80::aa46:74ff:fe40:7bf4 in the background

Screenshots

provided above

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