Skip to content

ESPHome serial proxy support#23

Merged
puddly merged 48 commits into
devfrom
puddly/esphome
Mar 8, 2026
Merged

ESPHome serial proxy support#23
puddly merged 48 commits into
devfrom
puddly/esphome

Conversation

@puddly
Copy link
Copy Markdown
Owner

@puddly puddly commented Feb 12, 2026

Depends on esphome/aioesphomeapi#1495, which depends on esphome/esphome#13944.


This PR introduces esphome:// URIs, allowing transparent connection to serial ports exposed by ESPHome devices. We already support URIs to connect to TCP serial ports via socket:// so if your application works with these, no changes will be required.

Some examples:

  • esphome://my-proxy.local/?noise_psk=abcdef123456: defaults to serial port 0 and uses Noise encryption
  • esphome://my-proxy.local/1?password=legacypassword: connects explicitly to serial port 1 and uses a legacy password

For CLI tools, it would look like so:

zigpy radio ezsp 'esphome://my-proxy.local/?noise_psk=abcdef123456' backup -z

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 95.28796% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.56%. Comparing base (c2cb10b) to head (a863a04).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
serialx/platforms/serial_esphome.py 96.15% 7 Missing ⚠️
serialx/common.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #23      +/-   ##
==========================================
+ Coverage   84.91%   86.56%   +1.65%     
==========================================
  Files          11       12       +1     
  Lines        1352     1541     +189     
==========================================
+ Hits         1148     1334     +186     
- Misses        204      207       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@puddly puddly merged commit 10402fc into dev Mar 8, 2026
32 checks passed
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.

2 participants