Skip to content

Esphome cannot ping flashed devices due to mDNS issue #754

@HitLuca

Description

@HitLuca

When fetching logs for flashed devices in esphome (if no ip is set in the yaml config) an issue arises: esphome tries to resolve the device hostname using the local domain (device-name.local) but due to being a container in a bridge mode network it doesn't have mDNS resolution available.

To fix this issue one should put esphome in host networking mode (assuming that the host has an mDNS resolver like avahi, which often is the case). Another option is to document this issue and let the user update the role file if he wants to

Can create a PR if necessary, just let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions