Deep Reset
An IKEA switch that wouldn't recommission after deletion. Three log files, a BLE scanner, and a battery pull to find the fix.
The BILRESA works again. Which is a sentence that cost me an evening, three log files, and a conversation with an AI that kept suggesting I try the thing I'd already tried.
I should back up.
01 The Mistake
I had an IKEA BILRESA 2-button switch connected to Home Assistant through Matter over Thread. It worked. The GRILLPLATS plug next to it worked. The Sonoff dongle-M was humming along as a Thread border router. Everything was fine—and then I decided I wanted the switch in HomeKit instead.
So I deleted it from Home Assistant.
This is the part where I tell you not to do that. Matter supports multi-fabric—you can have a device on HA and Apple Home simultaneously without removing it from either. I did not know this at the time. I know it now, in the way you know things that cost you an evening.
02 The Spiral
After deleting the BILRESA from HA, it would not connect to anything. Not Home Assistant. Not Apple Home. Not anything. I factory reset it—held the center button under the rocker cover for ten seconds, watched it go red then amber, felt the brief satisfaction of a thing that looked like it was working—and tried again. Nothing.
The HA companion app said "device not found." Apple Home said the equivalent. I tried the QR code, the numeric pairing code, different sequences of button presses. The switch has three distinct LED behaviors depending on what combination of buttons you hold and for how long, and I became intimately familiar with all of them.
03 Reading the Logs
The first log file I pulled was labeled "matter" but contained nothing about Matter. It was 490 lines of UniFi connection errors to a controller that was apparently offline—every 83 seconds, for hours—and three ZHA config flow crashes where something kept trying to claim a Zigbee radio that did not exist. Noise.
The second log file was the actual Matter server output. This one told a story. The Matter server knew about exactly one node—the GRILLPLATS—and had zero record of any commissioning attempt. When I tried to pair the BILRESA, the request never reached the server. The companion app on iOS was handling (and failing) the BLE commissioning before HA ever got involved.
The third log file was the one that mattered. I tried commissioning through the Matter server add-on directly—a "Commission Node" button I found on the server page—and this time the logs actually had something to say.
04 The Chicken and the Egg
The Matter server found the BILRESA. Vendor 4476—IKEA. Discriminator 8. It had a Thread mesh-local IPv6 address and everything. The server tried to establish a PASE session—the password handshake that starts every Matter commissioning—and timed out after two minutes. Address unreachable.
Then the line that explained everything: ThreadDiag~csService no source ... partial(no_credentials).
The device had no Thread network credentials. It needed to be commissioned to get Thread credentials, but the Matter server was trying to reach it over Thread to commission it. A Thread device that is not yet on the Thread network cannot be commissioned over the Thread network. The "Commission Node" function in the Matter server UI only does IP-based commissioning—it cannot do BLE.
The iOS companion app can do BLE commissioning, but Apple's Matter framework intercepts the process and—for reasons I am choosing not to speculate about—was silently failing. nRF Connect on my phone confirmed the BILRESA was advertising correctly over BLE. Service UUID FFF6, connectable, everything looked right. The device was screaming into the void and nobody was listening.
05 The Battery Pull
After exhausting every standard approach, I tried something different. Pulled the battery. Held the center button down. Reinserted the battery while still holding the button. Kept holding for about twenty seconds.
The LED slow-flashed amber. I opened the companion app. It connected on the first try.
The standard factory reset—center button for ten seconds—was not fully clearing the device's state. The old fabric credentials from the original HA pairing were still lodged in there somewhere, and the device was stuck in a liminal state: not paired to anything, but not available to be paired to anything either. The deep reset with the battery pull actually wiped it clean.
06 The Lesson
The obvious takeaway is the deep reset procedure, and I documented that in a README because I will absolutely need it again. But the thing I keep coming back to is simpler than that: do not delete Matter devices to move them between ecosystems. Matter was designed for multi-fabric. The device can live on Home Assistant's fabric and Apple Home's fabric at the same time. Deleting it from one to add it to another is not just unnecessary—it is how you end up holding a battery and a button for twenty seconds while questioning your life choices.
The hardest part was not the fix. The hardest part was the two hours of reading logs that said nothing, trying resets that did not reset, and slowly narrowing the problem from "nothing works" to "the PASE handshake cannot complete because the device has stale credentials that the standard factory reset does not clear." The fix was a battery pull. The diagnosis was the actual work.
The BILRESA costs $5.99. The evening I spent debugging it cost considerably more than that in ways I cannot invoice. But I now understand Matter fabrics, Thread commissioning bootstraps, the difference between IP-based and BLE-based PASE sessions, and why you should never delete a device when the protocol was designed to let you share it. That is not a $5.99 education. It is also not one I would have gotten from a tutorial or a manual—it came from a switch that refused to work and the stubbornness to find out why.