I created documentation on how to do this after pulling data from various places. Posted it in the documentation category.
Make Apple Thread Network Preferred Thread Network - Full Process - Community Guides - Home Assistant Community (home-assistant.io)