Cannot get nano_matter_lightbulb_color example to pair

Hello There,

Just purchased two nano matter boards and cannot get either board to pair to google home or apple home kit. I have no trouble pairing purchased devices (Eve plugs) to both systems.
I was using the nano_matter_lightbulb_color example.

Not sure if this is a problem but I noticed that the Payload for the QR code was the same for both devices.

Any help would be appreciated.
Brian

Do you have the prerequisites?

https://docs.arduino.cc/tutorials/nano-matter/user-manual/#with-google-home

I have a Nest Hub Max that I have paired other matter devices to, if that is what you mean?

The reference link shows valid products.

Ok, I have a Nest hum max which is a valid product.
Is there anything that could help me debug why I am not able to pair with the nest hum max? Is there some documentation that I can read to learn more about what the problem may be?

Thanks
Brian

The Arduino official documentation for the Nano Matter describes and demonstrates pairing with example code.

https://docs.arduino.cc/tutorials/nano-matter/user-manual/?queryID=8e5e40cf17ac36af881c5fd2869e85d5

I used the search terms "pair nest hub max arduino nano matter" and received this as one of many results...

Be aware; there is a device out there called the Nano(leaf) Matter which is not the Arduino Nano Matter, and is also a device to be paired with Google Home.

I did for the instructions on the arduino matter examples but it did not pair.

Post the sketches you used and the errors you received.

Thanks for the help:)

  1. Connected the Nano Matter board to my mac.

  2. Opened the Examples->Matter->matter-lightbulb example. Added to bottom off this message.

  3. Compiled/Uploaded to the board
    OUTPUT
    Sketch uses 861564 bytes (54%) of program storage space. Maximum is 1572864 bytes.
    Global variables use 177612 bytes (67%) of dynamic memory, leaving 84532 bytes for local variables. Maximum is 262144 bytes.
    Open On-Chip Debugger 0.12.0+dev-01514-g21fa2de70 (2024-02-07-19:03)
    Licensed under GNU GPL v2
    For bug reports, read
    OpenOCD: Bug Reporting
    debug_level: 0
    efm32s2_dci_read_se_status
    [efm32s2.cpu] halted due to debug-request, current mode: Thread
    xPSR: 0xf9000000 pc: 0x08000170 msp: 0x20001008
    [efm32s2.cpu] halted due to debug-request, current mode: Thread
    xPSR: 0xf9000000 pc: 0x08000170 msp: 0x20001008
    ** Programming Started **
    ** Programming Finished **
    SerialMonitor
    11:45:39.859 -> Matter lightbulb
    11:45:39.859 -> Matter device is not commissioned
    11:45:39.859 -> Commission it to your Matter hub with the manual pairing code or QR code
    11:45:39.859 -> Manual pairing code: ..............
    11:45:39.859 -> QR code URL: CHIP: QR Code.............
    11:48:14.337 -> Waiting for Thread network...
    11:48:26.511 -> Connected to Thread network
    11:48:26.511 -> Waiting for Matter device discovery...

  4. Reset the board

  5. Used the Google home app on iphone to pair device.

  6. Choose the Matter-enabled device

  7. Manually enter the pairing code from the Serial Monitor window ( I have a second nano matter board and the pairing codes are the same? )

  8. Pressed the 'Add to "GoogleHome"

  9. Received the Unceritified Accessory message and pressed 'Add Anyway"

  10. After a long time received the 'Unable to Add Accessory' message

Any help would be appreciated.
Thanks
Brian

/*
   Matter lightbulb example

   The example shows how to create a simple on/off lightbulb with the Arduino Matter API.

   The example lets users control the onboard LED through Matter.
   The device has to be commissioned to a Matter hub first.

   Compatible boards:
   - Arduino Nano Matter
   - SparkFun Thing Plus MGM240P
   - xG24 Explorer Kit
   - xG24 Dev Kit

   Author: Tamas Jozsi (Silicon Labs)
 */
#include <Matter.h>
#include <MatterLightbulb.h>

MatterLightbulb matter_bulb;

void setup()
{
  Serial.begin(115200);
  Matter.begin();
  matter_bulb.begin();

  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, LED_BUILTIN_INACTIVE);

  Serial.println("Matter lightbulb");

  if (!Matter.isDeviceCommissioned()) {
    Serial.println("Matter device is not commissioned");
    Serial.println("Commission it to your Matter hub with the manual pairing code or QR code");
    Serial.printf("Manual pairing code: %s\n", Matter.getManualPairingCode().c_str());
    Serial.printf("QR code URL: %s\n", Matter.getOnboardingQRCodeUrl().c_str());
  }
  while (!Matter.isDeviceCommissioned()) {
    delay(200);
  }

  Serial.println("Waiting for Thread network...");
  while (!Matter.isDeviceThreadConnected()) {
    delay(200);
  }
  Serial.println("Connected to Thread network");

  Serial.println("Waiting for Matter device discovery...");
  while (!matter_bulb.is_online()) {
    delay(200);
  }
  Serial.println("Matter device is now online");
}

void loop()
{
  static bool matter_lightbulb_last_state = false;
  bool matter_lightbulb_current_state = matter_bulb.get_onoff();

  // If the current state is ON and the previous was OFF - turn on the LED
  if (matter_lightbulb_current_state && !matter_lightbulb_last_state) {
    matter_lightbulb_last_state = matter_lightbulb_current_state;
    digitalWrite(LED_BUILTIN, LED_BUILTIN_ACTIVE);
    Serial.println("Bulb ON");
  }

  // If the current state is OFF and the previous was ON - turn off the LED
  if (!matter_lightbulb_current_state && matter_lightbulb_last_state) {
    matter_lightbulb_last_state = matter_lightbulb_current_state;
    digitalWrite(LED_BUILTIN, LED_BUILTIN_INACTIVE);
    Serial.println("Bulb OFF");
  }
}

Where are your original instructions?

I would try to solve the pairing.

The other errors probably start with pairing.

I was following the instructions in https://docs.arduino.cc/tutorials/nano-matter/user-manual/.

Same result for the matter_lightbulb_color example.

I did not see the continued messages in the Serial Monitor window....

13:49:47.553 -> Waiting for Thread network...
13:50:01.475 -> Connected to Thread network
13:50:01.475 -> Waiting for Matter device discovery...

Gets stuck there.
Pairing Failed message on the iphone.

Pairing Arduino Nano Matter and Google Home, or Arduino Nano Matter and iPhone or Google Home and iPhone? Also, which is the foundation, that is to say, which should be established before the next?

I’m not sure I understand the question, but I assume the nano matter device is paired to the nest home hub.

Okay. Solving this will probably fix the rest. First... ensure references to Arduino Nano Matter are not confused with Nano Matter Leaf... it got me.

With pairing (I assume Bluetooth), all you should need is power to the device (Arduino Nano Matter) for it to be findable, then do the same with the Nest home hub.

A side note: a friend has Nest home hub, and seems to use the iPhone to watch/talk to the Nest home hub (but I am not certain) to pair with devices like the porch lamp (controllable with a speaker device - Alexa? Siri?).

Hello xfpd,

Sorry for the delay. I am not sure what you are suggesting I do.

Brian

Pairing. If the Arduino Nano Matter pairs with everything else, but does not pair with Google Nest Home, the problem is following Google Nest Home rules... because Google Nest Home pairs with many things (the example of a friend of mine).

I also have a Apple home pod that is capable of thread. But the nano matter board fails pairing to that as well.

I can get a Eve smart matter device to pair with google home.

Thanks
Brian

Make it pair.

The nano matter board does not pair with apple home or google home.

That is called a "good failure" where we now see the probable cause... pairing.

Can the Arduino Nano Matter pair with a PC or an Android phone?

*** Video #3 or 6, about 3:00 minutes in... shows your same errors.
Have you watched this video series... (video will cascade to the following videos)

Here is a Silicon Labs forum that might show similar issues...