Skip to content

[bug] Impossible to re-pair new device and bridge to homekit after first pair and delete #86

Open
@tiziano149

Description

@tiziano149

Hardware

Arduino Nano Matter

Core version

2.1.0

Arduino IDE version

2.3.2

Operating system

macOS 14.5

Radio stack variant

Matter

OpenThread Border Router device (if using Matter)

Apple TV4K and HomePod Mini

Issue description

After initially pairing the Arduino Nano Matter with HomeKit and properly decommissioning the device before deleting the bridge, it becomes impossible to re-pair the bridge to HomeKit. The first re-pairing attempt returns the expected “This accessory is not authorized” message, but subsequent attempts result in a timeout error, preventing the bridge from being added back to the HomeKit setup. This behavior is consistent across both Apple TV 4K and HomePod Mini.

Steps to Reproduce:

1.	Pair the Arduino Nano Matter with HomeKit successfully.
2.	Properly decommission the device from HomeKit.
3.	Delete the bridge from HomeKit.
4.	Attempt to re-pair the same Arduino Nano Matter bridge with HomeKit.
5.	The first attempt results in “This accessory is not authorized” (as expected).
6.	Subsequent attempts result in a timeout and the error “Accessory Cannot Be Added - Failed to establish a link with the accessory.”

Expected Behavior:
The bridge should re-pair with HomeKit without any issues after being decommissioned and deleted, even if the first attempt is unauthorized.

Actual Behavior:
The first re-pairing attempt shows “This accessory is not authorized,” but the subsequent attempts time out and fail with the error message “Accessory Cannot Be Added - Failed to establish a link with the accessory.”

Environment:

•	Arduino Nano Matter
•	HomeKit
•	Apple TV 4K and HomePod Mini
•	iOS version: 17.6.1

Additional Context:
This issue occurs on both Apple TV 4K and HomePod Mini, indicating that the problem is not specific to a particular device. It seems related to how HomeKit handles re-pairing after the initial decommissioning and deletion process.

Serial output

No response

RTT output (if using Matter)

No response

Minimal reproducer code

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions