ESPHome serial proxy support#23
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
This reverts commit 02fc250.
18 tasks
This reverts commit 843e54f.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 viasocket://so if your application works with these, no changes will be required.Some examples:
esphome://my-proxy.local/?noise_psk=abcdef123456: defaults to serial port0and uses Noise encryptionesphome://my-proxy.local/1?password=legacypassword: connects explicitly to serial port1and uses a legacy passwordFor CLI tools, it would look like so:
zigpy radio ezsp 'esphome://my-proxy.local/?noise_psk=abcdef123456' backup -z