Skip to content

[openthread] add mesh_local_eid openthread_info sensor#6059

Open
mrene wants to merge 1 commit intoesphome:nextfrom
mrene:openthread-mleid
Open

[openthread] add mesh_local_eid openthread_info sensor#6059
mrene wants to merge 1 commit intoesphome:nextfrom
mrene:openthread-mleid

Conversation

@mrene
Copy link

@mrene mrene commented Feb 11, 2026

The Mesh-Local EID is an ipv6 unicast address that remains stable after an openthread device joins a network. This exposes it as an openthread_info diagnostic sensor.

It should then be possible to perform direct udp communication between devices.

Pull request in esphome with YAML changes (if applicable):

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/_index.md when creating new documents for new components or cookbook.

New Component Images

If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.

To generate a component image:

  1. Comment on this pull request with the following command, replacing component_name with your component name in lower_case format with underscores (e.g., bme280, sht3x, dallas_temp):

    @esphomebot generate image component_name
    
  2. The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.

  3. Extract the SVG file and place it in the /static/images/ folder of this repository.

  4. Use the image in your component's index table entry in /components/_index.md.

Example: For a component called "DHT22 Temperature Sensor", use:

@esphomebot generate image dht22

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for exposing the OpenThread Mesh-Local EID as a new openthread_info text sensor, enabling users to reference a stable IPv6 unicast address for device-to-device communication within a Thread mesh.

Changes:

  • Extend the openthread_info text sensor YAML example to include mesh_local_eid.
  • Document the new mesh_local_eid configuration option and its purpose.

Comment on lines +73 to +76
- **mesh_local_eid** (*Optional*): Expose the Mesh Local EID (Endpoint Identifier) address as a text sensor. This is
an IPv6 address unique to the device within the Thread mesh, used for communication between Thread devices
regardless of network topology changes.
All options from [Text Sensor](/components/text_sensor#config-text_sensor).
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thread/OpenThread terminology is typically written as “Mesh-Local EID”. Consider updating the heading text and example name to use the hyphenated form (and keep it consistent across the page) to match the spec and avoid confusion with other mesh-local concepts.

Copilot uses AI. Check for mistakes.
Comment on lines 33 to +36
pan_id:
name: "Thread PAN ID"
mesh_local_eid:
name: "Thread Mesh Local EID"
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The YAML example order is inconsistent with the configuration-variable list below (example places mesh_local_eid after pan_id, but the docs describe mesh_local_eid before pan_id). Please reorder one of the sections so the option ordering matches throughout the page (easier to scan and avoids implying a different underlying order).

Suggested change
pan_id:
name: "Thread PAN ID"
mesh_local_eid:
name: "Thread Mesh Local EID"
mesh_local_eid:
name: "Thread Mesh Local EID"
pan_id:
name: "Thread PAN ID"

Copilot uses AI. Check for mistakes.
@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit f7bd677
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/698c0162b51a8000087f5a42
😎 Deploy Preview https://deploy-preview-6059--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments