Adding P2 to Home Assistant

Having added a new P2 sensor to Apple Home, how do I now add it to Home Assistant? I’ve put it into pairing mode in Home, copied the code and put it in to the Add Matter device in HA. Every time, I just get an unhelpful “Failed to add” message.

Make sure that it is in the format
0000-000-0000 and not 00000000000.
Add hyphens if necessary. Always four numbers, hyphen, three numbers, hyphen, and another four numbers.

1 Like

Thanks for that - it has crossed my mind, as I see that the auto copy function drops the dashes, but I hadn’t tried it yet. Will give it a go in the morning.

1 Like

Nope, ‘fraid not. Good idea though. Just a bland failed message with nothing in the logs

Hi @rh111 - What are you using as your Thread Border Router with Home Assistant?

Strange, I was able to add the P2 without any problems.

What kind of border router do you have?

Did you look directly at the logs in the plug-in?

There, you should at least see the entry
“Starting Matter commissioning with code using Node ID.”

Two - Apple TV 4k (which I am informed does not expose the device to other ecosystems) and an Aqara G410 doorbell. I’ve also tried adding it explicitly to the G410 in the Aqara app, but that fails too.

That seems like a larger underlying problem in your network then. Do you have IPv6 enabled on your network? Are all of these devices on the same LAN?

How are you attempting to Pair the G410 to Aqara?

Besides that, make sure your home assistant sees those Apple TVs and is using the thread network they created. In your home assistant go to /config/thread and let us know what you see. Your Apple thread network can absolutely be shared by Home Assistant.