Hey all, I’m trying to solve an issue where the Thread network name in Home Assistant has gone missing. This leads to the error AttributeError: 'NoneType' object has no attribute 'encode' in the file "/usr/local/lib/python3.12/site-packages/aiohomekit/controller/ble/pairing.py" when trying to pair HomeKit devices. I have around 30 paired Matter devices, and I’m using a HomePod Mini as my border router.
When using the iOS Companion app (which properly displays the network name) under Settings > Debugging > Thread Credentials, the “Transfer to Home Assistant” button switches to green when pressed, but nothing else happens. The credentials in HA are not updated with the network name.
Does anyone know how I can safely restore the missing Thread network name without having to re-pair all my Matter devices? Is there a way to pull the current Thread dataset through the WebSocket API, set the network name, and push it back into HA? I assume Python scripts can’t interact with the WebSocket API directly, but could AppDaemon, a custom integration, or something else handle this?
Any advice on solving this or what would happen if I deleted and re-added the Thread credentials would be greatly appreciated! Currently, my Nanoleaf light strip (Homekit), which used to act as a Thread router, won’t rejoin, and my Thread network is now unstable without it.
Thanks in advance!