Replies: 7 comments 17 replies
-
It's working! - though i am still confused about persisting state across container refreshes.... which i think is required for the mesh network to be reformed when the container is recreated? any answers i think i have found have been updated in the OP |
Beta Was this translation helpful? Give feedback.
-
Interesting, i was forced to delete the OTBR container + replug the SkyConnect as it was non functional
it either used data on the RCP or home assistant store the previous network in thread AND persisted that even when i deleted the OTBR integration! i am trending to the latter..... |
Beta Was this translation helpful? Give feedback.
-
based on the suggestion in this thread home-assistant/addons#3532 (comment) i am now trying another approach:
ser2net compose file (runs on the remote pi)
set2net.yaml file
otbr-addon yaml config
|
Beta Was this translation helpful? Give feedback.
-
random question: why do the home assistant folks disable mdns in their OTBR add-on when it is required by the thread specification for all border routers.... |
Beta Was this translation helpful? Give feedback.
-
Just want to put that out here, especially for other folks comming here: We work hard to build exactly that, as an out-of-the-box working solution: Home Assistant OS + OpenThread Border Router add-on provides a well tested and known working platform. It is built ontop of Linux + Docker, and comes with the Supervisor (roughly HA specific "container" manager). And we seek always for contributors, as our system certainly isn't perfect 😉 That said, I do understand, there is fun and value in building something like that from scratch. Not judging, just sayin 😄 I'll answer to things/question in here in more details per answer/topic. |
Beta Was this translation helpful? Give feedback.
-
In general, from what I can tell, the container offered by this upstream project is really more meant for development/testing. The fact that by default Thread network settings are not stored shows that. That said, ideally I would like to offer a "pure" container to run a OTBR for the Home Assistant community, for those using Core container and Matter container installations. Ideally, I'd like to use that container then as base for the add-on. We have a similar setup for Matter: The python-matter-server project offers a pure container, and this pure container is then also turned into an add-on. Maybe we could even go a step further and adjust/synchronize with the upstream |
Beta Was this translation helpful? Give feedback.
-
Hoping that both of you continue development of the OTBR as a Home Assistant container. I've a similar set up as scyto in that I run HA in docker using Docker Compose via Portainer. My Zigbee2MQTT and Mosquito are all containers. The OS is Ubuntu running as a VM on baremetal ESXi. My Zigbee radios are PoE SMlights. One blocker is this OTBR in a docker. @scyto , you mentioned writing a doc. Any chance that happened? |
Beta Was this translation helpful? Give feedback.
-
I seem to be super confused and need help.
sometime later....
Answers where i arrived at a solution.
What i would like to do:
My questions:
should the OTBR be advertising itself using mDNS on my LAN or just the mesh network?
answer = both so use macvlan to do this
the container instructions don't give any real indication of how to store configuration state in a bind mount - how do i do this so things like the formed mesh are persistent across container delete?
answer = the official OTBR container isn't designed to store state, the HA OTBR integration configures the RCP via API when added (and remembers the TLV data) - there are some issues with reliability of this if the container goes down. In theory the official OTBR container could be modified to redirect some key state files and to run ot-ctl command at start to reform the network - but this is a major refactor. It seems this OTBR container is not really designed for production but just test scenarios.
will the container have full functionality if docker bridge networking is used or should it be using host networking?
answer = macvlan means mdns and all ports work, use this IMHO
should i be setting the mesh prefix to one of my /64 ?
answer = i set it to one of my /64 and enable RA and my LAN devices can now ping the thread nodes on ipv6 - nice!
if i have /64 do i need NAT64 running?
answer = i have no idea if it is running or not, but its all working
If i need to have OTBR advertising itself i will need to use host networking or macvlan on the pi, for the former is there an easy way to change the web server port
answer = didn't matter in the end as i used macvlan and had no port conflicts. i note the -p option could be specified in the entrypoint script (would be nice for the container to be refactored to use variables, i might take a crack at if i have time)
my one thread device (aqara door sensor) keeps disapearing after a few hours - a press on the button makes it connect again, answer = good old fashioned signal issue, i need more devices to make more a more robust mesh
Can anyone provide guidance or direct me to a how to?
I guess i will be writing one.....
Beta Was this translation helpful? Give feedback.
All reactions