Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ESP Thread Border Router #61

Open
FutureCow opened this issue Jul 29, 2023 · 2 comments
Open

Add support for ESP Thread Border Router #61

FutureCow opened this issue Jul 29, 2023 · 2 comments

Comments

@FutureCow
Copy link

a couple of weeks ago the ESP Thread border router was made available. This board is officialy supported bij OpenThread.

The official software for this router is available here: https://github.com/espressif/esp-thread-br
This includes a web-ui and API. But it looks like this API is a bit different that what python-otbr-api is expecting?
https://github.com/espressif/esp-thread-br/blob/main/docs/en/codelab/web-gui.rst
will this router also be supported inside home assistant?

image

@agners
Copy link
Contributor

agners commented Jul 31, 2023

This includes a web-ui and API. But it looks like this API is a bit different that what python-otbr-api is expecting?

Hm interesting, I wasn't aware that they also have a (variation) of the OTBR REST API.

I see they've added their own extension of the API to form and join networks.

will this router also be supported inside home assistant?

We've extended the REST API in upstream OTBR the last couple of months to support forming and joining networks. Ideally the ESP Thread Border Router should support that upstream/official API. If they do that, Home Assistant will be able to talk with the OTBR without changes on HA side (and potentially other ecosystems as this is now the upstream REST API).

Maybe worth opening a issue on their side to ask them to update their REST API to support the latest REST API version of the upstream OTBR?

@oddstr13
Copy link

oddstr13 commented Nov 9, 2023

Should be fixed with espressif/esp-thread-br@0b08a3a
Upstream issue that was tracking this can be found at espressif/esp-thread-br#27

Flashing instructions can be found at https://docs.espressif.com/projects/esp-thread-br/en/latest/dev-guide/build_and_run.html

I don't yet have any Matter devices to test that it is fully working, but I was able to add the ESP Thread Border Router to Home Assistant now.
I must note that trailing slash is significant, e.g enter the URL as http://espressif.local (NOT http://espressif.local/!), and that this gives the same non-descriptive error message. HA will add an additional slash with the API route, and the ESP device does not gracefully handle that.

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

No branches or pull requests

3 participants