Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Home: commissioning mutliple devices fails (CON-1511) #1242

Open
mzakharocsc opened this issue Jan 13, 2025 · 14 comments
Open

Google Home: commissioning mutliple devices fails (CON-1511) #1242

mzakharocsc opened this issue Jan 13, 2025 · 14 comments

Comments

@mzakharocsc
Copy link

I am trying to commission 2 light matter example loaded boards with Google Home. First device commissioning always succeeds. While commissioning the second, commissioning fails and the first device gets removed from the Google Home as well. I am unable to have 2 devices connected to Google Home at the same time.

I have tried giving each device a unique descriminator, while commissioning to Google Home, but this did not help.

Commissioning and connecting both devices works fine with chip-tool and Home Assistant.

Any insight on why this is happening with Google Home only is greatly appreciated.

Light example built using IDF 5.2.3 and v1.4 branch of esp-matter-sdk a6da273 . Commisssioning using GHA version 3.27.1.6

@github-actions github-actions bot changed the title Google Home: commissioning mutliple devices fails Google Home: commissioning mutliple devices fails (CON-1511) Jan 13, 2025
@jonsmirl
Copy link
Contributor

You have to go into the Google Home console and enable the test device IDs for your account.

@mzakharocsc
Copy link
Author

I assume this is needed for every user (Google Account) that wants to commission the devices. Is there a way to build a test device that is commissionable by any user account?

@jonsmirl
Copy link
Contributor

I don't believe there is a way to make the test ids work in a Google account other than by enabling them in the console.

@jonsmirl
Copy link
Contributor

You have to join CHIP and get a company ID assigned to make this work for all Google accounts.

I suspect this has to do with OTA updates. If products are using the same test IDs and someone sends an OTA update ... that OTA is going to go to all of those devices and it is not going to match some of them. Registering is used to sort that out.

@mzakharocsc
Copy link
Author

I suspect this has to do with OTA updates.

I see the logic. Contrarily, how does one reconcile the fact that commissioning just one test device works while with multiple it does not. Surely, even with just one device commissioned, you would face the same OTA update problem.

@jonsmirl
Copy link
Contributor

I can commission any number of devices using the test ids on Google. I think you also have to register the device types? I set this up long ago an forgot how it works.

@mzakharocsc
Copy link
Author

I added VID and PID of light example code to Google Home Console, and now the behaviour is different: I see my selected product image during commissioning. When commissioning the second device, it replaces the first. Still unable to use more than 1 device at a time.

@mzakharocsc mzakharocsc reopened this Jan 15, 2025
@dhrishi
Copy link
Collaborator

dhrishi commented Jan 15, 2025

@mzakharocsc I am assuming both the devices, being test/development devices, have the exact same onboarding payload (QR code). Please check the the page https://developers.home.google.com/matter/integration/pair - Warning, Pairing restrictions and Troubleshooting pairing sections should help.

@mzakharocsc
Copy link
Author

Warning, Pairing restrictions and Troubleshooting pairing sections should help.

This warning is when trying to commissiong mutliple devices at the same time. I am commissioning one at a time, and have tried setting up multiple QR codes too by giving each device unique descriminator, no luck.

@jonsmirl
Copy link
Contributor

jonsmirl commented Jan 15, 2025

It doesn't matter if they all use the same QR code. I have a dozen devices commissioned on the same code. Make sure your have entered the right test VID/PID in the google console for the QR code you are using.

I am also loading the corresponding test attestation certificates into my devices. There is only an attestation certificate for FFF2/8001 so that is what I use for testing.

esp-matter-mfg-tool -cn "Test" -v 0xFFF2 -p 0x8001 --pai \
-k $ESP_MATTER_PATH/connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Key.pem \
-c $ESP_MATTER_PATH/connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Cert.pem \
-cd $ESP_MATTER_PATH/connectedhomeip/connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-FFF2-8001.der \
--vendor-name "Lowpan" --product-name "Dimmer" --serial-num "12345678" \
--hw-ver-str "1.0.0" \
--passcode 20202021 --discriminator 3840

When you make changes in Google console there is a long lag (several hours) until they activate.

@mzakharocsc
Copy link
Author

Added fff2/8001 device to Google console. Removed the old 0xfff1/8000 device. waited 2.5 hours. Flashed output of mfg-tool to factory partition. Performed commissioning using the new QR code. Commissioning process displayed the new device logo set by the google console. However, there was no change in the outcome from the original posted behaviour.

@jonsmirl
Copy link
Contributor

Your Google Home device might be confused. Try factory resetting it. I had to do that several times to get old data out of mine.

@mzakharocsc
Copy link
Author

I found this question on Google support forums: Unfortunately, nothing I have tried has helped so far.

@jonsmirl
Copy link
Contributor

My Google Home device is enabled for beta testing. It is possible that it is running code you don't have. You can request to join testing, but it requires manual approval by Google.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants