Skip to content

[serial_channel] Add new entity for serial channel emulation#134

Closed
clydebarrow wants to merge 51 commits intodevfrom
serial-entity
Closed

[serial_channel] Add new entity for serial channel emulation#134
clydebarrow wants to merge 51 commits intodevfrom
serial-entity

Conversation

@clydebarrow
Copy link
Owner

@clydebarrow clydebarrow commented Jan 19, 2026

What does this implement/fix?

Adding a new entity type and a serial_channel component to expose serial ports via the
ESPHome embedded webserver.

See also esphome/esphome-webserver#182

Testing - all I have done so far is generate the v3/server_index_v3.h file and copy it to
the esphome code for building, using local: true in the webserver.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Developer breaking change (an API change that could break external components)
  • Code quality improvements to existing code or addition of tests
  • Other

Related issue or feature (if applicable):

  • fixes

Pull request in esphome-docs with documentation (if applicable):

  • esphome/esphome-docs#

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx
  • LN882x
  • nRF52840

Example entry for config.yaml:

# Example config.yaml

serial_channel:
  name: "Debug Serial"
  uart_id: uart_bus
  buffer_size: 512
  on_data:
    - logger.log:
        format: "Received data: %s"
        args: ["x.c_str()"]


web_server:
  local: true
  version: 3

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

bdraco and others added 30 commits January 17, 2026 11:09
…e#13202)

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
…266 RAM (esphome#13315)

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
…ng helpers (esphome#13221)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bdraco and others added 21 commits January 18, 2026 18:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…rintf/buf_append_printf (esphome#13301)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

To use the changes in this PR:

# Clone the repository:
git clone https://github.com/clydebarrow/esphome
cd esphome

# Checkout the PR branch:
git fetch origin pull/134/head:serial-entity
git checkout serial-entity

# Install the development version:
script/setup

# Activate the development version:
source venv/bin/activate

Now you can run esphome as usual to test the changes in this PR.


(Added by the PR bot)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments