#Failed to save thread network credential - Potentially solved

1 messages · Page 1 of 1 (latest)

whole sundial
#

It's been a while since I've used Home Assistant and I've forgotten most of the quirks in setting it up, however, I have moved and would like to use Home Assistant in the new location.

I'm attempting to add one of my lights, which is probably factory reset by this time. However, when I attempt to add it using the iPhone; using the latest TestFlight version (2025.7.2 (2025.1353), when I attempt to add the device (that is, the light), I get the error message:

Failed to save thread network credential, error: Cannot store frozen credentials
Failed to save thread network credential.

I remember I had a similar issue at my previous home, too, many months ago, however it seems this hasn't been resolved yet, so I'm wondering where to go to diagnose and fix this.

Update: I suspect this was down to a peculiarity on the iPhone; a conflict with the apple Home app.

#

The matter server version is 8.0.0

#

Looking to the Thread service, I can't tap on "Send credentials to phone", because I get the following error:

Operation failed
Failed to store thread credential in keychain, error: Can not store frozen credentials

If I instead attempt to send credentials to Home Assistant, I get the following error:

Error
No preferred network found

#

So I think I'm at a complete loss.

#

Looks like I can "Reset border router". I might try that.

#

That seems to improve things, I now get a new button, "Make preferred network"...

Which means I should then be able to send credentials to Home Assistant... Ah, dang, no preferred network found, still.

#

Oh, but then tapped the buttons in a different order and now somehow it works...

#

But still can't actually add the matter device due to a new error:

Failed to save thread network credential, error: Thread network credentials does not match with any of the active thread networks around
Failed to save thread network credential

whole sundial
#

I'm very confused why there's no border router. Very confused because I do have a ZBT-1 device connected and Open Thread Border Router is apparently running.

#

(I've reloaded it just in case but it doesn't change anything)

#

Hmm, I think I've done something, in the "Home Assistant Connect ZBT-1" integration, I reconfigured it and picked "Thread" as the firmware... So it's now setup as the border router...

But hmm, the Thread integration still says "No border routers found".

#

But it still shows up as "No border routers found". 🤔

#

Well, that's weird.

It still shows that, but now I can add accessory without any such errors.

Somehow it's adding the light... No idea why. So if someone sees this support question with the companion app I'd love to be guided towards understanding what's happening. How does it try to add the light despite not having a border router found.

Looks like I have two networks (again not sure why):
ha-thread-efeb, and ha-thread-5daf; the former has a border router, the latter doesn't.

#

Maybe I'll try selecting "Reset Border Router"

#

And deleting the other network.

whole sundial
#

Hmm, attempted to re-follow the instructions at https://www.home-assistant.io/integrations/matter

However, it again results in:

Operation failed
Failed to store thread credential in keychain, error: Thread network credentials does not match with any of the active thread networks around

Home Assistant

Instructions on how to integrate Matter with Home Assistant.

#

Weirdly that error doesn't come up now, after a few minutes.

#

Trying to add a an accessory... Takes a long while...

#

A very long while, it's still going.

#

Yeah that was 5 minutes, I'm killing that.

#

Hmm, since this is actually an existing light that I've (hopefully) factory-reset, perhaps I might delete all my existing lights in case it's conflicting somehow.

#

Nope that wasn't it either.

#

Managed to find an obscure reddit post that mentioned a nanoleaf app, so I'm trying that. Looks like the light does connect to that, and it's now currently updating the firmware from version 3.6.196 to 4.1.3, so hopefully that fixes it...

#

Well, the device works, but the app does not appear to cooperate in any way with the thread network. I can't use it to add an existing device in home assistant (because nanoleaf does not give a sharing code), and I can't add it as a new device either.

I'm not sure why I keep getting two thread networks.

#

Yeah, it doesn't matter how many times I delete the second network, it always comes back when I "Send credentials to Home Assistant".

#

Oddly enough, although home assistant frequently displays two thread networks (ha-thread-60e3 and ha-thread-efeb), the nanoleaf application instead frequently displays two thread networks, BOTH named ha-thread-efeb, if I'm selecting the network to move the device to. (If I'm just simply listing thread networks in nanoleaf instead, it lists both the 60e3 and efeb ones, but I can't move the device in that screen)

#

Deleting the device from nanoleaf doesn't allow me to add it to the homeassistant either. 😞

#

Oooh, got closer.

After connecting it to nanoleaf and upgrading firmware, and then factory resetting it again, I can get further with connecting it to homeassistant, but it says:

Thread Border Router Required
To pair this accessory, youe home network must include a Thread Border Router.

#

...

It seems my iPhone 14 Pro isn't Thread enabled? I swear this was working two years ago on the same phone.

#

Uh, that's weird. So...

Going into the Home App on the iPhone...

Hitting the button there (I think it was 'continue'), where it sets up the "Home" network...

And then deleting that and going back and re-creating it and then deleting it a few times.... As I wasn't sure how to use that app. Anyway, ensuring it's GONE...

Then killing that app and getting back into home assistant and it then perfectly adds the light(!)

#

So it appears to be finally working.

#

Failed to save thread network credential - Potentially solved