#Hello! I'm trying to build a sensor

1 messages · Page 1 of 1 (latest)

unreal reef
#

According to this, it's because my 2 thread devices (SkyConnect as OTBR and ESP32 as leaf) don't share the same credentials (network key). So if that's really the issue my question becomes: how do we get the network key with SkyConnect OpenThread OTBR?

errant glen
#

First of all you should know that Multiprotocol is experimental and still a bit unstable. If you;r enot using it for production that is fine.

Second of all, our HA Companion app on Android will try to sync the thread credentials so if you us ethat to commission the device it should work fine unless you already have a Google Border router, in that case the Google Thread network will always be preferred, even if you removed the google BR again. Unfortunately we can't reliably read the Google credentials and use that for SkyConnect as well.

wicked rose
#

Isnt that even documented in the thread getting started guide?

#

Or to read it

unreal reef
#

Thank you both for the responses! I'm very much experimenting and not doing production. @errant glen I'm not sure I follow what my Android device has to do with this. I'm not using Matter (yet -- one step at a time 😉 unless you think I should go straight to it). I just have an ESP32-H2 with Thread radio (and temperature sensor (BME280) as a simple use case), and I'm trying to make it join my HA-SkyConnect Thread network so I can log in the data in HA. I don't have a Google BR.

#

@wicked rose how do you access the thread CLI? from HA terminal (I have the core-ssh addon)? I've looked up how to access it but can't figure out. If you have a pointer I'd love to see that!

errant glen
#

The HA Companion app for Android syncs the thread credentials for you so that is what it has to do with it.

wicked rose
unreal reef
# wicked rose You can ssh into the openthread border router. Also if you are using thread on y...

What's the address of the SkyConnect OTBR? from HA terminal I've tried ssh otbr, ssh otbr-agent but it didn't work. I have been configuring the H2's Thread dataset, using the info given as stated in my original post: Network name, Channel, Pan id, Extended Pan id. But I think it's missing the network key which I don't know how to get rn. If I can access the otbr CLI I think I can get it from there

wicked rose
#

Its s docker container, so its something like “docker exec xxx -it /bin/bash”

unreal reef
#

[updated] I use HA Operating System on rpi, and in the terminal ([core-ssh]) docker is not recognized.

errant glen
#

You can't use the skyconnect with HA core

unreal reef
#

sorry I mean I have Home Assistant Operating System installed on my rpi2, updated the above message

errant glen
unreal reef
#

but how come the Thread integration doesn't give the network key easily? and how can I debug the first error message I posted?
otbr-agent[318]: .... [W] Mle-----------: Failed to process UDP: Security

wicked rose
#

So it Will probably come at one point

unreal reef
unreal reef
#

@errant glen would you know where I can seek help on this if not here please? I'd love to be able to create my own Thread devices for HA 🙂 I know it's early stage and if I figure it out I'd be happy to help write a tutorial on it

unreal reef
errant glen
#

I believe we have an api for it but now I'm not sure if we expose that.

errant glen
# unreal reef <@461603794090852353> would you know where I can seek help on this if not here p...

I get your point but you are a bit too early in the game actually. Using HA as Thread Border router is early times, let alone using it a custom protocol so not matter. A lot of pieces are still missing but if you already got as far as setting up the Border Router and its running, then all you now need is the dataset to send to your device. But I have to warn you that range is limited of the thread radio so your device needs to be in pretty close range or some routing devices in between

#

press that little (i) icon in the top right of that box and you will have the complete dataset in tlv format

#

For clarity its in HA Settings --> Integrations --> Thread --> Hit configure